From a2c9c0ea66a5248d27aab8a3274efe8bdb6e1909 Mon Sep 17 00:00:00 2001 From: Release Pipeline Date: Thu, 26 Jan 2023 16:09:39 +0000 Subject: [PATCH] Updating Java SDK to latest version --- .openapi-generator/FILES | 289 +- README.md | 146 +- api/openapi.yaml | 13926 ++++++++++++---- build.gradle | 2 +- build.sbt | 2 +- docs/AvailabilitySearchPost200Response.md | 59 + docs/AvailabilitySearchPostRequest.md | 1328 ++ docs/AvailablePropertiesInner.md | 102 + docs/AvailablePropertiesInner1.md | 750 + ...ablePropertiesInner1AttractionListInner.md | 142 + ...ertiesInner1AttractionListInnerDistance.md | 24 + docs/AvailablePropertiesInner1Geo.md | 80 + docs/AvailablePropertiesInner1GeoLocation.md | 14 + docs/AvailablePropertiesInner1LowestPrice.md | 75 + ...AvailablePropertiesInner1MediaListInner.md | 156 + docs/DefaultApi.md | 373 + docs/LocationSearchPost200Response.md | 59 + docs/LocationSearchPost400Response.md | 13 + ...rchPost400ResponseValidationErrorsInner.md | 39 + docs/LocationSearchPostRequest.md | 117 + docs/PropertiesGet200Response.md | 14 + docs/PropertiesGet200ResponseListInner.md | 18 + ...iesPropertyIdAvailabilityGet200Response.md | 13 + ...lityGet200ResponseAvailabilityListInner.md | 48 + docs/PropertiesPropertyIdGet200Response.md | 14 + ...ropertyIdGet200ResponseProductListInner.md | 53 + ...et200ResponseProductListInnerPolicyInfo.md | 34 + ...sponseProductListInnerRatePlanListInner.md | 16 + ...tInnerRatePlanListInnerPricingListInner.md | 16 + ...pertiesPropertyIdGet200ResponseProperty.md | 29 + ...yIdGet200ResponsePropertyAwardListInner.md | 22 + ...ResponsePropertyCancellationGracePeriod.md | 15 + ...dGet200ResponsePropertyContactListInner.md | 31 + ...ropertyContactListInnerAddressListInner.md | 18 + ...rtyIdGet200ResponsePropertyFacilityInfo.md | 14 + ...ePropertyFacilityInfoGuestRoomListInner.md | 49 + ...yInfoGuestRoomListInnerAmenityListInner.md | 493 + ...ityInfoGuestRoomListInnerMediaListInner.md | 1173 ++ ...yInfoGuestRoomListInnerMessageListInner.md | 59 + ...opertyIdGet200ResponsePropertyGuestInfo.md | 16 + ...IdGet200ResponsePropertyPolicyListInner.md | 33 + ...icyListInnerCancellationPolicyListInner.md | 19 + ...opertyPolicyListInnerFeePolicyListInner.md | 193 + ...ePropertyPolicyListInnerGuaranteePolicy.md | 20 + ...sponsePropertyPolicyListInnerPetsPolicy.md | 16 + ...opertyPolicyListInnerTaxPolicyListInner.md | 160 + ...rtyIdGet200ResponsePropertyPropertyInfo.md | 162 + ...rtyPropertyInfoAcceptedPaymentListInner.md | 57 + ...nsePropertyPropertyInfoMessageListInner.md | 59 + ...tyIdGet200ResponsePropertyRecordCreated.md | 17 + ...yIdGet200ResponsePropertyRecordModified.md | 17 + ...dGet200ResponsePropertyServiceListInner.md | 671 + ...yServiceListInnerOperationTimeListInner.md | 21 + pom.xml | 4 +- src/main/java/com/lodgea/ApiCallback.java | 2 +- src/main/java/com/lodgea/ApiClient.java | 8 +- src/main/java/com/lodgea/ApiException.java | 4 +- src/main/java/com/lodgea/ApiResponse.java | 2 +- src/main/java/com/lodgea/Configuration.java | 4 +- .../com/lodgea/GzipRequestInterceptor.java | 2 +- src/main/java/com/lodgea/JSON.java | 114 +- src/main/java/com/lodgea/Pair.java | 4 +- .../java/com/lodgea/ProgressRequestBody.java | 2 +- .../java/com/lodgea/ProgressResponseBody.java | 2 +- src/main/java/com/lodgea/StringUtil.java | 4 +- src/main/java/com/lodgea/auth/ApiKeyAuth.java | 4 +- .../java/com/lodgea/auth/Authentication.java | 2 +- .../java/com/lodgea/auth/HttpBasicAuth.java | 2 +- .../java/com/lodgea/auth/HttpBearerAuth.java | 4 +- .../com/lodgea/controllers/DefaultApi.java | 769 + .../lodgea/model/AbstractOpenApiSchema.java | 4 +- .../AvailabilitySearchPost200Response.java | 387 + .../model/AvailabilitySearchPostRequest.java | 3716 +++++ .../model/AvailablePropertiesInner.java | 547 + .../model/AvailablePropertiesInner1.java | 2300 +++ ...lePropertiesInner1AttractionListInner.java | 568 + ...tiesInner1AttractionListInnerDistance.java | 297 + .../model/AvailablePropertiesInner1Geo.java | 1035 ++ .../AvailablePropertiesInner1GeoLocation.java | 246 + .../AvailablePropertiesInner1LowestPrice.java | 486 + ...ailablePropertiesInner1MediaListInner.java | 631 + .../model/LocationSearchPost200Response.java | 387 + .../model/LocationSearchPost400Response.java | 234 + ...hPost400ResponseValidationErrorsInner.java | 369 + .../model/LocationSearchPostRequest.java | 547 + .../model/PropertiesGet200Response.java | 267 + .../PropertiesGet200ResponseListInner.java | 382 + ...sPropertyIdAvailabilityGet200Response.java | 234 + ...tyGet200ResponseAvailabilityListInner.java | 442 + .../PropertiesPropertyIdGet200Response.java | 270 + ...pertyIdGet200ResponseProductListInner.java | 572 + ...200ResponseProductListInnerPolicyInfo.java | 671 + ...onseProductListInnerRatePlanListInner.java | 333 + ...nnerRatePlanListInnerPricingListInner.java | 319 + ...rtiesPropertyIdGet200ResponseProperty.java | 817 + ...dGet200ResponsePropertyAwardListInner.java | 294 + ...sponsePropertyCancellationGracePeriod.java | 247 + ...et200ResponsePropertyContactListInner.java | 331 + ...pertyContactListInnerAddressListInner.java | 384 + ...yIdGet200ResponsePropertyFacilityInfo.java | 235 + ...ropertyFacilityInfoGuestRoomListInner.java | 667 + ...nfoGuestRoomListInnerAmenityListInner.java | 1233 ++ ...yInfoGuestRoomListInnerMediaListInner.java | 2879 ++++ ...nfoGuestRoomListInnerMessageListInner.java | 370 + ...ertyIdGet200ResponsePropertyGuestInfo.java | 277 + ...Get200ResponsePropertyPolicyListInner.java | 670 + ...yListInnerCancellationPolicyListInner.java | 404 + ...ertyPolicyListInnerFeePolicyListInner.java | 881 + ...ropertyPolicyListInnerGuaranteePolicy.java | 405 + ...onsePropertyPolicyListInnerPetsPolicy.java | 277 + ...ertyPolicyListInnerTaxPolicyListInner.java | 815 + ...yIdGet200ResponsePropertyPropertyInfo.java | 774 + ...yPropertyInfoAcceptedPaymentListInner.java | 395 + ...ePropertyPropertyInfoMessageListInner.java | 370 + ...IdGet200ResponsePropertyRecordCreated.java | 317 + ...dGet200ResponsePropertyRecordModified.java | 317 + ...et200ResponsePropertyServiceListInner.java | 1989 +++ ...erviceListInnerOperationTimeListInner.java | 463 + .../lodgea/controllers/DefaultApiTest.java | 113 + ...AvailabilitySearchPost200ResponseTest.java | 61 + .../AvailabilitySearchPostRequestTest.java | 189 + ...Inner1AttractionListInnerDistanceTest.java | 59 + ...opertiesInner1AttractionListInnerTest.java | 68 + ...ilablePropertiesInner1GeoLocationTest.java | 59 + .../AvailablePropertiesInner1GeoTest.java | 219 + ...ilablePropertiesInner1LowestPriceTest.java | 83 + ...blePropertiesInner1MediaListInnerTest.java | 77 + .../model/AvailablePropertiesInner1Test.java | 161 + .../model/AvailablePropertiesInnerTest.java | 75 + .../LocationSearchPost200ResponseTest.java | 61 + .../LocationSearchPost400ResponseTest.java | 53 + ...t400ResponseValidationErrorsInnerTest.java | 68 + .../model/LocationSearchPostRequestTest.java | 66 + ...PropertiesGet200ResponseListInnerTest.java | 91 + .../model/PropertiesGet200ResponseTest.java | 61 + ...t200ResponseAvailabilityListInnerTest.java | 78 + ...pertyIdAvailabilityGet200ResponseTest.java | 53 + ...esponseProductListInnerPolicyInfoTest.java | 146 + ...RatePlanListInnerPricingListInnerTest.java | 78 + ...ProductListInnerRatePlanListInnerTest.java | 77 + ...yIdGet200ResponseProductListInnerTest.java | 111 + ...200ResponsePropertyAwardListInnerTest.java | 59 + ...sePropertyCancellationGracePeriodTest.java | 59 + ...yContactListInnerAddressListInnerTest.java | 90 + ...0ResponsePropertyContactListInnerTest.java | 61 + ...uestRoomListInnerAmenityListInnerTest.java | 59 + ...oGuestRoomListInnerMediaListInnerTest.java | 109 + ...uestRoomListInnerMessageListInnerTest.java | 58 + ...rtyFacilityInfoGuestRoomListInnerTest.java | 136 + ...et200ResponsePropertyFacilityInfoTest.java | 53 + ...IdGet200ResponsePropertyGuestInfoTest.java | 66 + ...tInnerCancellationPolicyListInnerTest.java | 99 + ...PolicyListInnerFeePolicyListInnerTest.java | 93 + ...rtyPolicyListInnerGuaranteePolicyTest.java | 99 + ...PropertyPolicyListInnerPetsPolicyTest.java | 66 + ...PolicyListInnerTaxPolicyListInnerTest.java | 93 + ...00ResponsePropertyPolicyListInnerTest.java | 146 + ...pertyInfoAcceptedPaymentListInnerTest.java | 58 + ...pertyPropertyInfoMessageListInnerTest.java | 58 + ...et200ResponsePropertyPropertyInfoTest.java | 96 + ...t200ResponsePropertyRecordCreatedTest.java | 75 + ...200ResponsePropertyRecordModifiedTest.java | 75 + ...ceListInnerOperationTimeListInnerTest.java | 115 + ...0ResponsePropertyServiceListInnerTest.java | 126 + ...sPropertyIdGet200ResponsePropertyTest.java | 186 + ...ropertiesPropertyIdGet200ResponseTest.java | 62 + 166 files changed, 53707 insertions(+), 3871 deletions(-) create mode 100644 docs/AvailabilitySearchPost200Response.md create mode 100644 docs/AvailabilitySearchPostRequest.md create mode 100644 docs/AvailablePropertiesInner.md create mode 100644 docs/AvailablePropertiesInner1.md create mode 100644 docs/AvailablePropertiesInner1AttractionListInner.md create mode 100644 docs/AvailablePropertiesInner1AttractionListInnerDistance.md create mode 100644 docs/AvailablePropertiesInner1Geo.md create mode 100644 docs/AvailablePropertiesInner1GeoLocation.md create mode 100644 docs/AvailablePropertiesInner1LowestPrice.md create mode 100644 docs/AvailablePropertiesInner1MediaListInner.md create mode 100644 docs/DefaultApi.md create mode 100644 docs/LocationSearchPost200Response.md create mode 100644 docs/LocationSearchPost400Response.md create mode 100644 docs/LocationSearchPost400ResponseValidationErrorsInner.md create mode 100644 docs/LocationSearchPostRequest.md create mode 100644 docs/PropertiesGet200Response.md create mode 100644 docs/PropertiesGet200ResponseListInner.md create mode 100644 docs/PropertiesPropertyIdAvailabilityGet200Response.md create mode 100644 docs/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.md create mode 100644 docs/PropertiesPropertyIdGet200Response.md create mode 100644 docs/PropertiesPropertyIdGet200ResponseProductListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.md create mode 100644 docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponseProperty.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyContactListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyRecordModified.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.md create mode 100644 docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.md create mode 100644 src/main/java/com/lodgea/controllers/DefaultApi.java create mode 100644 src/main/java/com/lodgea/model/AvailabilitySearchPost200Response.java create mode 100644 src/main/java/com/lodgea/model/AvailabilitySearchPostRequest.java create mode 100644 src/main/java/com/lodgea/model/AvailablePropertiesInner.java create mode 100644 src/main/java/com/lodgea/model/AvailablePropertiesInner1.java create mode 100644 src/main/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInner.java create mode 100644 src/main/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerDistance.java create mode 100644 src/main/java/com/lodgea/model/AvailablePropertiesInner1Geo.java create mode 100644 src/main/java/com/lodgea/model/AvailablePropertiesInner1GeoLocation.java create mode 100644 src/main/java/com/lodgea/model/AvailablePropertiesInner1LowestPrice.java create mode 100644 src/main/java/com/lodgea/model/AvailablePropertiesInner1MediaListInner.java create mode 100644 src/main/java/com/lodgea/model/LocationSearchPost200Response.java create mode 100644 src/main/java/com/lodgea/model/LocationSearchPost400Response.java create mode 100644 src/main/java/com/lodgea/model/LocationSearchPost400ResponseValidationErrorsInner.java create mode 100644 src/main/java/com/lodgea/model/LocationSearchPostRequest.java create mode 100644 src/main/java/com/lodgea/model/PropertiesGet200Response.java create mode 100644 src/main/java/com/lodgea/model/PropertiesGet200ResponseListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200Response.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200Response.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProperty.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.java create mode 100644 src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.java create mode 100644 src/test/java/com/lodgea/controllers/DefaultApiTest.java create mode 100644 src/test/java/com/lodgea/model/AvailabilitySearchPost200ResponseTest.java create mode 100644 src/test/java/com/lodgea/model/AvailabilitySearchPostRequestTest.java create mode 100644 src/test/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerDistanceTest.java create mode 100644 src/test/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/AvailablePropertiesInner1GeoLocationTest.java create mode 100644 src/test/java/com/lodgea/model/AvailablePropertiesInner1GeoTest.java create mode 100644 src/test/java/com/lodgea/model/AvailablePropertiesInner1LowestPriceTest.java create mode 100644 src/test/java/com/lodgea/model/AvailablePropertiesInner1MediaListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/AvailablePropertiesInner1Test.java create mode 100644 src/test/java/com/lodgea/model/AvailablePropertiesInnerTest.java create mode 100644 src/test/java/com/lodgea/model/LocationSearchPost200ResponseTest.java create mode 100644 src/test/java/com/lodgea/model/LocationSearchPost400ResponseTest.java create mode 100644 src/test/java/com/lodgea/model/LocationSearchPost400ResponseValidationErrorsInnerTest.java create mode 100644 src/test/java/com/lodgea/model/LocationSearchPostRequestTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesGet200ResponseListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesGet200ResponseTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfoTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriodTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfoTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicyTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicyTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreatedTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModifiedTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyTest.java create mode 100644 src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseTest.java diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 0a981d0..3c3c3d1 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -5,74 +5,54 @@ README.md api/openapi.yaml build.gradle build.sbt -docs/AvailabilityApi.md -docs/AvailabilityGet.md -docs/AvailabilitySearch.md -docs/LocationApi.md -docs/LocationSearch.md -docs/PropertyApi.md -docs/PropertyGet.md -docs/PropertyList.md -docs/V1AvailabilityGetPost200Response.md -docs/V1AvailabilityGetPost200ResponseRatePlanListInner.md -docs/V1AvailabilityGetPost200ResponseRatePlanListInnerPricingListInner.md -docs/V1AvailabilityGetPost200ResponseRatePlanListInnerPricingListInnerPriceList.md -docs/V1AvailabilityGetPost200ResponseRoomTypeListInner.md -docs/V1AvailabilitySearchPost200Response.md -docs/V1AvailabilitySearchPost200ResponseListInner.md -docs/V1AvailabilitySearchPost200ResponseListInnerAttractionListInner.md -docs/V1AvailabilitySearchPost200ResponseListInnerAttractionListInnerDistance.md -docs/V1AvailabilitySearchPost200ResponseListInnerGeo.md -docs/V1AvailabilitySearchPost200ResponseListInnerGeoLocation.md -docs/V1AvailabilitySearchPost200ResponseListInnerLowestPrice.md -docs/V1AvailabilitySearchPost200ResponseListInnerMediaListInner.md -docs/V1LocationSearchPost200Response.md -docs/V1LocationSearchPost200ResponseListInner.md -docs/V1PropertyGetPost200Response.md -docs/V1PropertyGetPost200ResponseProductListInner.md -docs/V1PropertyGetPost200ResponseProductListInnerMealPlanListInner.md -docs/V1PropertyGetPost200ResponseProductListInnerPolicyInfo.md -docs/V1PropertyGetPost200ResponseProductListInnerPolicyInfoCancellationPolicyListInner.md -docs/V1PropertyGetPost200ResponseProductListInnerRatePlanListInner.md -docs/V1PropertyGetPost200ResponseProductListInnerRatePlanListInnerPricingListInner.md -docs/V1PropertyGetPost200ResponseProductListInnerRatePlanListInnerPricingListInnerPriceList.md -docs/V1PropertyGetPost200ResponseProductListInnerRoomTypeListInner.md -docs/V1PropertyGetPost200ResponseProperty.md -docs/V1PropertyGetPost200ResponsePropertyAwardListInner.md -docs/V1PropertyGetPost200ResponsePropertyCancellationGracePeriod.md -docs/V1PropertyGetPost200ResponsePropertyContactListInner.md -docs/V1PropertyGetPost200ResponsePropertyContactListInnerAddressListInner.md -docs/V1PropertyGetPost200ResponsePropertyFacilityInfo.md -docs/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInner.md -docs/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md -docs/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md -docs/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerRoomAmenityListInner.md -docs/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerTagListInner.md -docs/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md -docs/V1PropertyGetPost200ResponsePropertyGeo.md -docs/V1PropertyGetPost200ResponsePropertyGeoDa.md -docs/V1PropertyGetPost200ResponsePropertyGeoDe.md -docs/V1PropertyGetPost200ResponsePropertyGeoDeLocation.md -docs/V1PropertyGetPost200ResponsePropertyGeoEn.md -docs/V1PropertyGetPost200ResponsePropertyGeoNl.md -docs/V1PropertyGetPost200ResponsePropertyGuestInfo.md -docs/V1PropertyGetPost200ResponsePropertyMediaListInner.md -docs/V1PropertyGetPost200ResponsePropertyMediaListInnerTagListInner.md -docs/V1PropertyGetPost200ResponsePropertyPolicyListInner.md -docs/V1PropertyGetPost200ResponsePropertyPolicyListInnerPetsPolicy.md -docs/V1PropertyGetPost200ResponsePropertyPolicyListInnerTaxPolicyListInner.md -docs/V1PropertyGetPost200ResponsePropertyPropertyInfo.md -docs/V1PropertyGetPost200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md -docs/V1PropertyGetPost200ResponsePropertyPropertyInfoCategoryListInner.md -docs/V1PropertyGetPost200ResponsePropertyPropertyInfoLocation.md -docs/V1PropertyGetPost200ResponsePropertyPropertyInfoMessageListInner.md -docs/V1PropertyGetPost200ResponsePropertyRecordCreated.md -docs/V1PropertyGetPost200ResponsePropertyRecordModified.md -docs/V1PropertyGetPost200ResponsePropertyServiceListInner.md -docs/V1PropertyGetPost200ResponsePropertyTransaction.md -docs/V1PropertyGetPost200ResponsePropertyTransactionExternalListInner.md -docs/V1PropertyListPost200Response.md -docs/V1PropertyListPost200ResponseListInner.md +docs/AvailabilitySearchPost200Response.md +docs/AvailabilitySearchPostRequest.md +docs/AvailablePropertiesInner.md +docs/AvailablePropertiesInner1.md +docs/AvailablePropertiesInner1AttractionListInner.md +docs/AvailablePropertiesInner1AttractionListInnerDistance.md +docs/AvailablePropertiesInner1Geo.md +docs/AvailablePropertiesInner1GeoLocation.md +docs/AvailablePropertiesInner1LowestPrice.md +docs/AvailablePropertiesInner1MediaListInner.md +docs/DefaultApi.md +docs/LocationSearchPost200Response.md +docs/LocationSearchPost400Response.md +docs/LocationSearchPost400ResponseValidationErrorsInner.md +docs/LocationSearchPostRequest.md +docs/PropertiesGet200Response.md +docs/PropertiesGet200ResponseListInner.md +docs/PropertiesPropertyIdAvailabilityGet200Response.md +docs/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.md +docs/PropertiesPropertyIdGet200Response.md +docs/PropertiesPropertyIdGet200ResponseProductListInner.md +docs/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.md +docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md +docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.md +docs/PropertiesPropertyIdGet200ResponseProperty.md +docs/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.md +docs/PropertiesPropertyIdGet200ResponsePropertyContactListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.md +docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.md +docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md +docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md +docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.md +docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.md +docs/PropertiesPropertyIdGet200ResponsePropertyRecordModified.md +docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.md +docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.md git_push.sh gradle.properties gradle/wrapper/gradle-wrapper.jar @@ -99,81 +79,100 @@ src/main/java/com/lodgea/auth/ApiKeyAuth.java src/main/java/com/lodgea/auth/Authentication.java src/main/java/com/lodgea/auth/HttpBasicAuth.java src/main/java/com/lodgea/auth/HttpBearerAuth.java -src/main/java/com/lodgea/controllers/AvailabilityApi.java -src/main/java/com/lodgea/controllers/LocationApi.java -src/main/java/com/lodgea/controllers/PropertyApi.java +src/main/java/com/lodgea/controllers/DefaultApi.java src/main/java/com/lodgea/model/AbstractOpenApiSchema.java -src/main/java/com/lodgea/model/AvailabilityGet.java -src/main/java/com/lodgea/model/AvailabilitySearch.java -src/main/java/com/lodgea/model/LocationSearch.java -src/main/java/com/lodgea/model/PropertyGet.java -src/main/java/com/lodgea/model/PropertyList.java -src/main/java/com/lodgea/model/V1AvailabilityGetPost200Response.java -src/main/java/com/lodgea/model/V1AvailabilityGetPost200ResponseRatePlanListInner.java -src/main/java/com/lodgea/model/V1AvailabilityGetPost200ResponseRatePlanListInnerPricingListInner.java -src/main/java/com/lodgea/model/V1AvailabilityGetPost200ResponseRatePlanListInnerPricingListInnerPriceList.java -src/main/java/com/lodgea/model/V1AvailabilityGetPost200ResponseRoomTypeListInner.java -src/main/java/com/lodgea/model/V1AvailabilitySearchPost200Response.java -src/main/java/com/lodgea/model/V1AvailabilitySearchPost200ResponseListInner.java -src/main/java/com/lodgea/model/V1AvailabilitySearchPost200ResponseListInnerAttractionListInner.java -src/main/java/com/lodgea/model/V1AvailabilitySearchPost200ResponseListInnerAttractionListInnerDistance.java -src/main/java/com/lodgea/model/V1AvailabilitySearchPost200ResponseListInnerGeo.java -src/main/java/com/lodgea/model/V1AvailabilitySearchPost200ResponseListInnerGeoLocation.java -src/main/java/com/lodgea/model/V1AvailabilitySearchPost200ResponseListInnerLowestPrice.java -src/main/java/com/lodgea/model/V1AvailabilitySearchPost200ResponseListInnerMediaListInner.java -src/main/java/com/lodgea/model/V1LocationSearchPost200Response.java -src/main/java/com/lodgea/model/V1LocationSearchPost200ResponseListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200Response.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponseProductListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponseProductListInnerMealPlanListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponseProductListInnerPolicyInfo.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponseProductListInnerPolicyInfoCancellationPolicyListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponseProductListInnerRatePlanListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponseProductListInnerRatePlanListInnerPricingListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponseProductListInnerRatePlanListInnerPricingListInnerPriceList.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponseProductListInnerRoomTypeListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponseProperty.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyAwardListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyCancellationGracePeriod.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyContactListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyContactListInnerAddressListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyFacilityInfo.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerRoomAmenityListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerTagListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyGeo.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyGeoDa.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyGeoDe.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyGeoDeLocation.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyGeoEn.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyGeoNl.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyGuestInfo.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyMediaListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyMediaListInnerTagListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyPolicyListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyPolicyListInnerPetsPolicy.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyPolicyListInnerTaxPolicyListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyPropertyInfo.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyPropertyInfoAcceptedPaymentListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyPropertyInfoCategoryListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyPropertyInfoLocation.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyPropertyInfoMessageListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyRecordCreated.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyRecordModified.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyServiceListInner.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyTransaction.java -src/main/java/com/lodgea/model/V1PropertyGetPost200ResponsePropertyTransactionExternalListInner.java -src/main/java/com/lodgea/model/V1PropertyListPost200Response.java -src/main/java/com/lodgea/model/V1PropertyListPost200ResponseListInner.java -src/test/java/com/lodgea/model/AvailabilityGetTest.java -src/test/java/com/lodgea/model/PropertyListTest.java -src/test/java/com/lodgea/model/V1AvailabilityGetPost200ResponseRatePlanListInnerPricingListInnerPriceListTest.java -src/test/java/com/lodgea/model/V1AvailabilityGetPost200ResponseRatePlanListInnerPricingListInnerTest.java -src/test/java/com/lodgea/model/V1AvailabilityGetPost200ResponseRatePlanListInnerTest.java -src/test/java/com/lodgea/model/V1AvailabilityGetPost200ResponseRoomTypeListInnerTest.java -src/test/java/com/lodgea/model/V1AvailabilityGetPost200ResponseTest.java -src/test/java/com/lodgea/model/V1PropertyListPost200ResponseListInnerTest.java -src/test/java/com/lodgea/model/V1PropertyListPost200ResponseTest.java +src/main/java/com/lodgea/model/AvailabilitySearchPost200Response.java +src/main/java/com/lodgea/model/AvailabilitySearchPostRequest.java +src/main/java/com/lodgea/model/AvailablePropertiesInner.java +src/main/java/com/lodgea/model/AvailablePropertiesInner1.java +src/main/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInner.java +src/main/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerDistance.java +src/main/java/com/lodgea/model/AvailablePropertiesInner1Geo.java +src/main/java/com/lodgea/model/AvailablePropertiesInner1GeoLocation.java +src/main/java/com/lodgea/model/AvailablePropertiesInner1LowestPrice.java +src/main/java/com/lodgea/model/AvailablePropertiesInner1MediaListInner.java +src/main/java/com/lodgea/model/LocationSearchPost200Response.java +src/main/java/com/lodgea/model/LocationSearchPost400Response.java +src/main/java/com/lodgea/model/LocationSearchPost400ResponseValidationErrorsInner.java +src/main/java/com/lodgea/model/LocationSearchPostRequest.java +src/main/java/com/lodgea/model/PropertiesGet200Response.java +src/main/java/com/lodgea/model/PropertiesGet200ResponseListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200Response.java +src/main/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200Response.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProperty.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.java +src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.java +src/test/java/com/lodgea/controllers/DefaultApiTest.java +src/test/java/com/lodgea/model/AvailabilitySearchPost200ResponseTest.java +src/test/java/com/lodgea/model/AvailabilitySearchPostRequestTest.java +src/test/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerDistanceTest.java +src/test/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerTest.java +src/test/java/com/lodgea/model/AvailablePropertiesInner1GeoLocationTest.java +src/test/java/com/lodgea/model/AvailablePropertiesInner1GeoTest.java +src/test/java/com/lodgea/model/AvailablePropertiesInner1LowestPriceTest.java +src/test/java/com/lodgea/model/AvailablePropertiesInner1MediaListInnerTest.java +src/test/java/com/lodgea/model/AvailablePropertiesInner1Test.java +src/test/java/com/lodgea/model/AvailablePropertiesInnerTest.java +src/test/java/com/lodgea/model/LocationSearchPost200ResponseTest.java +src/test/java/com/lodgea/model/LocationSearchPost400ResponseTest.java +src/test/java/com/lodgea/model/LocationSearchPost400ResponseValidationErrorsInnerTest.java +src/test/java/com/lodgea/model/LocationSearchPostRequestTest.java +src/test/java/com/lodgea/model/PropertiesGet200ResponseListInnerTest.java +src/test/java/com/lodgea/model/PropertiesGet200ResponseTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfoTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriodTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfoTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicyTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicyTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreatedTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModifiedTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyTest.java +src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseTest.java diff --git a/README.md b/README.md index c347137..c259e14 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,8 @@ # lodgea lodgea-java -- API version: 1.0.2 - - Build date: 2022-09-08T10:01:38.583514510Z[Etc/UTC] +- API version: 1.1.0 + - Build date: 2023-01-26T16:09:38.541455406Z[Etc/UTC] LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. @@ -40,7 +40,7 @@ Add this dependency to your project's POM: com.lodgea lodgea - 1.0.2 + compile ``` @@ -56,7 +56,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "com.lodgea:lodgea:1.0.2" + implementation "com.lodgea:lodgea:" } ``` @@ -70,7 +70,7 @@ mvn clean package Then manually install the following JARs: -* `target/lodgea-1.0.2.jar` +* `target/lodgea-.jar` * `target/lib/*.jar` ## Getting Started @@ -85,12 +85,12 @@ import com.lodgea.ApiException; import com.lodgea.Configuration; import com.lodgea.auth.*; import com.lodgea.models.*; -import com.lodgea.controllers.AvailabilityApi; +import com.lodgea.controllers.DefaultApi; public class Example { public static void main(String[] args) { ApiClient defaultClient = Configuration.getDefaultApiClient(); - defaultClient.setBasePath("https://api.eu.lodgea.io"); + defaultClient.setBasePath("https://api.eu.lodgea.io/v1"); // Configure API key authorization: ApiKeyAuth ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); @@ -98,13 +98,13 @@ public class Example { // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //ApiKeyAuth.setApiKeyPrefix("Token"); - AvailabilityApi apiInstance = new AvailabilityApi(defaultClient); - AvailabilityGet availabilityGet = new AvailabilityGet(); // AvailabilityGet | Availability get parameter + DefaultApi apiInstance = new DefaultApi(defaultClient); + AvailabilitySearchPostRequest availabilitySearchPostRequest = new AvailabilitySearchPostRequest(); // AvailabilitySearchPostRequest | try { - V1AvailabilityGetPost200Response result = apiInstance.v1AvailabilityGetPost(availabilityGet); + AvailabilitySearchPost200Response result = apiInstance.availabilitySearchPost(availabilitySearchPostRequest); System.out.println(result); } catch (ApiException e) { - System.err.println("Exception when calling AvailabilityApi#v1AvailabilityGetPost"); + System.err.println("Exception when calling DefaultApi#availabilitySearchPost"); System.err.println("Status code: " + e.getCode()); System.err.println("Reason: " + e.getResponseBody()); System.err.println("Response headers: " + e.getResponseHeaders()); @@ -117,84 +117,66 @@ public class Example { ## Documentation for API Endpoints -All URIs are relative to *https://api.eu.lodgea.io* +All URIs are relative to *https://api.eu.lodgea.io/v1* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*AvailabilityApi* | [**v1AvailabilityGetPost**](docs/AvailabilityApi.md#v1AvailabilityGetPost) | **POST** /v1/availability/get | Get Availability for Property -*AvailabilityApi* | [**v1AvailabilitySearchPost**](docs/AvailabilityApi.md#v1AvailabilitySearchPost) | **POST** /v1/availability/search | Search for Availability -*LocationApi* | [**v1LocationSearchPost**](docs/LocationApi.md#v1LocationSearchPost) | **POST** /v1/location/search | Search for Location -*PropertyApi* | [**v1PropertyGetPost**](docs/PropertyApi.md#v1PropertyGetPost) | **POST** /v1/property/get | Get Property by ID -*PropertyApi* | [**v1PropertyListPost**](docs/PropertyApi.md#v1PropertyListPost) | **POST** /v1/property/list | List properties by a specific keyword +*DefaultApi* | [**availabilitySearchPost**](docs/DefaultApi.md#availabilitySearchPost) | **POST** /availability/search | Search for availability +*DefaultApi* | [**locationSearchPost**](docs/DefaultApi.md#locationSearchPost) | **POST** /location/search | Search for location +*DefaultApi* | [**propertiesGet**](docs/DefaultApi.md#propertiesGet) | **GET** /properties | List (filtered) properties +*DefaultApi* | [**propertiesPropertyIdAvailabilityGet**](docs/DefaultApi.md#propertiesPropertyIdAvailabilityGet) | **GET** /properties/{propertyId}/availability | Get a properties availability +*DefaultApi* | [**propertiesPropertyIdGet**](docs/DefaultApi.md#propertiesPropertyIdGet) | **GET** /properties/{propertyId} | Get a properties details ## Documentation for Models - - [AvailabilityGet](docs/AvailabilityGet.md) - - [AvailabilitySearch](docs/AvailabilitySearch.md) - - [LocationSearch](docs/LocationSearch.md) - - [PropertyGet](docs/PropertyGet.md) - - [PropertyList](docs/PropertyList.md) - - [V1AvailabilityGetPost200Response](docs/V1AvailabilityGetPost200Response.md) - - [V1AvailabilityGetPost200ResponseRatePlanListInner](docs/V1AvailabilityGetPost200ResponseRatePlanListInner.md) - - [V1AvailabilityGetPost200ResponseRatePlanListInnerPricingListInner](docs/V1AvailabilityGetPost200ResponseRatePlanListInnerPricingListInner.md) - - [V1AvailabilityGetPost200ResponseRatePlanListInnerPricingListInnerPriceList](docs/V1AvailabilityGetPost200ResponseRatePlanListInnerPricingListInnerPriceList.md) - - [V1AvailabilityGetPost200ResponseRoomTypeListInner](docs/V1AvailabilityGetPost200ResponseRoomTypeListInner.md) - - [V1AvailabilitySearchPost200Response](docs/V1AvailabilitySearchPost200Response.md) - - [V1AvailabilitySearchPost200ResponseListInner](docs/V1AvailabilitySearchPost200ResponseListInner.md) - - [V1AvailabilitySearchPost200ResponseListInnerAttractionListInner](docs/V1AvailabilitySearchPost200ResponseListInnerAttractionListInner.md) - - [V1AvailabilitySearchPost200ResponseListInnerAttractionListInnerDistance](docs/V1AvailabilitySearchPost200ResponseListInnerAttractionListInnerDistance.md) - - [V1AvailabilitySearchPost200ResponseListInnerGeo](docs/V1AvailabilitySearchPost200ResponseListInnerGeo.md) - - [V1AvailabilitySearchPost200ResponseListInnerGeoLocation](docs/V1AvailabilitySearchPost200ResponseListInnerGeoLocation.md) - - [V1AvailabilitySearchPost200ResponseListInnerLowestPrice](docs/V1AvailabilitySearchPost200ResponseListInnerLowestPrice.md) - - [V1AvailabilitySearchPost200ResponseListInnerMediaListInner](docs/V1AvailabilitySearchPost200ResponseListInnerMediaListInner.md) - - [V1LocationSearchPost200Response](docs/V1LocationSearchPost200Response.md) - - [V1LocationSearchPost200ResponseListInner](docs/V1LocationSearchPost200ResponseListInner.md) - - [V1PropertyGetPost200Response](docs/V1PropertyGetPost200Response.md) - - [V1PropertyGetPost200ResponseProductListInner](docs/V1PropertyGetPost200ResponseProductListInner.md) - - [V1PropertyGetPost200ResponseProductListInnerMealPlanListInner](docs/V1PropertyGetPost200ResponseProductListInnerMealPlanListInner.md) - - [V1PropertyGetPost200ResponseProductListInnerPolicyInfo](docs/V1PropertyGetPost200ResponseProductListInnerPolicyInfo.md) - - [V1PropertyGetPost200ResponseProductListInnerPolicyInfoCancellationPolicyListInner](docs/V1PropertyGetPost200ResponseProductListInnerPolicyInfoCancellationPolicyListInner.md) - - [V1PropertyGetPost200ResponseProductListInnerRatePlanListInner](docs/V1PropertyGetPost200ResponseProductListInnerRatePlanListInner.md) - - [V1PropertyGetPost200ResponseProductListInnerRatePlanListInnerPricingListInner](docs/V1PropertyGetPost200ResponseProductListInnerRatePlanListInnerPricingListInner.md) - - [V1PropertyGetPost200ResponseProductListInnerRatePlanListInnerPricingListInnerPriceList](docs/V1PropertyGetPost200ResponseProductListInnerRatePlanListInnerPricingListInnerPriceList.md) - - [V1PropertyGetPost200ResponseProductListInnerRoomTypeListInner](docs/V1PropertyGetPost200ResponseProductListInnerRoomTypeListInner.md) - - [V1PropertyGetPost200ResponseProperty](docs/V1PropertyGetPost200ResponseProperty.md) - - [V1PropertyGetPost200ResponsePropertyAwardListInner](docs/V1PropertyGetPost200ResponsePropertyAwardListInner.md) - - [V1PropertyGetPost200ResponsePropertyCancellationGracePeriod](docs/V1PropertyGetPost200ResponsePropertyCancellationGracePeriod.md) - - [V1PropertyGetPost200ResponsePropertyContactListInner](docs/V1PropertyGetPost200ResponsePropertyContactListInner.md) - - [V1PropertyGetPost200ResponsePropertyContactListInnerAddressListInner](docs/V1PropertyGetPost200ResponsePropertyContactListInnerAddressListInner.md) - - [V1PropertyGetPost200ResponsePropertyFacilityInfo](docs/V1PropertyGetPost200ResponsePropertyFacilityInfo.md) - - [V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInner](docs/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInner.md) - - [V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner](docs/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md) - - [V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner](docs/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md) - - [V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerRoomAmenityListInner](docs/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerRoomAmenityListInner.md) - - [V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerTagListInner](docs/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerTagListInner.md) - - [V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner](docs/V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md) - - [V1PropertyGetPost200ResponsePropertyGeo](docs/V1PropertyGetPost200ResponsePropertyGeo.md) - - [V1PropertyGetPost200ResponsePropertyGeoDa](docs/V1PropertyGetPost200ResponsePropertyGeoDa.md) - - [V1PropertyGetPost200ResponsePropertyGeoDe](docs/V1PropertyGetPost200ResponsePropertyGeoDe.md) - - [V1PropertyGetPost200ResponsePropertyGeoDeLocation](docs/V1PropertyGetPost200ResponsePropertyGeoDeLocation.md) - - [V1PropertyGetPost200ResponsePropertyGeoEn](docs/V1PropertyGetPost200ResponsePropertyGeoEn.md) - - [V1PropertyGetPost200ResponsePropertyGeoNl](docs/V1PropertyGetPost200ResponsePropertyGeoNl.md) - - [V1PropertyGetPost200ResponsePropertyGuestInfo](docs/V1PropertyGetPost200ResponsePropertyGuestInfo.md) - - [V1PropertyGetPost200ResponsePropertyMediaListInner](docs/V1PropertyGetPost200ResponsePropertyMediaListInner.md) - - [V1PropertyGetPost200ResponsePropertyMediaListInnerTagListInner](docs/V1PropertyGetPost200ResponsePropertyMediaListInnerTagListInner.md) - - [V1PropertyGetPost200ResponsePropertyPolicyListInner](docs/V1PropertyGetPost200ResponsePropertyPolicyListInner.md) - - [V1PropertyGetPost200ResponsePropertyPolicyListInnerPetsPolicy](docs/V1PropertyGetPost200ResponsePropertyPolicyListInnerPetsPolicy.md) - - [V1PropertyGetPost200ResponsePropertyPolicyListInnerTaxPolicyListInner](docs/V1PropertyGetPost200ResponsePropertyPolicyListInnerTaxPolicyListInner.md) - - [V1PropertyGetPost200ResponsePropertyPropertyInfo](docs/V1PropertyGetPost200ResponsePropertyPropertyInfo.md) - - [V1PropertyGetPost200ResponsePropertyPropertyInfoAcceptedPaymentListInner](docs/V1PropertyGetPost200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md) - - [V1PropertyGetPost200ResponsePropertyPropertyInfoCategoryListInner](docs/V1PropertyGetPost200ResponsePropertyPropertyInfoCategoryListInner.md) - - [V1PropertyGetPost200ResponsePropertyPropertyInfoLocation](docs/V1PropertyGetPost200ResponsePropertyPropertyInfoLocation.md) - - [V1PropertyGetPost200ResponsePropertyPropertyInfoMessageListInner](docs/V1PropertyGetPost200ResponsePropertyPropertyInfoMessageListInner.md) - - [V1PropertyGetPost200ResponsePropertyRecordCreated](docs/V1PropertyGetPost200ResponsePropertyRecordCreated.md) - - [V1PropertyGetPost200ResponsePropertyRecordModified](docs/V1PropertyGetPost200ResponsePropertyRecordModified.md) - - [V1PropertyGetPost200ResponsePropertyServiceListInner](docs/V1PropertyGetPost200ResponsePropertyServiceListInner.md) - - [V1PropertyGetPost200ResponsePropertyTransaction](docs/V1PropertyGetPost200ResponsePropertyTransaction.md) - - [V1PropertyGetPost200ResponsePropertyTransactionExternalListInner](docs/V1PropertyGetPost200ResponsePropertyTransactionExternalListInner.md) - - [V1PropertyListPost200Response](docs/V1PropertyListPost200Response.md) - - [V1PropertyListPost200ResponseListInner](docs/V1PropertyListPost200ResponseListInner.md) + - [AvailabilitySearchPost200Response](docs/AvailabilitySearchPost200Response.md) + - [AvailabilitySearchPostRequest](docs/AvailabilitySearchPostRequest.md) + - [AvailablePropertiesInner](docs/AvailablePropertiesInner.md) + - [AvailablePropertiesInner1](docs/AvailablePropertiesInner1.md) + - [AvailablePropertiesInner1AttractionListInner](docs/AvailablePropertiesInner1AttractionListInner.md) + - [AvailablePropertiesInner1AttractionListInnerDistance](docs/AvailablePropertiesInner1AttractionListInnerDistance.md) + - [AvailablePropertiesInner1Geo](docs/AvailablePropertiesInner1Geo.md) + - [AvailablePropertiesInner1GeoLocation](docs/AvailablePropertiesInner1GeoLocation.md) + - [AvailablePropertiesInner1LowestPrice](docs/AvailablePropertiesInner1LowestPrice.md) + - [AvailablePropertiesInner1MediaListInner](docs/AvailablePropertiesInner1MediaListInner.md) + - [LocationSearchPost200Response](docs/LocationSearchPost200Response.md) + - [LocationSearchPost400Response](docs/LocationSearchPost400Response.md) + - [LocationSearchPost400ResponseValidationErrorsInner](docs/LocationSearchPost400ResponseValidationErrorsInner.md) + - [LocationSearchPostRequest](docs/LocationSearchPostRequest.md) + - [PropertiesGet200Response](docs/PropertiesGet200Response.md) + - [PropertiesGet200ResponseListInner](docs/PropertiesGet200ResponseListInner.md) + - [PropertiesPropertyIdAvailabilityGet200Response](docs/PropertiesPropertyIdAvailabilityGet200Response.md) + - [PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner](docs/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.md) + - [PropertiesPropertyIdGet200Response](docs/PropertiesPropertyIdGet200Response.md) + - [PropertiesPropertyIdGet200ResponseProductListInner](docs/PropertiesPropertyIdGet200ResponseProductListInner.md) + - [PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo](docs/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.md) + - [PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner](docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md) + - [PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner](docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.md) + - [PropertiesPropertyIdGet200ResponseProperty](docs/PropertiesPropertyIdGet200ResponseProperty.md) + - [PropertiesPropertyIdGet200ResponsePropertyAwardListInner](docs/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod](docs/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.md) + - [PropertiesPropertyIdGet200ResponsePropertyContactListInner](docs/PropertiesPropertyIdGet200ResponsePropertyContactListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner](docs/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyFacilityInfo](docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.md) + - [PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner](docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner](docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner](docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner](docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyGuestInfo](docs/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.md) + - [PropertiesPropertyIdGet200ResponsePropertyPolicyListInner](docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner](docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner](docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy](docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md) + - [PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy](docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md) + - [PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner](docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyPropertyInfo](docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.md) + - [PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner](docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner](docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyRecordCreated](docs/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.md) + - [PropertiesPropertyIdGet200ResponsePropertyRecordModified](docs/PropertiesPropertyIdGet200ResponsePropertyRecordModified.md) + - [PropertiesPropertyIdGet200ResponsePropertyServiceListInner](docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.md) + - [PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner](docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.md) ## Documentation for Authorization diff --git a/api/openapi.yaml b/api/openapi.yaml index 7724f29..dabe4a2 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,2025 +1,8606 @@ -openapi: 3.0.3 +openapi: 3.0.0 info: contact: email: support@lodgea.com description: LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. - license: - name: Apache 2.0 - url: http://www.apache.org/licenses/LICENSE-2.0.html termsOfService: https://www.lodgea.com/terms.html title: lodgea-java - version: 1.0.2 + version: 1.1.0 x-logo: url: https://docs.lodgea.io/lodgea.svg altText: LODGEA API Documentation externalDocs: description: Read the docs - url: https://docs.lodgea.io/ + url: https://docs.lodgea.io servers: - description: API for customers in the EU region - url: https://api.eu.lodgea.io + url: https://api.eu.lodgea.io/v1 - description: API for customers in the US region - url: https://api.us.lodgea.io -tags: -- description: Availability Endpoint - name: availability -- description: Location Endpoint - name: location -- description: Property Endpoint - name: property + url: https://api.us.lodgea.io/v1 +- description: API for user acceptance testing + url: https://api.uat.lodgea.io/v1 +security: +- ApiKeyAuth: [] paths: - /v1/property/get: + /location/search: post: - description: Get all information about a specific property by its ID. This parameter - is required. + description: Get a list of locations and their lowest available rate related + to a given keyword. requestBody: content: application/json: schema: - $ref: '#/components/schemas/propertyGet' - description: Provide the property ID to get more information about it - required: true + $ref: '#/components/schemas/_location_search_post_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_v1_property_get_post_200_response' - description: Successful operation + $ref: '#/components/schemas/_location_search_post_200_response' + description: "Successful, a list of locations matching the given location\ + \ search text is returned." "400": - description: Bad request - missing parameter - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "401": - description: API Key is missing or invalid - headers: - apiKey: - $ref: '#/components/headers/apiKey' + content: + application/json: + schema: + $ref: '#/components/schemas/_location_search_post_400_response' + description: "We validate all calls to our API in a strict manner using\ + \ Zod. In case of any validation errors, we send back a 400 response with\ + \ a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md." "403": - description: Forbidden - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "404": - description: Not Found - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "405": - description: Invalid input - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "429": - description: Rate Limiting - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "500": - description: Internal server error - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "503": - description: Server error - headers: - apiKey: - $ref: '#/components/headers/apiKey' - security: - - ApiKeyAuth: [] - summary: Get Property by ID - tags: - - property + description: "Unauthorized, the api key in the \"apiKey\" header field is\ + \ invalid." + summary: Search for location x-content-type: application/json x-accepts: application/json - /v1/property/list: + /availability/search: post: - description: List properties by a specific keyword. + description: Get availability information based on search criteria. requestBody: content: application/json: schema: - $ref: '#/components/schemas/propertyList' - description: Provide the search keyword and optionally a page token to fetch - further responses. The page token can be added if additional results should - be returned. It is a base64 encoded dictionary and included in the first - response in case not all results were delivered - required: true + $ref: '#/components/schemas/_availability_search_post_request' responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_v1_property_list_post_200_response' - description: Successful operation + $ref: '#/components/schemas/_availability_search_post_200_response' + description: "Successful, a list of available properties matching the given\ + \ criteria is returned." "400": - description: Bad request - missing parameter - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "401": - description: API Key is missing or invalid - headers: - apiKey: - $ref: '#/components/headers/apiKey' + content: + application/json: + schema: + $ref: '#/components/schemas/_location_search_post_400_response' + description: "We validate all calls to our API in a strict manner using\ + \ Zod. In case of any validation errors, we send back a 400 response with\ + \ a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md." "403": - description: Forbidden - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "404": - description: Not Found - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "405": - description: Invalid input - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "429": - description: Rate Limiting - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "500": - description: Internal server error - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "503": - description: Server error - headers: - apiKey: - $ref: '#/components/headers/apiKey' - security: - - ApiKeyAuth: [] - summary: List properties by a specific keyword - tags: - - property + description: "Unauthorized, the api key in the \"apiKey\" header field is\ + \ invalid." + summary: Search for availability x-content-type: application/json x-accepts: application/json - /v1/availability/get: - post: - description: Get availability information based on a specific property. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/availabilityGet' - description: Availability get parameter - required: true + /properties: + get: + description: "List properties, optionally filtered by a keyword." + parameters: + - explode: true + in: query + name: keyword + required: false + schema: + description: The keyword to filter the properties by. Leave empty/undefined + to list all properties. + example: Strandresidenz Sylt + type: string + style: form + - explode: true + in: query + name: pageToken + required: false + schema: + description: The page token from the last response to load the subsequent + page. + example: eyJ0ZW5hbnRDb2RlIjoiZG1vLWRlbW8iLCJuYW1lIjoiTGFuZGhhdXMgVHJlc2tlcnNhbmQiLCJwcm9wZXJ0eUlkIjoibGFuZGhhdXMtdHJlc2tlcnNhbmQifQ== + type: string + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_v1_availability_get_post_200_response' - description: Successful operation + $ref: '#/components/schemas/_properties_get_200_response' + description: "Successful, a list of properties matching the given keyword\ + \ is returned." "400": - description: Bad request - missing parameter - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "401": - description: API Key is missing or invalid - headers: - apiKey: - $ref: '#/components/headers/apiKey' + content: + application/json: + schema: + $ref: '#/components/schemas/_location_search_post_400_response' + description: "We validate all calls to our API in a strict manner using\ + \ Zod. In case of any validation errors, we send back a 400 response with\ + \ a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md." "403": - description: Forbidden - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "404": - description: Not Found - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "405": - description: Invalid input - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "429": - description: Rate Limiting - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "500": - description: Internal server error - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "503": - description: Server error - headers: - apiKey: - $ref: '#/components/headers/apiKey' - security: - - ApiKeyAuth: [] - summary: Get Availability for Property - tags: - - availability - x-content-type: application/json + description: "Unauthorized, the api key in the \"apiKey\" header field is\ + \ invalid." + summary: List (filtered) properties x-accepts: application/json - /v1/availability/search: - post: - description: Get availability information based on search criteria. The possible - values for the different content parameters are listed below. All parameters - are optional. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/availabilitySearch' - description: "Search Criteria, all parameters are optional" - required: false + /properties/{propertyId}: + get: + description: Get all information about a specific property by its ID. + parameters: + - explode: false + in: path + name: propertyId + required: true + schema: + description: The ID of the property + example: strandresidenz-sylt + minLength: 1 + type: string + style: simple responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_v1_availability_search_post_200_response' - description: Successful operation + $ref: '#/components/schemas/_properties__propertyId__get_200_response' + description: "Successful, property found, the whole property object is returned." "400": - description: Bad request - missing parameter - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "401": - description: API Key is missing or invalid - headers: - apiKey: - $ref: '#/components/headers/apiKey' + content: + application/json: + schema: + $ref: '#/components/schemas/_location_search_post_400_response' + description: "We validate all calls to our API in a strict manner using\ + \ Zod. In case of any validation errors, we send back a 400 response with\ + \ a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md." "403": - description: Forbidden - headers: - apiKey: - $ref: '#/components/headers/apiKey' + description: "Unauthorized, the api key in the \"apiKey\" header field is\ + \ invalid." "404": - description: Not Found - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "405": - description: Invalid input - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "429": - description: Rate Limiting - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "500": - description: Internal server error - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "503": - description: Server error - headers: - apiKey: - $ref: '#/components/headers/apiKey' - security: - - ApiKeyAuth: [] - summary: Search for Availability - tags: - - availability - x-content-type: application/json + description: The requested resource was not found + summary: Get a properties details x-accepts: application/json - /v1/location/search: - post: - description: Get a location by search text in free from. This parameter is required. - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/locationSearch' - description: Free-text search criteria + /properties/{propertyId}/availability: + get: + description: Get detailed availability information for a specific property. + parameters: + - explode: false + in: path + name: propertyId + required: true + schema: + description: The ID of the property + example: strandresidenz-sylt + minLength: 1 + type: string + style: simple + - explode: true + in: query + name: currencyCode required: true + schema: + description: The currency in which prices should be returned. + enum: + - AED + - ARS + - AUD + - AZN + - BGN + - BHD + - BRL + - CAD + - CHF + - CLP + - CNY + - COP + - CZK + - DKK + - EGP + - EUR + - FJD + - GBP + - GEL + - HKD + - HUF + - IDR + - ILS + - INR + - JOD + - JPY + - KRW + - KWD + - KZT + - MDL + - MXN + - MYR + - NAD + - NOK + - NZD + - OMR + - PLN + - QAR + - RON + - RUB + - SAR + - SEK + - SGD + - THB + - TRY + - TWD + - UAH + - USD + - XOF + - ZAR + example: EUR + type: string + style: form responses: "200": content: application/json: schema: - $ref: '#/components/schemas/_v1_location_search_post_200_response' - description: Successful operation + $ref: '#/components/schemas/_properties__propertyId__availability_get_200_response' + description: "Successful, a list of properties matching the given keyword\ + \ is returned." "400": - description: Bad request - missing parameter - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "401": - description: API Key is missing or invalid - headers: - apiKey: - $ref: '#/components/headers/apiKey' + content: + application/json: + schema: + $ref: '#/components/schemas/_location_search_post_400_response' + description: "We validate all calls to our API in a strict manner using\ + \ Zod. In case of any validation errors, we send back a 400 response with\ + \ a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md." "403": - description: Forbidden - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "404": - description: Not Found - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "405": - description: Invalid input - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "429": - description: Rate Limiting - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "500": - description: Internal server error - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "503": - description: Server error - headers: - apiKey: - $ref: '#/components/headers/apiKey' - security: - - ApiKeyAuth: [] - summary: Search for Location - tags: - - location - x-content-type: application/json + description: "Unauthorized, the api key in the \"apiKey\" header field is\ + \ invalid." + summary: Get a properties availability x-accepts: application/json components: - headers: - apiKey: - description: Customer specific API Key - explode: false - schema: - type: string - style: simple - responses: - "400": - description: Bad request - missing parameter - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "401": - description: API Key is missing or invalid - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "403": - description: Forbidden - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "404": - description: Not Found - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "405": - description: Invalid input - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "429": - description: Rate Limiting - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "500": - description: Internal server error - headers: - apiKey: - $ref: '#/components/headers/apiKey' - "503": - description: Server error - headers: - apiKey: - $ref: '#/components/headers/apiKey' - propertyList: - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_property_list_post_200_response' - description: Successful operation - locationSearch: - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_location_search_post_200_response' - description: Successful operation - availabilityGet: - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_availability_get_post_200_response' - description: Successful operation - availabilitySearch: - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_availability_search_post_200_response' - description: Successful operation - propertyGet: - content: - application/json: - schema: - $ref: '#/components/schemas/_v1_property_get_post_200_response' - description: Successful operation + parameters: {} schemas: - locationSearch: + _location_search_post_request: + additionalProperties: false properties: searchText: + description: A search text in free form to search locations by. example: Hotel Stadt Hamburg type: string currencyCode: + description: The currency code of the currency in which the lowest price + for each found location should be returned.

See also in + the appendix.

+ enum: + - AED + - ARS + - AUD + - AZN + - BGN + - BHD + - BRL + - CAD + - CHF + - CLP + - CNY + - COP + - CZK + - DKK + - EGP + - EUR + - FJD + - GBP + - GEL + - HKD + - HUF + - IDR + - ILS + - INR + - JOD + - JPY + - KRW + - KWD + - KZT + - MDL + - MXN + - MYR + - NAD + - NOK + - NZD + - OMR + - PLN + - QAR + - RON + - RUB + - SAR + - SEK + - SGD + - THB + - TRY + - TWD + - UAH + - USD + - XOF + - ZAR example: EUR type: string languageCode: + description: The language code of the language in which the descriptive + texts for each found location should be returned.

Please note that beside + the general restrictions listed below only languages configured during + system setup for your respective tenant are allowed.

See also in the appendix.

+ enum: + - af + - ar + - bg + - ca + - cs + - da + - de + - el + - en + - es + - et + - fi + - fr + - he + - hi + - hr + - hu + - id + - is + - it + - ja + - ko + - lt + - lv + - nl + - "no" + - pl + - pt + - ro + - ru + - sk + - sl + - sr + - sv + - th + - tr + - vi + - zh example: en type: string + required: + - currencyCode + - languageCode + - searchText type: object - availabilityGet: + Available_Properties_inner: + example: + lowestPrice: 99.99 + name: Westerland + type: sublocality + currencyCode: EUR properties: - propertyCode: - example: strandresidenz-sylt + name: + description: The name of the location. + example: Westerland type: string currencyCode: + description: The currency code of the currency of the lowest price. + enum: + - AED + - ARS + - AUD + - AZN + - BGN + - BHD + - BRL + - CAD + - CHF + - CLP + - CNY + - COP + - CZK + - DKK + - EGP + - EUR + - FJD + - GBP + - GEL + - HKD + - HUF + - IDR + - ILS + - INR + - JOD + - JPY + - KRW + - KWD + - KZT + - MDL + - MXN + - MYR + - NAD + - NOK + - NZD + - OMR + - PLN + - QAR + - RON + - RUB + - SAR + - SEK + - SGD + - THB + - TRY + - TWD + - UAH + - USD + - XOF + - ZAR example: EUR type: string + lowestPrice: + description: The lowest price available for this location. + example: 99.99 + type: number + type: + description: The type of the found location.

See also in + the appendix.

+ enum: + - formatted_address + - place_id + - locality + - administrative_area_level_1 + - administrative_area_level_2 + - administrative_area_level_3 + - administrative_area_level_4 + - administrative_area_level_5 + - state_code + - country + - country_code + - postal_code + - language + - natural_feature + - establishment + - sublocality + - sublocality_level_1 + - sublocality_level_2 + - sublocality_level_3 + - sublocality_level_4 + - sublocality_level_5 + - streetNumber + example: sublocality + type: string + required: + - currencyCode + - lowestPrice + - name + - type + type: object + _location_search_post_200_response: + example: + languageCode: en + list: + - lowestPrice: 99.99 + name: Westerland + type: sublocality + currencyCode: EUR + - lowestPrice: 99.99 + name: Westerland + type: sublocality + currencyCode: EUR + properties: + languageCode: + description: The language code of the language in which the descriptive + texts for each found location are returned.

Please note that beside + the general restrictions listed below only languages configured during + system setup for your respective tenant are allowed.

See also in the appendix.

+ enum: + - af + - ar + - bg + - ca + - cs + - da + - de + - el + - en + - es + - et + - fi + - fr + - he + - hi + - hr + - hu + - id + - is + - it + - ja + - ko + - lt + - lv + - nl + - "no" + - pl + - pt + - ro + - ru + - sk + - sl + - sr + - sv + - th + - tr + - vi + - zh + example: en + type: string + list: + description: A list of available properties matching the given criteria. + items: + $ref: '#/components/schemas/Available_Properties_inner' + title: Available Properties + type: array + required: + - languageCode + - list + type: object + _location_search_post_400_response_validationErrors_inner: + description: A Zod issue. More fields can be present depending on the issue + type. + properties: + code: + description: The ZodIssueCode describing the issue. + enum: + - invalid_type + - invalid_literal + - custom + - invalid_union + - invalid_union_discriminator + - invalid_enum_value + - unrecognized_keys + - invalid_arguments + - invalid_return_type + - invalid_date + - invalid_string + - too_small + - too_big + - invalid_intersection_types + - not_multiple_of + - not_finite + example: invalid_type + type: string + message: + description: A message describing the error in a human readable way. + example: "Invalid type. Expected string, received number." + type: string + path: + description: "An array describing the position of the faulty property. The\ + \ first segment will always be either \"body\", \"pathParameters\" or\ + \ \"queryParameters\" indicating on which part of your request the error\ + \ occurred." + example: + - body + - myObjectKey + items: + type: string + type: array + required: + - code + - message + - path + type: object + _location_search_post_400_response: + properties: + validationErrors: + items: + $ref: '#/components/schemas/_location_search_post_400_response_validationErrors_inner' + type: array + required: + - validationErrors type: object - availabilitySearch: + _availability_search_post_request: + additionalProperties: false properties: adultCount: + default: 2 + description: The amount of adults that will stay at the property. example: 2 - type: number + minimum: 1 + type: integer childCount: + description: The amount of children that will stay at the property. example: 2 - type: number + minimum: 0 + type: integer childAgeList: + description: "A list describing the ages of the children that will stay\ + \ at the property. If childAgeList is set childCount\ + \ has to be set as well. If childAgeList and childCount\ + \ are set, childCount must be equal to the length of childAgeList." + example: + - 4 + - 7 items: - example: 3 - type: number + maximum: 17 + minimum: 1 + type: integer type: array currencyCode: + description: The currency code of the currency in which the lowest price + for each found location should be returned.

See also in + the appendix.

+ enum: + - AED + - ARS + - AUD + - AZN + - BGN + - BHD + - BRL + - CAD + - CHF + - CLP + - CNY + - COP + - CZK + - DKK + - EGP + - EUR + - FJD + - GBP + - GEL + - HKD + - HUF + - IDR + - ILS + - INR + - JOD + - JPY + - KRW + - KWD + - KZT + - MDL + - MXN + - MYR + - NAD + - NOK + - NZD + - OMR + - PLN + - QAR + - RON + - RUB + - SAR + - SEK + - SGD + - THB + - TRY + - TWD + - UAH + - USD + - XOF + - ZAR example: EUR type: string + languageCode: + description: The language code of the language in which the descriptive + texts for each found property should be returned.

Please note that beside + the general restrictions listed below only languages configured during + system setup for your respective tenant are allowed.

See also in the appendix.

+ enum: + - af + - ar + - bg + - ca + - cs + - da + - de + - el + - en + - es + - et + - fi + - fr + - he + - hi + - hr + - hu + - id + - is + - it + - ja + - ko + - lt + - lv + - nl + - "no" + - pl + - pt + - ro + - ru + - sk + - sl + - sr + - sv + - th + - tr + - vi + - zh + example: en + type: string + unitSystem: + default: metric + description: The unit system to use in the result. + enum: + - metric + - imperial + type: string minLengthOfStay: + description: The desired minimum length of stay in nights. example: 1 - type: number + maximum: 30 + minimum: 1 + type: integer maxLengthOfStay: + description: The desired maximum length of stay in nights. example: 27 - type: number + maximum: 30 + minimum: 1 + type: integer locationName: + description: "The name of a location the properties should be located in.If\ + \ locationType is set, locationName has to bet\ + \ set as well." example: Oberbayern type: string locationType: + description: "Defines the type oflocationName. If locationType\ + \ is set, locationName has to bet set as well.

See also\ + \ in the appendix.

" + enum: + - formatted_address + - place_id + - locality + - administrative_area_level_1 + - administrative_area_level_2 + - administrative_area_level_3 + - administrative_area_level_4 + - administrative_area_level_5 + - state_code + - country + - country_code + - postal_code + - language + - natural_feature + - establishment + - sublocality + - sublocality_level_1 + - sublocality_level_2 + - sublocality_level_3 + - sublocality_level_4 + - sublocality_level_5 + - streetNumber example: locality type: string earliestArrival: + description: The earliest possible arrival date. Expects exactly the format + of "YYYY-MM-DD". example: 2022-09-01 - format: date type: string latestReturn: + description: The latest possible departure date. Expects exactly the format + of "YYYY-MM-DD". example: 2022-09-08 - format: date type: string sort: - example: quality + description: "The criteria to order the results by. Sort order for price\ + \ is ascending, sort order for quality is always descending. Quality is\ + \ an internally calculated score for the property.',\n\n\n )}" + enum: + - quality + - price + example: price type: string serviceList: + description: A list of service codes indicating which services and amenities + the entire property should offer. The codes are AND chained.

See also + in the appendix.

+ example: + - 1 + - 2 items: - example: 242 + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 35 + - 36 + - 37 + - 38 + - 39 + - 40 + - 41 + - 42 + - 43 + - 44 + - 45 + - 46 + - 47 + - 48 + - 49 + - 50 + - 51 + - 52 + - 53 + - 54 + - 55 + - 56 + - 57 + - 58 + - 59 + - 60 + - 61 + - 62 + - 63 + - 64 + - 65 + - 66 + - 67 + - 68 + - 69 + - 70 + - 71 + - 72 + - 73 + - 74 + - 75 + - 76 + - 77 + - 78 + - 79 + - 80 + - 81 + - 82 + - 83 + - 84 + - 85 + - 86 + - 87 + - 88 + - 89 + - 90 + - 91 + - 92 + - 93 + - 94 + - 95 + - 96 + - 97 + - 98 + - 99 + - 100 + - 101 + - 102 + - 103 + - 104 + - 105 + - 106 + - 107 + - 108 + - 109 + - 110 + - 111 + - 112 + - 113 + - 114 + - 115 + - 116 + - 117 + - 118 + - 119 + - 120 + - 121 + - 122 + - 123 + - 124 + - 125 + - 126 + - 127 + - 128 + - 129 + - 130 + - 131 + - 132 + - 133 + - 134 + - 135 + - 136 + - 137 + - 138 + - 139 + - 140 + - 141 + - 142 + - 143 + - 144 + - 145 + - 146 + - 147 + - 148 + - 149 + - 150 + - 151 + - 152 + - 153 + - 154 + - 155 + - 156 + - 157 + - 158 + - 159 + - 160 + - 161 + - 162 + - 163 + - 164 + - 165 + - 166 + - 167 + - 168 + - 169 + - 170 + - 171 + - 172 + - 173 + - 174 + - 175 + - 176 + - 177 + - 178 + - 179 + - 180 + - 181 + - 182 + - 183 + - 184 + - 185 + - 186 + - 187 + - 188 + - 189 + - 190 + - 191 + - 192 + - 193 + - 194 + - 195 + - 196 + - 197 + - 198 + - 199 + - 200 + - 201 + - 202 + - 203 + - 204 + - 205 + - 206 + - 207 + - 208 + - 209 + - 210 + - 211 + - 212 + - 213 + - 214 + - 215 + - 216 + - 217 + - 218 + - 219 + - 220 + - 221 + - 222 + - 223 + - 224 + - 225 + - 226 + - 227 + - 228 + - 229 + - 230 + - 231 + - 232 + - 233 + - 234 + - 235 + - 236 + - 237 + - 238 + - 239 + - 240 + - 241 + - 242 + - 243 + - 244 + - 245 + - 246 + - 247 + - 248 + - 249 + - 250 + - 251 + - 252 + - 253 + - 254 + - 255 + - 256 + - 257 + - 258 + - 259 + - 260 + - 261 + - 262 + - 263 + - 264 + - 265 + - 266 + - 267 + - 268 + - 269 + - 270 + - 271 + - 272 + - 273 + - 274 + - 275 + - 276 + - 277 + - 278 + - 279 + - 280 + - 281 + - 282 + - 283 + - 284 + - 285 + - 286 + - 287 + - 288 + - 289 + - 290 + - 291 + - 292 + - 293 + - 294 + - 295 + - 296 + - 297 + - 298 + - 299 + - 300 + - 301 + - 302 + - 303 + - 304 + - 305 + - 306 + - 307 + - 308 + - 309 + - 310 + - 311 + - 312 + - 313 + - 314 + - 315 + - 316 + - 317 + - 318 + - 319 + - 320 + - 321 + - 322 + - 323 + - 324 + - 325 + - 326 + - 327 + - 328 + - 329 + - 331 + - 332 + - 333 + - 334 + - 335 + - 336 + - 337 + - 338 + - 339 + - 340 + - 341 + - 342 + - 343 + - 344 + - 345 + - 348 + - 349 + - 350 + - 351 + - 5000 + - 5001 + - 5002 + - 5003 + - 5004 + - 5005 + - 5006 + - 5007 + - 5008 + - 5009 + - 5010 + - 5011 + - 5012 + - 5013 + - 5014 + - 5015 + - 5016 + - 5017 + - 5018 + - 5020 + - 5021 + - 5022 + - 5023 + - 5024 + - 5025 + - 5026 + - 5027 + - 5028 + - 5029 + - 5030 + - 5031 + - 5032 + - 5033 + - 5034 + - 5035 + - 5036 + - 5037 + - 5039 + - 5040 + - 5041 + - 5042 + - 5043 + - 5044 + - 5045 + - 5046 + - 5047 + - 5048 + - 5049 + - 5050 + - 5051 + - 5052 + - 5053 + - 5054 + - 5055 + - 5056 + - 5057 + - 5058 + - 5059 + - 5060 + - 5061 + - 5062 + - 5063 + - 5064 + - 5065 + - 5066 + - 5067 + - 5068 + - 5069 + - 5070 + - 5071 + - 5072 + - 5073 + - 5074 + - 5075 + - 5076 + - 5077 + - 5078 + - 5079 + - 5080 + - 5081 + - 5082 + - 5083 + - 5084 + - 5085 + - 5086 + - 5087 + - 5088 + - 5089 + - 5090 + - 5091 + - 5092 + - 5093 + - 5094 + - 5095 + - 5096 + - 5097 + - 5098 + - 5099 + - 5100 + - 5101 + - 5102 + - 5103 + - 5104 + - 5105 + - 5106 + - 5107 + - 5108 + - 5109 + - 5110 + - 5111 + - 5112 + - 5113 + - 5114 + - 5115 + - 5116 + - 5117 + - 5118 + - 5119 + - 5120 + - 5121 + - 5122 + - 5123 + - 5124 + - 5125 + - 5126 + - 5127 + - 5128 + - 5129 + - 5130 + - 5131 + - 5132 + - 5133 + - 5134 + - 5135 + - 5136 + - 5137 + - 5138 + - 5139 + - 5140 + - 5141 + - 5142 + - 5143 + - 5144 + - 5145 + - 5146 + - 5147 + - 5148 + - 5149 + - 5150 + - 5151 + - 5152 + - 5153 + - 5154 + - 5156 + - 5157 + - 5158 + - 5159 + - 5160 + - 5161 + - 5162 + - 5163 + - 5164 + - 5165 + - 5166 + - 5167 + - 5168 + - 5169 + - 5170 + - 5171 + - 5172 + - 5173 + - 5174 + - 5175 + - 5176 + - 5177 + - 5178 + - 6000 + - 6001 + - 90001 type: number type: array typeList: + description: A list of property class type codes specifying the desired + property classes. The codes are OR chained.

See also in + the appendix.

+ example: + - 3 + - 4 items: - example: 20 + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 35 + - 36 + - 37 + - 38 + - 39 + - 40 + - 41 + - 42 + - 43 + - 44 + - 45 + - 46 + - 47 + - 48 + - 49 + - 50 + - 51 + - 52 + - 53 + - 54 + - 55 + - 56 + - 57 + - 58 + - 59 + - 60 + - 61 + - 62 + - 5000 + - 5001 + - 5002 + - 5003 + - 5004 + - 5005 + - 5006 + - 5007 + - 5008 + - 5009 type: number type: array unitTypeList: + description: A list of unit and room type codes indicating which kinds of + unit/room type is desired.

See also in + the appendix.

+ example: + - 5 + - 6 items: - example: 9 + enum: + - 1 + - 4 + - 5 + - 7 + - 8 + - 9 + - 10 + - 12 + - 13 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 31 + - 32 + - 33 type: number type: array unitAmenityList: + description: A list of room amenity type codes indicating which room level + amenities are desired. The codes are AND chained.

See also in + the appendix.

+ example: + - 7 + - 8 items: - example: 50 + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 35 + - 36 + - 37 + - 38 + - 39 + - 40 + - 41 + - 42 + - 43 + - 44 + - 45 + - 46 + - 47 + - 48 + - 49 + - 50 + - 51 + - 52 + - 53 + - 54 + - 55 + - 56 + - 57 + - 58 + - 59 + - 60 + - 61 + - 62 + - 63 + - 64 + - 65 + - 66 + - 67 + - 68 + - 69 + - 70 + - 71 + - 72 + - 73 + - 74 + - 75 + - 76 + - 77 + - 78 + - 79 + - 80 + - 81 + - 82 + - 83 + - 84 + - 85 + - 86 + - 87 + - 88 + - 89 + - 90 + - 91 + - 92 + - 93 + - 94 + - 95 + - 96 + - 97 + - 98 + - 99 + - 100 + - 101 + - 102 + - 103 + - 104 + - 105 + - 106 + - 107 + - 108 + - 109 + - 110 + - 111 + - 112 + - 113 + - 114 + - 115 + - 116 + - 117 + - 118 + - 119 + - 120 + - 121 + - 122 + - 123 + - 124 + - 125 + - 126 + - 127 + - 128 + - 129 + - 130 + - 131 + - 132 + - 133 + - 134 + - 135 + - 136 + - 137 + - 138 + - 139 + - 140 + - 141 + - 142 + - 143 + - 144 + - 145 + - 146 + - 147 + - 148 + - 149 + - 150 + - 151 + - 152 + - 153 + - 154 + - 155 + - 156 + - 157 + - 158 + - 159 + - 160 + - 161 + - 162 + - 163 + - 164 + - 165 + - 166 + - 167 + - 168 + - 169 + - 170 + - 171 + - 172 + - 173 + - 174 + - 175 + - 176 + - 177 + - 178 + - 179 + - 180 + - 181 + - 182 + - 183 + - 184 + - 185 + - 186 + - 187 + - 188 + - 189 + - 190 + - 191 + - 192 + - 193 + - 194 + - 195 + - 196 + - 197 + - 198 + - 199 + - 200 + - 201 + - 202 + - 203 + - 204 + - 205 + - 206 + - 207 + - 208 + - 209 + - 210 + - 211 + - 212 + - 213 + - 214 + - 215 + - 216 + - 217 + - 218 + - 219 + - 220 + - 221 + - 222 + - 223 + - 224 + - 225 + - 226 + - 227 + - 228 + - 229 + - 230 + - 231 + - 232 + - 233 + - 234 + - 235 + - 236 + - 237 + - 238 + - 239 + - 240 + - 241 + - 242 + - 243 + - 244 + - 245 + - 246 + - 247 + - 248 + - 249 + - 250 + - 251 + - 252 + - 253 + - 254 + - 255 + - 256 + - 257 + - 258 + - 259 + - 260 + - 261 + - 262 + - 263 + - 264 + - 265 + - 266 + - 267 + - 268 + - 269 + - 270 + - 271 + - 272 + - 273 + - 274 + - 275 + - 276 + - 277 + - 278 + - 279 + - 280 + - 281 + - 282 + - 283 + - 5001 + - 5002 + - 5003 + - 5004 + - 5005 + - 5006 + - 5007 + - 5008 + - 5009 + - 5010 + - 5011 + - 5012 + - 5013 + - 5014 + - 5015 + - 5016 + - 5017 + - 5018 + - 5019 + - 5020 + - 5021 + - 5022 + - 5023 + - 5024 + - 5025 + - 5026 + - 5027 + - 5028 + - 5029 + - 5030 + - 5031 + - 5032 + - 5033 + - 5034 + - 5035 + - 5036 + - 5037 + - 5038 + - 5039 + - 5040 + - 5041 + - 5042 + - 5043 + - 5044 + - 5045 + - 5046 + - 5068 + - 5069 + - 5070 + - 5071 + - 5072 + - 5073 + - 5074 + - 5075 + - 5076 + - 5077 + - 5079 + - 5080 + - 5081 + - 5082 + - 5083 + - 5084 + - 5085 + - 5086 + - 5087 + - 5088 + - 5089 + - 5090 + - 5091 + - 5092 + - 5093 + - 5094 + - 5095 + - 5096 + - 5097 + - 5098 + - 5099 + - 5100 + - 5101 + - 5102 + - 5103 + - 5104 + - 5105 + - 5106 + - 5107 + - 5108 + - 5109 + - 5110 + - 5111 + - 5112 + - 5113 + - 5114 + - 5115 + - 5116 + - 5117 + - 5118 + - 5119 + - 5120 + - 5121 + - 5122 + - 5123 + - 5124 + - 5125 + - 5126 + - 5127 + - 5129 + - 5130 + - 5131 + - 5132 + - 5133 + - 5134 + - 5135 + - 5136 + - 5137 + - 5138 + - 5139 + - 5140 + - 5141 + - 5142 + - 5143 + - 5144 + - 5145 + - 5146 + - 5147 + - 5148 + - 5149 + - 5150 + - 5151 + - 5152 + - 5153 + - 5154 + - 5157 + - 5158 + - 5159 + - 5160 + - 5161 + - 5162 + - 5163 + - 5164 + - 5165 + - 5166 + - 5167 + - 5168 + - 5169 + - 5170 + - 5171 + - 5172 + - 5173 + - 5174 + - 5175 + - 5176 + - 5177 + - 5178 + - 5179 + - 5180 + - 5181 + - 5182 + - 5184 + - 5185 + - 5186 + - 5187 + - 5188 + - 5189 + - 5190 + - 5191 + - 5196 + - 5198 + - 5199 + - 5200 + - 5201 + - 5202 + - 5203 + - 5204 + - 5205 + - 5206 + - 5207 + - 5211 + - 5212 + - 90001 + - 90002 + - 90003 + - 90004 + - 90005 + - 90006 + - 90007 + - 90008 + - 90009 + - 90010 + - 90011 type: number type: array mealPlanList: + description: A list of meal plan type codes indicating which kinds of meal + plan type is desired.

See also in the + appendix.

+ example: + - 9 + - 10 items: - example: 19 + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 90001 type: number type: array + required: + - currencyCode + - languageCode type: object - propertyGet: + Available_Properties_inner_1_geo_location: + example: + lng: 8.304857 + lat: 54.9157118 properties: - propertyId: - example: strandresidenz-sylt - type: string + lng: + description: The longitude coordinate of the location. + example: 8.304857 + type: number + lat: + description: The location of the property as coordinates + example: 54.9157118 + type: number + required: + - lat + - lng type: object - propertyList: + Available_Properties_inner_1_geo: + description: A geographical information set describing the location of this + property.

See also in the appendix. + example: + country: Germany + formatted_address: "Nordhedig 20, 25980 Sylt, Germany" + locality: Sylt + sublocality: Westerland + language: de + sublocality_level_2: Some Sublocality + sublocality_level_1: Westerland + country_code: DE + route: Nordhedig + administrative_area_level_2: Friesland + sublocality_level_5: Some Sublocality + administrative_area_level_3: administrative_area_level_3 + sublocality_level_4: Some Sublocality + sublocality_level_3: Some Sublocality + administrative_area_level_1: Schleswig-Holstein + street_number: "20" + administrative_area_level_4: administrative_area_level_4 + location: + lng: 8.304857 + lat: 54.9157118 + administrative_area_level_5: administrative_area_level_5 + postal_code: "25980" + state_code: SH + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw properties: - keyword: - example: Strandresidenz Sylt + language: + description: The language of the localizable fields ot this geographical + information set.

Please note that beside the general restrictions listed + below only languages configured during system setup for your respective + tenant are allowed.

See also in the + appendix.

+ enum: + - af + - ar + - bg + - ca + - cs + - da + - de + - el + - en + - es + - et + - fi + - fr + - he + - hi + - hr + - hu + - id + - is + - it + - ja + - ko + - lt + - lv + - nl + - "no" + - pl + - pt + - ro + - ru + - sk + - sl + - sr + - sv + - th + - tr + - vi + - zh + example: de type: string - pageToken: - example: eyJ0ZW5hbnRDb2RlIjoiZG1vLWRlbW8iLCJuYW1lIjoiTGFuZGhhdXMgVHJlc2tlcnNhbmQiLCJwcm9wZXJ0eUlkIjoibGFuZGhhdXMtdHJlc2tlcnNhbmQifQ== + formatted_address: + description: The formatted address in the local format of the properties + location. + example: "Nordhedig 20, 25980 Sylt, Germany" type: string - type: object - _v1_property_get_post_200_response_property_recordCreated: - example: - role: admin - time: 1609411613660 - user: microsoft:user:2f1d8a1b-bae8-4333-8f0f-7ad28af03e3f - tenant: dmo-demo - properties: - user: - example: microsoft:user:2f1d8a1b-bae8-4333-8f0f-7ad28af03e3f + route: + description: The name of the route or street. + example: Nordhedig type: string - tenant: - example: dmo-demo + street_number: + description: The number of the street. + example: "20" type: string - role: - example: admin + postal_code: + description: The postal code of the location. + example: "25980" type: string - time: - example: 1609411613660 - type: number - type: object - _v1_property_get_post_200_response_property_recordModified: - example: - role: admin - time: 1652091332815 - user: microsoft:user:2f1d8a1b-bae8-4333-8f0f-7ad28af03e3f - tenant: dmo-demo - properties: - user: - example: microsoft:user:2f1d8a1b-bae8-4333-8f0f-7ad28af03e3f + locality: + description: A city or town. + example: Sylt type: string - tenant: - example: dmo-demo + sublocality: + description: A smaller area within a locality. + example: Westerland type: string - role: - example: admin + sublocality_level_1: + description: A smaller area within a locality at level 1. + example: Westerland type: string - time: - example: 1652091332815 - type: number - type: object - _v1_property_get_post_200_response_property_propertyInfo_messageList_inner: - example: - text: More sea does not work! - languageCode: en - properties: - languageCode: - example: en + sublocality_level_2: + description: A smaller area within a locality at level 2. + example: Some Sublocality type: string - text: - example: More sea does not work! + sublocality_level_3: + description: A smaller area within a locality at level 3. + example: Some Sublocality + type: string + sublocality_level_4: + description: A smaller area within a locality at level 4. + example: Some Sublocality type: string + sublocality_level_5: + description: A smaller area within a locality at level 5. + example: Some Sublocality + type: string + administrative_area_level_1: + description: "A level 1 administrative area, such as a state or province." + example: Schleswig-Holstein + type: string + administrative_area_level_2: + description: A level 2 administrative area. + example: Friesland + type: string + administrative_area_level_3: + description: A level 3 administrative area + type: string + administrative_area_level_4: + description: A level 4 administrative area. + type: string + administrative_area_level_5: + description: A level 5 administrative area + type: string + state_code: + description: The state or province code for the administrative area. + example: SH + type: string + country: + description: The country of this geographical information set. + example: Germany + type: string + country_code: + description: The country code for the country. + example: DE + type: string + location: + $ref: '#/components/schemas/Available_Properties_inner_1_geo_location' + place_id: + description: Uniquely identifies a place in our database. + example: ChIJVaxqTevetEcRyfs8PGHK6mw + type: string + required: + - formatted_address + - language + - location + - place_id type: object - _v1_property_get_post_200_response_property_propertyInfo_categoryList_inner: + Available_Properties_inner_1_mediaList_inner: example: - code: 34 - name: Vacation home - exists: true + tagList: + - 3 + - 55 + isMainImage: true + sortOrder: 1000 + url: 5e3d9d49e9480.jpg properties: - exists: + tagList: + description: A list of tag codes for the media.

See also in + the appendix.

+ example: + - 3 + - 55 + items: + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 10 + - 11 + - 13 + - 14 + - 37 + - 41 + - 42 + - 43 + - 50 + - 55 + - 61 + - 70 + - 74 + - 81 + - 82 + - 87 + - 89 + - 90 + - 94 + - 95 + - 96 + - 97 + - 100 + - 102 + - 103 + - 104 + - 106 + - 107 + - 108 + - 112 + - 113 + - 114 + - 115 + - 116 + - 124 + - 125 + - 128 + - 131 + - 133 + - 134 + - 137 + - 141 + - 143 + - 153 + - 154 + - 155 + - 156 + - 157 + - 158 + - 159 + - 160 + - 161 + - 164 + - 165 + - 167 + - 172 + - 173 + - 177 + - 178 + - 179 + - 182 + - 183 + - 184 + - 185 + - 186 + - 187 + - 188 + - 189 + - 190 + - 191 + - 192 + - 193 + - 194 + - 197 + - 198 + - 199 + - 204 + - 205 + - 240 + - 241 + - 242 + - 245 + - 246 + - 247 + - 248 + - 249 + - 250 + - 251 + - 252 + - 253 + - 254 + - 255 + - 256 + - 257 + - 258 + - 259 + - 260 + - 261 + - 262 + - 263 + - 264 + - 265 + - 266 + - 267 + - 268 + - 269 + - 270 + - 271 + - 272 + - 273 + - 276 + - 277 + - 278 + - 279 + - 280 + - 281 + - 282 + - 283 + - 284 + - 285 + - 286 + - 287 + - 289 + - 290 + - 291 + type: number + type: array + isMainImage: + description: Whether the media is the main image for the property. + example: true type: boolean - code: - example: 34 - type: number - name: - example: Vacation home + url: + description: The URL for the media. + example: 5e3d9d49e9480.jpg type: string + sortOrder: + description: The sort order for the media. + example: 1000 + type: number + required: + - isMainImage + - sortOrder + - tagList + - url type: object - _v1_property_get_post_200_response_property_propertyInfo_location: + Available_Properties_inner_1_attractionList_inner_distance: + description: The distance from the property to this attraction. Whether this + is road or air distance is not clearly defined as the values are entered by + the tenants admins. example: - latitude: 54.91574091463751 - longitude: 8.30486146909412 + unit: m + value: 2300 properties: - latitude: - example: 54.91574091463751 - type: number - longitude: - example: 8.30486146909412 + value: + description: The numeric value of the distance. + example: 2300 type: number + unit: + description: The unit of the value of the distance. + enum: + - m + - ft + example: m + type: string + required: + - unit + - value type: object - _v1_property_get_post_200_response_property_propertyInfo_acceptedPaymentList_inner: + Available_Properties_inner_1_attractionList_inner: example: - code: eccard - name: EC-card - type: debitcard + distance: + unit: m + value: 2300 + name: Flughafen Sylt + typeCode: 0.8008281904610115 properties: - code: - example: eccard - type: string + typeCode: + description: The code for this attraction type.

See also in + the appendix.

+ enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 35 + - 36 + - 37 + - 38 + - 39 + - 40 + - 41 + - 42 + - 43 + - 44 + - 45 + - 46 + - 47 + - 48 + - 49 + - 50 + - 51 + - 52 + - 53 + - 54 + - 55 + - 56 + - 57 + - 58 + - 59 + - 60 + - 61 + - 62 + - 63 + - 64 + - 65 + - 66 + - 67 + - 68 + - 69 + - 70 + - 71 + - 72 + - 73 + - 74 + - 75 + - 76 + - 77 + - 78 + - 79 + - 80 + - 81 + - 82 + - 83 + - 84 + - 85 + - 86 + - 87 + - 88 + - 89 + - 90 + - 91 + - 92 + - 93 + - 94 + - 95 + - 96 + - 97 + - 98 + - 99 + - 100 + - 101 + - 102 + - 103 + - 104 + - 105 + - 106 + - 107 + - 108 + - 109 + - 110 + - 90001 + - 90002 + - 90003 + - 90004 + - 90005 + - 90006 + - 90007 + - 90008 + - 90009 + - 90010 + type: number name: - example: EC-card - type: string - type: - example: debitcard + description: The name of the attraction. Names are proper nouns and therefore + not affected by the given language code. + example: Flughafen Sylt type: string + distance: + $ref: '#/components/schemas/Available_Properties_inner_1_attractionList_inner_distance' + required: + - distance + - name + - typeCode type: object - _v1_property_get_post_200_response_property_propertyInfo: + Available_Properties_inner_1_lowestPrice: + description: An object outlining the stay with the lowest available price point + for this property. example: - messageList: - - text: More sea does not work! - languageCode: en - - text: More sea does not work! - languageCode: en - unitCount: 4 - categoryList: - - code: 34 - name: Vacation home - exists: true - - code: 34 - name: Vacation home - exists: true - location: - latitude: 54.91574091463751 - longitude: 8.30486146909412 - languageList: - - de - - de - acceptedPaymentList: - - code: eccard - name: EC-card - type: debitcard - - code: eccard - name: EC-card - type: debitcard + lengthOfStay: 1 + amount: 89.99 + returnDate: 1660867200 + currencyCode: EUR + arrivalDate: 1660780800 properties: - unitCount: - example: 4 + amount: + description: The amount of the lowest price. + example: 89.99 type: number - messageList: - items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_propertyInfo_messageList_inner' - type: array - categoryList: - items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_propertyInfo_categoryList_inner' - type: array - languageList: - items: - example: de - type: string - type: array - location: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_propertyInfo_location' - acceptedPaymentList: - items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_propertyInfo_acceptedPaymentList_inner' - type: array - type: object - _v1_property_get_post_200_response_property_guestInfo: - example: - guestNameListRequired: true - guestContactNumberRequired: true - guestAddressRequired: true - properties: - guestAddressRequired: - type: boolean - guestContactNumberRequired: - type: boolean - guestNameListRequired: - type: boolean - type: object - _v1_property_get_post_200_response_property_awardList_inner: - example: - provider: star-rating - rating: 0 - properties: - provider: - example: star-rating + currencyCode: + description: The currency code for the given amount.

See also in + the appendix.

+ enum: + - AED + - ARS + - AUD + - AZN + - BGN + - BHD + - BRL + - CAD + - CHF + - CLP + - CNY + - COP + - CZK + - DKK + - EGP + - EUR + - FJD + - GBP + - GEL + - HKD + - HUF + - IDR + - ILS + - INR + - JOD + - JPY + - KRW + - KWD + - KZT + - MDL + - MXN + - MYR + - NAD + - NOK + - NZD + - OMR + - PLN + - QAR + - RON + - RUB + - SAR + - SEK + - SGD + - THB + - TRY + - TWD + - UAH + - USD + - XOF + - ZAR + example: EUR type: string - rating: - example: 0 + arrivalDate: + description: Arrival date for the given price as unix timestamp (seconds). + example: 1660780800 type: number - type: object - _v1_property_get_post_200_response_property_contactList_inner_addressList_inner: - example: - cityName: Sylt - propertyName: Strandresidenz Sylt - countryCode: DE - postalCode: "25980" - state: SH - addressLine: Nordhedig 20 - properties: - addressLine: - example: Nordhedig 20 - type: string - propertyName: - example: Strandresidenz Sylt - type: string - cityName: - example: Sylt - type: string - postalCode: - example: "25980" - type: string - state: - example: SH - type: string - countryCode: - example: DE - type: string - type: object - _v1_property_get_post_200_response_property_contactList_inner: - example: - profileType: physicallocation - addressList: - - cityName: Sylt - propertyName: Strandresidenz Sylt - countryCode: DE - postalCode: "25980" - state: SH - addressLine: Nordhedig 20 - - cityName: Sylt - propertyName: Strandresidenz Sylt - countryCode: DE - postalCode: "25980" - state: SH - addressLine: Nordhedig 20 - properties: - profileType: - example: physicallocation - type: string - addressList: - items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_contactList_inner_addressList_inner' - type: array - type: object - _v1_property_get_post_200_response_property_facilityInfo_guestRoomList_inner_amenityList_inner: - example: - code: "5005" - quantity: 1 - properties: - code: - example: "5005" - type: string - quantity: + returnDate: + description: Departure date for the given price as unix timestamp (seconds). + example: 1660867200 + type: number + lengthOfStay: + description: The amount of nights of stay this price is for example: 1 type: number + required: + - amount + - arrivalDate + - currencyCode + - lengthOfStay + - returnDate type: object - _v1_property_get_post_200_response_property_facilityInfo_guestRoomList_inner_messageList_inner: + Available_Properties_inner_1: example: - text: Maisonette apartment on ground floor + lowestPrice: + lengthOfStay: 1 + amount: 89.99 + returnDate: 1660867200 + currencyCode: EUR + arrivalDate: 1660780800 + code: strandresidenz-sylt languageCode: en + uri: strandresidenz-sylt + geo: + country: Germany + formatted_address: "Nordhedig 20, 25980 Sylt, Germany" + locality: Sylt + sublocality: Westerland + language: de + sublocality_level_2: Some Sublocality + sublocality_level_1: Westerland + country_code: DE + route: Nordhedig + administrative_area_level_2: Friesland + sublocality_level_5: Some Sublocality + administrative_area_level_3: administrative_area_level_3 + sublocality_level_4: Some Sublocality + sublocality_level_3: Some Sublocality + administrative_area_level_1: Schleswig-Holstein + street_number: "20" + administrative_area_level_4: administrative_area_level_4 + location: + lng: 8.304857 + lat: 54.9157118 + administrative_area_level_5: administrative_area_level_5 + postal_code: "25980" + state_code: SH + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + mediaList: + - tagList: + - 3 + - 55 + isMainImage: true + sortOrder: 1000 + url: 5e3d9d49e9480.jpg + - tagList: + - 3 + - 55 + isMainImage: true + sortOrder: 1000 + url: 5e3d9d49e9480.jpg + name: Strandresidenz Sylt + serviceList: + - 1 + - 2 + categoryList: + - 3 + - 4 + attractionList: + - distance: + unit: m + value: 2300 + name: Flughafen Sylt + typeCode: 0.8008281904610115 + - distance: + unit: m + value: 2300 + name: Flughafen Sylt + typeCode: 0.8008281904610115 + unitSystem: metric + text: This family-run hotel in Wenningstedt on Sylt is just 820 feet from + the beach. It offers rooms which are decorated in a typically Frisian style. + A breakfast buffet is prepared each morning at the Sylter Domizil. The Wintergarten + conservatory café/bistro serves snacks and drinks during the day. The bar + includes a free internet terminal. The Sylter Domizil's 722 ft² spa features + a sauna steam bath and fitness room. The terrace has wicker beach chairs + for relaxing in. + currencyCode: EUR + uriPath: germany/schleswig-holstein/nordfriesland/wenningstedt-braderup-sylt/strandresidenz-sylt properties: + code: + description: The properties unique code/ID. + example: strandresidenz-sylt + type: string languageCode: + description: The language code of the language in which the property description + is written.

Please note that beside the general restrictions listed + below only languages configured during system setup for your respective + tenant are allowed.

See also in the + appendix.

+ enum: + - af + - ar + - bg + - ca + - cs + - da + - de + - el + - en + - es + - et + - fi + - fr + - he + - hi + - hr + - hu + - id + - is + - it + - ja + - ko + - lt + - lv + - nl + - "no" + - pl + - pt + - ro + - ru + - sk + - sl + - sr + - sv + - th + - tr + - vi + - zh example: en type: string - text: - example: Maisonette apartment on ground floor + currencyCode: + description: The currency code for the currency in which prices are returned.

See + also in the appendix.

+ enum: + - AED + - ARS + - AUD + - AZN + - BGN + - BHD + - BRL + - CAD + - CHF + - CLP + - CNY + - COP + - CZK + - DKK + - EGP + - EUR + - FJD + - GBP + - GEL + - HKD + - HUF + - IDR + - ILS + - INR + - JOD + - JPY + - KRW + - KWD + - KZT + - MDL + - MXN + - MYR + - NAD + - NOK + - NZD + - OMR + - PLN + - QAR + - RON + - RUB + - SAR + - SEK + - SGD + - THB + - TRY + - TWD + - UAH + - USD + - XOF + - ZAR + example: EUR type: string - type: object - _v1_property_get_post_200_response_property_facilityInfo_guestRoomList_inner_mediaList_inner_tagList_inner: - example: - code: 159 - name: Living room - properties: - code: - example: 159 - type: number - name: - example: Living room + unitSystem: + description: The unit system (either "metric" or "imperial") used for measurements. + enum: + - metric + - imperial + example: metric type: string - type: object - _v1_property_get_post_200_response_property_facilityInfo_guestRoomList_inner_mediaList_inner_roomAmenityList_inner: - example: - code: 146 - name: Tables and chairs - properties: - code: - example: 146 - type: number name: - example: Tables and chairs + description: The name of the property. + example: Strandresidenz Sylt type: string - type: object - _v1_property_get_post_200_response_property_facilityInfo_guestRoomList_inner_mediaList_inner: - example: - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room - roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs - isMainImage: true - detectionLabelList: - - furniture - - furniture - sortOrder: 1001 - moderationLabelList: - - moderationLabelList - - moderationLabelList - propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg - properties: - isMainImage: - type: boolean - sortOrder: - example: 1001 - type: number - url: - example: zim_1280x960_164357_002.jpg + uri: + description: A URI for the property. + example: strandresidenz-sylt type: string - tagList: - items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_facilityInfo_guestRoomList_inner_mediaList_inner_tagList_inner' - type: array - moderationLabelList: + serviceList: + description: A list of service codes indicating the services and amenities + the property has.

See also in the appendix.

+ example: + - 1 + - 2 items: - type: string + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 35 + - 36 + - 37 + - 38 + - 39 + - 40 + - 41 + - 42 + - 43 + - 44 + - 45 + - 46 + - 47 + - 48 + - 49 + - 50 + - 51 + - 52 + - 53 + - 54 + - 55 + - 56 + - 57 + - 58 + - 59 + - 60 + - 61 + - 62 + - 63 + - 64 + - 65 + - 66 + - 67 + - 68 + - 69 + - 70 + - 71 + - 72 + - 73 + - 74 + - 75 + - 76 + - 77 + - 78 + - 79 + - 80 + - 81 + - 82 + - 83 + - 84 + - 85 + - 86 + - 87 + - 88 + - 89 + - 90 + - 91 + - 92 + - 93 + - 94 + - 95 + - 96 + - 97 + - 98 + - 99 + - 100 + - 101 + - 102 + - 103 + - 104 + - 105 + - 106 + - 107 + - 108 + - 109 + - 110 + - 111 + - 112 + - 113 + - 114 + - 115 + - 116 + - 117 + - 118 + - 119 + - 120 + - 121 + - 122 + - 123 + - 124 + - 125 + - 126 + - 127 + - 128 + - 129 + - 130 + - 131 + - 132 + - 133 + - 134 + - 135 + - 136 + - 137 + - 138 + - 139 + - 140 + - 141 + - 142 + - 143 + - 144 + - 145 + - 146 + - 147 + - 148 + - 149 + - 150 + - 151 + - 152 + - 153 + - 154 + - 155 + - 156 + - 157 + - 158 + - 159 + - 160 + - 161 + - 162 + - 163 + - 164 + - 165 + - 166 + - 167 + - 168 + - 169 + - 170 + - 171 + - 172 + - 173 + - 174 + - 175 + - 176 + - 177 + - 178 + - 179 + - 180 + - 181 + - 182 + - 183 + - 184 + - 185 + - 186 + - 187 + - 188 + - 189 + - 190 + - 191 + - 192 + - 193 + - 194 + - 195 + - 196 + - 197 + - 198 + - 199 + - 200 + - 201 + - 202 + - 203 + - 204 + - 205 + - 206 + - 207 + - 208 + - 209 + - 210 + - 211 + - 212 + - 213 + - 214 + - 215 + - 216 + - 217 + - 218 + - 219 + - 220 + - 221 + - 222 + - 223 + - 224 + - 225 + - 226 + - 227 + - 228 + - 229 + - 230 + - 231 + - 232 + - 233 + - 234 + - 235 + - 236 + - 237 + - 238 + - 239 + - 240 + - 241 + - 242 + - 243 + - 244 + - 245 + - 246 + - 247 + - 248 + - 249 + - 250 + - 251 + - 252 + - 253 + - 254 + - 255 + - 256 + - 257 + - 258 + - 259 + - 260 + - 261 + - 262 + - 263 + - 264 + - 265 + - 266 + - 267 + - 268 + - 269 + - 270 + - 271 + - 272 + - 273 + - 274 + - 275 + - 276 + - 277 + - 278 + - 279 + - 280 + - 281 + - 282 + - 283 + - 284 + - 285 + - 286 + - 287 + - 288 + - 289 + - 290 + - 291 + - 292 + - 293 + - 294 + - 295 + - 296 + - 297 + - 298 + - 299 + - 300 + - 301 + - 302 + - 303 + - 304 + - 305 + - 306 + - 307 + - 308 + - 309 + - 310 + - 311 + - 312 + - 313 + - 314 + - 315 + - 316 + - 317 + - 318 + - 319 + - 320 + - 321 + - 322 + - 323 + - 324 + - 325 + - 326 + - 327 + - 328 + - 329 + - 331 + - 332 + - 333 + - 334 + - 335 + - 336 + - 337 + - 338 + - 339 + - 340 + - 341 + - 342 + - 343 + - 344 + - 345 + - 348 + - 349 + - 350 + - 351 + - 5000 + - 5001 + - 5002 + - 5003 + - 5004 + - 5005 + - 5006 + - 5007 + - 5008 + - 5009 + - 5010 + - 5011 + - 5012 + - 5013 + - 5014 + - 5015 + - 5016 + - 5017 + - 5018 + - 5020 + - 5021 + - 5022 + - 5023 + - 5024 + - 5025 + - 5026 + - 5027 + - 5028 + - 5029 + - 5030 + - 5031 + - 5032 + - 5033 + - 5034 + - 5035 + - 5036 + - 5037 + - 5039 + - 5040 + - 5041 + - 5042 + - 5043 + - 5044 + - 5045 + - 5046 + - 5047 + - 5048 + - 5049 + - 5050 + - 5051 + - 5052 + - 5053 + - 5054 + - 5055 + - 5056 + - 5057 + - 5058 + - 5059 + - 5060 + - 5061 + - 5062 + - 5063 + - 5064 + - 5065 + - 5066 + - 5067 + - 5068 + - 5069 + - 5070 + - 5071 + - 5072 + - 5073 + - 5074 + - 5075 + - 5076 + - 5077 + - 5078 + - 5079 + - 5080 + - 5081 + - 5082 + - 5083 + - 5084 + - 5085 + - 5086 + - 5087 + - 5088 + - 5089 + - 5090 + - 5091 + - 5092 + - 5093 + - 5094 + - 5095 + - 5096 + - 5097 + - 5098 + - 5099 + - 5100 + - 5101 + - 5102 + - 5103 + - 5104 + - 5105 + - 5106 + - 5107 + - 5108 + - 5109 + - 5110 + - 5111 + - 5112 + - 5113 + - 5114 + - 5115 + - 5116 + - 5117 + - 5118 + - 5119 + - 5120 + - 5121 + - 5122 + - 5123 + - 5124 + - 5125 + - 5126 + - 5127 + - 5128 + - 5129 + - 5130 + - 5131 + - 5132 + - 5133 + - 5134 + - 5135 + - 5136 + - 5137 + - 5138 + - 5139 + - 5140 + - 5141 + - 5142 + - 5143 + - 5144 + - 5145 + - 5146 + - 5147 + - 5148 + - 5149 + - 5150 + - 5151 + - 5152 + - 5153 + - 5154 + - 5156 + - 5157 + - 5158 + - 5159 + - 5160 + - 5161 + - 5162 + - 5163 + - 5164 + - 5165 + - 5166 + - 5167 + - 5168 + - 5169 + - 5170 + - 5171 + - 5172 + - 5173 + - 5174 + - 5175 + - 5176 + - 5177 + - 5178 + - 6000 + - 6001 + - 90001 + type: number type: array - detectionLabelList: + categoryList: + description: A list of property class type codes indicating the types of + the property.

See also in the appendix.

+ example: + - 3 + - 4 items: - example: furniture - type: string + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 35 + - 36 + - 37 + - 38 + - 39 + - 40 + - 41 + - 42 + - 43 + - 44 + - 45 + - 46 + - 47 + - 48 + - 49 + - 50 + - 51 + - 52 + - 53 + - 54 + - 55 + - 56 + - 57 + - 58 + - 59 + - 60 + - 61 + - 62 + - 5000 + - 5001 + - 5002 + - 5003 + - 5004 + - 5005 + - 5006 + - 5007 + - 5008 + - 5009 + type: number type: array - propertyAmenityList: + uriPath: + description: A URI path for the property. + example: germany/schleswig-holstein/nordfriesland/wenningstedt-braderup-sylt/strandresidenz-sylt + type: string + text: + description: A description of the property. + example: This family-run hotel in Wenningstedt on Sylt is just 820 feet + from the beach. It offers rooms which are decorated in a typically Frisian + style. A breakfast buffet is prepared each morning at the Sylter Domizil. + The Wintergarten conservatory café/bistro serves snacks and drinks during + the day. The bar includes a free internet terminal. The Sylter Domizil's + 722 ft² spa features a sauna steam bath and fitness room. The terrace + has wicker beach chairs for relaxing in. + type: string + geo: + $ref: '#/components/schemas/Available_Properties_inner_1_geo' + mediaList: + description: A list of media objects for the property. items: - type: string + $ref: '#/components/schemas/Available_Properties_inner_1_mediaList_inner' type: array - roomAmenityList: + attractionList: + description: A list of objects describing the attractions available at the + property. items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_facilityInfo_guestRoomList_inner_mediaList_inner_roomAmenityList_inner' + $ref: '#/components/schemas/Available_Properties_inner_1_attractionList_inner' type: array + lowestPrice: + $ref: '#/components/schemas/Available_Properties_inner_1_lowestPrice' + required: + - attractionList + - categoryList + - code + - currencyCode + - languageCode + - lowestPrice + - mediaList + - name + - serviceList + - text + - unitSystem + - uri + - uriPath type: object - _v1_property_get_post_200_response_property_facilityInfo_guestRoomList_inner: + _availability_search_post_200_response: example: - roomTypeCode: "1" - typeName: typeName - roomTypeName: roomTypeName - maxAdultOccupancy: "4" - descriptionText: descriptionText - isActive: true - amenityList: - - code: "5005" - quantity: 1 - - code: "5005" - quantity: 1 - roomId: amrum - maxChildOccupancy: "4" - isNonSmoking: true - mediaList: - - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room - roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs - isMainImage: true - detectionLabelList: - - furniture - - furniture - sortOrder: 1001 - moderationLabelList: - - moderationLabelList - - moderationLabelList - propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg - - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room - roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs - isMainImage: true - detectionLabelList: - - furniture - - furniture - sortOrder: 1001 - moderationLabelList: - - moderationLabelList - - moderationLabelList - propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg - messageList: - - text: Maisonette apartment on ground floor - languageCode: en - - text: Maisonette apartment on ground floor + languageCode: af + list: + - lowestPrice: + lengthOfStay: 1 + amount: 89.99 + returnDate: 1660867200 + currencyCode: EUR + arrivalDate: 1660780800 + code: strandresidenz-sylt languageCode: en - name: Amrum - maxOccupancy: "4" - imageList: - - imageList - - imageList - properties: - isActive: - type: boolean - roomId: - example: amrum - type: string - name: - example: Amrum - type: string - typeName: - type: string - descriptionText: - type: string - imageList: - items: - type: string - type: array - roomTypeCode: - example: "1" - type: string - isNonSmoking: - type: boolean - roomTypeName: - type: string - amenityList: - items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_facilityInfo_guestRoomList_inner_amenityList_inner' - type: array - maxOccupancy: - example: "4" - type: string - messageList: - items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_facilityInfo_guestRoomList_inner_messageList_inner' - type: array - mediaList: - items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_facilityInfo_guestRoomList_inner_mediaList_inner' - type: array - maxAdultOccupancy: - example: "4" - type: string - maxChildOccupancy: - example: "4" - type: string - type: object - _v1_property_get_post_200_response_property_facilityInfo: - example: - guestRoomList: - - roomTypeCode: "1" - typeName: typeName - roomTypeName: roomTypeName - maxAdultOccupancy: "4" - descriptionText: descriptionText - isActive: true - amenityList: - - code: "5005" - quantity: 1 - - code: "5005" - quantity: 1 - roomId: amrum - maxChildOccupancy: "4" - isNonSmoking: true + uri: strandresidenz-sylt + geo: + country: Germany + formatted_address: "Nordhedig 20, 25980 Sylt, Germany" + locality: Sylt + sublocality: Westerland + language: de + sublocality_level_2: Some Sublocality + sublocality_level_1: Westerland + country_code: DE + route: Nordhedig + administrative_area_level_2: Friesland + sublocality_level_5: Some Sublocality + administrative_area_level_3: administrative_area_level_3 + sublocality_level_4: Some Sublocality + sublocality_level_3: Some Sublocality + administrative_area_level_1: Schleswig-Holstein + street_number: "20" + administrative_area_level_4: administrative_area_level_4 + location: + lng: 8.304857 + lat: 54.9157118 + administrative_area_level_5: administrative_area_level_5 + postal_code: "25980" + state_code: SH + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw mediaList: - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room - roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs + - 3 + - 55 isMainImage: true - detectionLabelList: - - furniture - - furniture - sortOrder: 1001 - moderationLabelList: - - moderationLabelList - - moderationLabelList - propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg + sortOrder: 1000 + url: 5e3d9d49e9480.jpg - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room - roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs + - 3 + - 55 isMainImage: true - detectionLabelList: - - furniture - - furniture - sortOrder: 1001 - moderationLabelList: - - moderationLabelList - - moderationLabelList - propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg - messageList: - - text: Maisonette apartment on ground floor - languageCode: en - - text: Maisonette apartment on ground floor - languageCode: en - name: Amrum - maxOccupancy: "4" - imageList: - - imageList - - imageList - - roomTypeCode: "1" - typeName: typeName - roomTypeName: roomTypeName - maxAdultOccupancy: "4" - descriptionText: descriptionText - isActive: true - amenityList: - - code: "5005" - quantity: 1 - - code: "5005" - quantity: 1 - roomId: amrum - maxChildOccupancy: "4" - isNonSmoking: true + sortOrder: 1000 + url: 5e3d9d49e9480.jpg + name: Strandresidenz Sylt + serviceList: + - 1 + - 2 + categoryList: + - 3 + - 4 + attractionList: + - distance: + unit: m + value: 2300 + name: Flughafen Sylt + typeCode: 0.8008281904610115 + - distance: + unit: m + value: 2300 + name: Flughafen Sylt + typeCode: 0.8008281904610115 + unitSystem: metric + text: This family-run hotel in Wenningstedt on Sylt is just 820 feet from + the beach. It offers rooms which are decorated in a typically Frisian + style. A breakfast buffet is prepared each morning at the Sylter Domizil. + The Wintergarten conservatory café/bistro serves snacks and drinks during + the day. The bar includes a free internet terminal. The Sylter Domizil's + 722 ft² spa features a sauna steam bath and fitness room. The terrace + has wicker beach chairs for relaxing in. + currencyCode: EUR + uriPath: germany/schleswig-holstein/nordfriesland/wenningstedt-braderup-sylt/strandresidenz-sylt + - lowestPrice: + lengthOfStay: 1 + amount: 89.99 + returnDate: 1660867200 + currencyCode: EUR + arrivalDate: 1660780800 + code: strandresidenz-sylt + languageCode: en + uri: strandresidenz-sylt + geo: + country: Germany + formatted_address: "Nordhedig 20, 25980 Sylt, Germany" + locality: Sylt + sublocality: Westerland + language: de + sublocality_level_2: Some Sublocality + sublocality_level_1: Westerland + country_code: DE + route: Nordhedig + administrative_area_level_2: Friesland + sublocality_level_5: Some Sublocality + administrative_area_level_3: administrative_area_level_3 + sublocality_level_4: Some Sublocality + sublocality_level_3: Some Sublocality + administrative_area_level_1: Schleswig-Holstein + street_number: "20" + administrative_area_level_4: administrative_area_level_4 + location: + lng: 8.304857 + lat: 54.9157118 + administrative_area_level_5: administrative_area_level_5 + postal_code: "25980" + state_code: SH + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw mediaList: - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room - roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs + - 3 + - 55 isMainImage: true - detectionLabelList: - - furniture - - furniture - sortOrder: 1001 - moderationLabelList: - - moderationLabelList - - moderationLabelList - propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg + sortOrder: 1000 + url: 5e3d9d49e9480.jpg - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room - roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs + - 3 + - 55 isMainImage: true - detectionLabelList: - - furniture - - furniture - sortOrder: 1001 - moderationLabelList: - - moderationLabelList - - moderationLabelList - propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg - messageList: - - text: Maisonette apartment on ground floor - languageCode: en - - text: Maisonette apartment on ground floor - languageCode: en - name: Amrum - maxOccupancy: "4" - imageList: - - imageList - - imageList + sortOrder: 1000 + url: 5e3d9d49e9480.jpg + name: Strandresidenz Sylt + serviceList: + - 1 + - 2 + categoryList: + - 3 + - 4 + attractionList: + - distance: + unit: m + value: 2300 + name: Flughafen Sylt + typeCode: 0.8008281904610115 + - distance: + unit: m + value: 2300 + name: Flughafen Sylt + typeCode: 0.8008281904610115 + unitSystem: metric + text: This family-run hotel in Wenningstedt on Sylt is just 820 feet from + the beach. It offers rooms which are decorated in a typically Frisian + style. A breakfast buffet is prepared each morning at the Sylter Domizil. + The Wintergarten conservatory café/bistro serves snacks and drinks during + the day. The bar includes a free internet terminal. The Sylter Domizil's + 722 ft² spa features a sauna steam bath and fitness room. The terrace + has wicker beach chairs for relaxing in. + currencyCode: EUR + uriPath: germany/schleswig-holstein/nordfriesland/wenningstedt-braderup-sylt/strandresidenz-sylt properties: - guestRoomList: + languageCode: + description: The language code of the language in which the descriptive + texts for each found property are returned.

Please note that beside + the general restrictions listed below only languages configured during + system setup for your respective tenant are allowed.

See also in the appendix.

+ enum: + - af + - ar + - bg + - ca + - cs + - da + - de + - el + - en + - es + - et + - fi + - fr + - he + - hi + - hr + - hu + - id + - is + - it + - ja + - ko + - lt + - lv + - nl + - "no" + - pl + - pt + - ro + - ru + - sk + - sl + - sr + - sv + - th + - tr + - vi + - zh + type: string + list: + description: A list of available properties matching the given criteria. items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_facilityInfo_guestRoomList_inner' + $ref: '#/components/schemas/Available_Properties_inner_1' + title: Available Properties type: array + required: + - languageCode + - list type: object - _v1_property_get_post_200_response_property_mediaList_inner_tagList_inner: + _properties_get_200_response_list_inner: example: - code: 3 - name: Property building + image: obj_1280x960_54620_001.jpg + lastUpdated: 1652091337389 + address: Nordhedig 20 25980 Sylt Germany + name: Strandresidenz Sylt + published: false + propertyId: strandresidenz-sylt properties: - code: - example: 3 - type: number + published: + description: Whether the property is in published state. + example: false + type: boolean name: - example: Property building + description: The name of the property. + example: Strandresidenz Sylt + type: string + propertyId: + description: The unique identifier for the property. + example: strandresidenz-sylt + type: string + image: + description: The file name of the image for the property. + example: obj_1280x960_54620_001.jpg type: string + address: + description: The address of the property. + example: Nordhedig 20 25980 Sylt Germany + type: string + lastUpdated: + description: The timestamp of the last update to the property (Unix in ms). + example: 1652091337389 + type: number + required: + - address + - image + - lastUpdated + - name + - propertyId + - published type: object - _v1_property_get_post_200_response_property_mediaList_inner: + _properties_get_200_response: example: - tagList: - - code: 3 - name: Property building - - code: 3 - name: Property building - roomAmenityList: - - roomAmenityList - - roomAmenityList - isMainImage: true - detectionLabelList: - - roof - - roof - sortOrder: 1000 - moderationLabelList: - - moderationLabelList - - moderationLabelList - propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: obj_1280x960_54620_001.jpg + pageToken: eyJ0ZW5hbnRDb2RlIjoiZG1vLWRlbW8iLCJuYW1lIjoiTGFuZGhhdXMgVHJlc2tlcnNhbmQiLCJwcm9wZXJ0eUlkIjoibGFuZGhhdXMtdHJlc2tlcnNhbmQifQ== + list: + - image: obj_1280x960_54620_001.jpg + lastUpdated: 1652091337389 + address: Nordhedig 20 25980 Sylt Germany + name: Strandresidenz Sylt + published: false + propertyId: strandresidenz-sylt + - image: obj_1280x960_54620_001.jpg + lastUpdated: 1652091337389 + address: Nordhedig 20 25980 Sylt Germany + name: Strandresidenz Sylt + published: false + propertyId: strandresidenz-sylt properties: - isMainImage: - type: boolean - sortOrder: - example: 1000 - type: number - url: - example: obj_1280x960_54620_001.jpg - type: string - tagList: - items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_mediaList_inner_tagList_inner' - type: array - moderationLabelList: - items: - type: string - type: array - detectionLabelList: - items: - example: roof - type: string - type: array - propertyAmenityList: - items: - type: string - type: array - roomAmenityList: + list: items: - type: string + $ref: '#/components/schemas/_properties_get_200_response_list_inner' type: array + pageToken: + description: "The page token to pass in the subsequent call to retrieve\ + \ more results, only returned if more results are available." + example: eyJ0ZW5hbnRDb2RlIjoiZG1vLWRlbW8iLCJuYW1lIjoiTGFuZGhhdXMgVHJlc2tlcnNhbmQiLCJwcm9wZXJ0eUlkIjoibGFuZGhhdXMtdHJlc2tlcnNhbmQifQ== + type: string + required: + - list type: object - _v1_property_get_post_200_response_property_geo_de_location: + _properties__propertyId__get_200_response_property_recordCreated: + description: Information regarding the creation of the property object. example: - lng: 8.304857 - lat: 54.9157118 + role: admin + time: 1652091332815 + user: microsoft:user:2f1d8a1b-bae8-4333-8f0f-7ad28af03e3f + tenant: dmo-demo properties: - lat: - example: 54.9157118 - type: number - lng: - example: 8.304857 + user: + description: The user that performed the edit action on the property. + example: microsoft:user:2f1d8a1b-bae8-4333-8f0f-7ad28af03e3f + type: string + tenant: + description: The tenant for which the user performed the edit action on + the property. + example: dmo-demo + type: string + role: + description: The role of the user that performed the edit action on the + property. + example: admin + type: string + time: + description: The timestamp at which the edit action was performed. + example: 1652091332815 type: number + required: + - tenant + - time + - user type: object - _v1_property_get_post_200_response_property_geo_de: + _properties__propertyId__get_200_response_property_recordModified: + description: Information regarding the last modification of the property object. example: - country: Deutschland - formatted_address: Nordhedig 20 25980 Sylt Deutschland - locality: Sylt - sublocality: Westerland - language: de - establishment: Sylt - country_code: DE - sublocality_level_1: Westerland - route: Nordhedig - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 - state_code: SH - postal_code: "25980" - natural_feature: Sylt - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw - properties: - location: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_geo_de_location' - formatted_address: - example: Nordhedig 20 25980 Sylt Deutschland - type: string - place_id: - example: ChIJVaxqTevetEcRyfs8PGHK6mw - type: string - locality: - example: Sylt - type: string - administrative_area_level_3: - example: Nordfriesland - type: string - administrative_area_level_1: - example: Schleswig-Holstein - type: string - state_code: - example: SH - type: string - country: - example: Deutschland - type: string - country_code: - example: DE - type: string - postal_code: - example: "25980" - type: string - language: - example: de - type: string - natural_feature: - example: Sylt + role: admin + time: 1652091332815 + user: microsoft:user:2f1d8a1b-bae8-4333-8f0f-7ad28af03e3f + tenant: dmo-demo + properties: + user: + description: The user that performed the edit action on the property. + example: microsoft:user:2f1d8a1b-bae8-4333-8f0f-7ad28af03e3f type: string - establishment: - example: Sylt + tenant: + description: The tenant for which the user performed the edit action on + the property. + example: dmo-demo type: string - sublocality: - example: Westerland + role: + description: The role of the user that performed the edit action on the + property. + example: admin type: string - sublocality_level_1: - example: Westerland + time: + description: The timestamp at which the edit action was performed. + example: 1652091332815 + type: number + required: + - tenant + - time + - user + type: object + _properties__propertyId__get_200_response_property_propertyInfo_messageList_inner: + properties: + languageCode: + description: The language of this message.

Please note that beside the + general restrictions listed below only languages configured during system + setup for your respective tenant are allowed.

See also in + the appendix.

+ enum: + - af + - ar + - bg + - ca + - cs + - da + - de + - el + - en + - es + - et + - fi + - fr + - he + - hi + - hr + - hu + - id + - is + - it + - ja + - ko + - lt + - lv + - nl + - "no" + - pl + - pt + - ro + - ru + - sk + - sl + - sr + - sv + - th + - tr + - vi + - zh + example: en type: string - street_number: - example: "20" + text: + description: The text of this message. + example: "More sea does not work! In a unique location just behind the dunes,\ + \ less than 100 steps from the beach and the spa promenade, in a prime\ + \ location on the beach “Nordhedig”, you can enjoy your stay in a small,\ + \ new 5-star luxury complex (DTV classification) with a total of 4 separate\ + \ apartments for 2-4 people. The interior has a modern rural style that\ + \ offers all the amenities. You can find films about the property and\ + \ individual apartments on our website." + type: string + required: + - languageCode + - text + type: object + _properties__propertyId__get_200_response_property_propertyInfo_acceptedPaymentList_inner: + example: + code: eccard + type: debitcard + properties: + code: + description: The code of the payment option. + enum: + - amex + - visa + - mastercard + - diners + - jcb + - maestro + - discover + - bancontact + - cashonly + - bankcard + - cartasi + - argencard + - cabal + - redcompra + - other + - greatwall + - dragonpay + - eftpos + - hipercard + - unionpaydebit + - eccard + - bccard + - mastercardvirtual + - mastercardgoogle + - unionpaycredit + example: eccard type: string - route: - example: Nordhedig + type: + description: The type of the payment option. + enum: + - creditcard + - debitcard + - paymentservice + - cash + example: debitcard type: string + required: + - code + - type type: object - _v1_property_get_post_200_response_property_geo_en: + _properties__propertyId__get_200_response_property_propertyInfo: + description: General information regarding the property. example: - country: Germany - formatted_address: Nordhedig 20 25980 Sylt Germany - locality: Sylt - sublocality: Westerland - language: en - establishment: Sylt - country_code: DE - sublocality_level_1: Westerland - route: Nordhedig - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "20" + messageList: + - languageCode: en + text: "More sea does not work! In a unique location just behind the dunes,\ + \ less than 100 steps from the beach and the spa promenade, in a prime\ + \ location on the beach “Nordhedig”, you can enjoy your stay in a small,\ + \ new 5-star luxury complex (DTV classification) with a total of 4 separate\ + \ apartments for 2-4 people. The interior has a modern rural style that\ + \ offers all the amenities. You can find films about the property and\ + \ individual apartments on our website. " + - languageCode: da + text: "Mere hav virker ikke! I en unik beliggenhed lige bag klitterne, mindre\ + \ end 100 skridt fra stranden og spa-promenaden, i en førsteklasses beliggenhed\ + \ på stranden „Nordhedig“, kan du nyde dit ophold i et lille, nyt 5-stjernet\ + \ luksuskompleks (DTV klassifikation) med i alt 4 separate lejligheder\ + \ til 2-4 personer. Interiøret har en moderne landlig stil, der tilbyder\ + \ alle bekvemmeligheder. Du kan finde film om ejendommen og individuelle\ + \ lejligheder på vores hjemmeside. " + - languageCode: nl + text: "Meer zee werkt niet! Op een unieke locatie net achter de duinen,\ + \ op minder dan 100 stappen van het strand en de spa-promenade, op een\ + \ toplocatie aan het strand „Nordhedig”, kunt u genieten van uw verblijf\ + \ in een klein, nieuw 5-sterren luxe complex (DTV classificatie) met in\ + \ totaal 4 aparte appartementen voor 2-4 personen. Het interieur heeft\ + \ een moderne landelijke stijl die alle voorzieningen biedt. U kunt films\ + \ over het pand en de individuele appartementen vinden op onze website. " + - languageCode: de + text: "Mehr Meer geht nicht! In einer einzigartigen Lage direkt hinter den\ + \ Dünen, weniger als 100 Schritte vom Strand und der Kurpromenade entfernt,\ + \ in bester Lage am Strand „Nordhedig“, können Sie Ihren Aufenthalt in\ + \ einem kleinen, neuen 5-Sterne-Luxuskomplex (DTV-Klassifizierung) mit\ + \ insgesamt 4 separaten Apartments für 2-4 Personen genießen. Das Interieur\ + \ hat einen modernen ländlichen Stil, der alle Annehmlichkeiten bietet.\ + \ Filme über das Anwesen und einzelne Apartments finden Sie auf unserer\ + \ Website. " + unitCount: 4 + categoryList: + - 1 + - 14 + - 42 location: lng: 8.304857 lat: 54.9157118 - state_code: SH - postal_code: "25980" - natural_feature: Sylt - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + languageList: + - de + - en-gb + acceptedPaymentList: + - code: eccard + type: debitcard + - code: eccard + type: debitcard properties: + unitCount: + description: The amount of units the property has. + example: 4 + type: number + messageList: + description: Contains a descriptive message for this property in all supported + languages. + example: + - languageCode: en + text: "More sea does not work! In a unique location just behind the dunes,\ + \ less than 100 steps from the beach and the spa promenade, in a prime\ + \ location on the beach “Nordhedig”, you can enjoy your stay in a small,\ + \ new 5-star luxury complex (DTV classification) with a total of 4 separate\ + \ apartments for 2-4 people. The interior has a modern rural style that\ + \ offers all the amenities. You can find films about the property and\ + \ individual apartments on our website. " + - languageCode: da + text: "Mere hav virker ikke! I en unik beliggenhed lige bag klitterne,\ + \ mindre end 100 skridt fra stranden og spa-promenaden, i en førsteklasses\ + \ beliggenhed på stranden „Nordhedig“, kan du nyde dit ophold i et lille,\ + \ nyt 5-stjernet luksuskompleks (DTV klassifikation) med i alt 4 separate\ + \ lejligheder til 2-4 personer. Interiøret har en moderne landlig stil,\ + \ der tilbyder alle bekvemmeligheder. Du kan finde film om ejendommen\ + \ og individuelle lejligheder på vores hjemmeside. " + - languageCode: nl + text: "Meer zee werkt niet! Op een unieke locatie net achter de duinen,\ + \ op minder dan 100 stappen van het strand en de spa-promenade, op een\ + \ toplocatie aan het strand „Nordhedig”, kunt u genieten van uw verblijf\ + \ in een klein, nieuw 5-sterren luxe complex (DTV classificatie) met\ + \ in totaal 4 aparte appartementen voor 2-4 personen. Het interieur\ + \ heeft een moderne landelijke stijl die alle voorzieningen biedt. U\ + \ kunt films over het pand en de individuele appartementen vinden op\ + \ onze website. " + - languageCode: de + text: "Mehr Meer geht nicht! In einer einzigartigen Lage direkt hinter\ + \ den Dünen, weniger als 100 Schritte vom Strand und der Kurpromenade\ + \ entfernt, in bester Lage am Strand „Nordhedig“, können Sie Ihren Aufenthalt\ + \ in einem kleinen, neuen 5-Sterne-Luxuskomplex (DTV-Klassifizierung)\ + \ mit insgesamt 4 separaten Apartments für 2-4 Personen genießen. Das\ + \ Interieur hat einen modernen ländlichen Stil, der alle Annehmlichkeiten\ + \ bietet. Filme über das Anwesen und einzelne Apartments finden Sie\ + \ auf unserer Website. " + items: + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_propertyInfo_messageList_inner' + type: array + categoryList: + description: A list of code of the property class types that apply to the + property. + example: + - 1 + - 14 + - 42 + items: + description: A property class type code.

See also in + the appendix.

+ enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 35 + - 36 + - 37 + - 38 + - 39 + - 40 + - 41 + - 42 + - 43 + - 44 + - 45 + - 46 + - 47 + - 48 + - 49 + - 50 + - 51 + - 52 + - 53 + - 54 + - 55 + - 56 + - 57 + - 58 + - 59 + - 60 + - 61 + - 62 + - 5000 + - 5001 + - 5002 + - 5003 + - 5004 + - 5005 + - 5006 + - 5007 + - 5008 + - 5009 + type: number + type: array + languageList: + description: The codes of languages the staff of this property can speak. + Please note that these codes partially differ from the two character ISO + language codes widely used throughout the API as they partially include + country specific language code.

See also in + the appendix.

+ example: + - de + - en-gb + items: + enum: + - af + - ar + - az + - be + - bg + - ca + - cs + - da + - de + - el + - en + - en-gb + - en-us + - es + - es-ar + - et + - fr + - fi + - he + - hi + - hr + - hu + - id + - is + - it + - ja + - km + - ko + - lo + - lt + - lv + - ms + - nl + - "no" + - pl + - pt + - pt-br + - pt-pt + - ro + - ru + - sk + - sl + - sr + - sv + - tl + - th + - tr + - uk + - vi + - xa + - xb + - xs + - xt + - xu + - zh + - zh-cn + - zh-tw + type: string + type: array location: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_geo_de_location' - formatted_address: - example: Nordhedig 20 25980 Sylt Germany - type: string - place_id: - example: ChIJVaxqTevetEcRyfs8PGHK6mw - type: string - locality: - example: Sylt - type: string - administrative_area_level_3: - example: Nordfriesland - type: string - administrative_area_level_1: - example: Schleswig-Holstein - type: string - state_code: - example: SH - type: string - country: - example: Germany - type: string - country_code: - example: DE - type: string - postal_code: - example: "25980" - type: string - language: - example: en - type: string - natural_feature: - example: Sylt - type: string - establishment: - example: Sylt - type: string - sublocality: - example: Westerland - type: string - sublocality_level_1: - example: Westerland - type: string - street_number: - example: "20" - type: string - route: - example: Nordhedig + $ref: '#/components/schemas/Available_Properties_inner_1_geo_location' + acceptedPaymentList: + description: "A list of the accepted payment methods. Payment methods might\ + \ subject to frequent change as payment providers come and go. You should\ + \ always implement a way to handle new, unexpected payment methods.

See\ + \ also in the appendix.

" + items: + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_propertyInfo_acceptedPaymentList_inner' + type: array + required: + - acceptedPaymentList + - categoryList + - languageList + - messageList + type: object + _properties__propertyId__get_200_response_property_guestInfo: + description: Information regarding requirements towards guests. + example: + guestNameListRequired: true + guestContactNumberRequired: true + guestAddressRequired: true + properties: + guestAddressRequired: + description: Whether the address of the guest is required to book this property. + example: true + type: boolean + guestContactNumberRequired: + description: Whether the phone number of the guest is required to book this + property. + example: true + type: boolean + guestNameListRequired: + description: Whether a list of the guests names is required to book this + property. + example: true + type: boolean + required: + - guestAddressRequired + - guestContactNumberRequired + - guestNameListRequired + type: object + _properties__propertyId__get_200_response_property_awardList_inner: + example: + provider: star-rating + rating: 5 + properties: + provider: + description: The source of this rating. Currently only star-rating + is possible. + enum: + - star-rating + example: star-rating type: string + rating: + description: The value of this rating + example: 5 + type: number + required: + - provider + - rating type: object - _v1_property_get_post_200_response_property_geo_da: + _properties__propertyId__get_200_response_property_contactList_inner_addressList_inner: example: - country: Tyskland - formatted_address: Nordhedig 20 25980 Sylt Tyskland - locality: Sylt - sublocality: Westerland - language: da - establishment: Sild - country_code: DE - sublocality_level_1: Westerland - route: Nordhedig - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 - state_code: SH - postal_code: "25980" - natural_feature: Sild - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + cityName: Sylt + propertyName: Strandresidenz Sylt + countryCode: DE + postalCode: "25980" + state: SH + addressLine: Nordhedig 20 properties: - location: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_geo_de_location' - formatted_address: - example: Nordhedig 20 25980 Sylt Tyskland + addressLine: + description: The first line of the address for this contact + example: Nordhedig 20 type: string - place_id: - example: ChIJVaxqTevetEcRyfs8PGHK6mw + propertyName: + description: The name of the property for this contact + example: Strandresidenz Sylt type: string - locality: + cityName: + description: The city of this contact example: Sylt type: string - administrative_area_level_3: - example: Nordfriesland - type: string - administrative_area_level_1: - example: Schleswig-Holstein + postalCode: + description: The postal code of this contact + example: "25980" type: string - state_code: + state: + description: The state/region of this contact example: SH type: string - country: - example: Tyskland - type: string - country_code: + countryCode: + description: The country code of this contact example: DE type: string - postal_code: - example: "25980" - type: string - language: - example: da - type: string - natural_feature: - example: Sild - type: string - establishment: - example: Sild - type: string - sublocality: - example: Westerland - type: string - sublocality_level_1: - example: Westerland - type: string - street_number: - example: "20" - type: string - route: - example: Nordhedig + required: + - addressLine + - cityName + - postalCode + type: object + _properties__propertyId__get_200_response_property_contactList_inner: + example: + profileType: physicallocation + addressList: + - cityName: Sylt + propertyName: Strandresidenz Sylt + countryCode: DE + postalCode: "25980" + state: SH + addressLine: Nordhedig 20 + - cityName: Sylt + propertyName: Strandresidenz Sylt + countryCode: DE + postalCode: "25980" + state: SH + addressLine: Nordhedig 20 + properties: + profileType: + description: The type of profile this contact belongs to. + enum: + - general + - contract + - reservations + - invoices + - availability + - site_content + - parity + - requests + - central_reservations + - physicallocation + example: physicallocation type: string + addressList: + description: A list of addresses for this contact + items: + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_contactList_inner_addressList_inner' + type: array + required: + - addressList + - profileType type: object - _v1_property_get_post_200_response_property_geo_nl: + _properties__propertyId__get_200_response_property_facilityInfo_guestRoomList_inner_mediaList_inner: example: - country: Duitsland - formatted_address: Nordhedig 20 25980 Sylt Duitsland - locality: Sylt - sublocality: Westerland - language: nl - establishment: Sylt - country_code: DE - sublocality_level_1: Westerland - route: Nordhedig - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 - state_code: SH - postal_code: "25980" - natural_feature: Sylt - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw - properties: - location: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_geo_de_location' - formatted_address: - example: Nordhedig 20 25980 Sylt Duitsland - type: string - place_id: - example: ChIJVaxqTevetEcRyfs8PGHK6mw - type: string - locality: - example: Sylt - type: string - administrative_area_level_3: - example: Nordfriesland - type: string - administrative_area_level_1: - example: Schleswig-Holstein - type: string - state_code: - example: SH - type: string - country: - example: Duitsland - type: string - country_code: - example: DE - type: string - postal_code: - example: "25980" - type: string - language: - example: nl - type: string - natural_feature: - example: Sylt - type: string - establishment: - example: Sylt - type: string - sublocality: - example: Westerland - type: string - sublocality_level_1: - example: Westerland - type: string - street_number: - example: "20" - type: string - route: - example: Nordhedig - type: string - type: object - _v1_property_get_post_200_response_property_geo: - example: - de: - country: Deutschland - formatted_address: Nordhedig 20 25980 Sylt Deutschland - locality: Sylt - sublocality: Westerland - language: de - establishment: Sylt - country_code: DE - sublocality_level_1: Westerland - route: Nordhedig - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 - state_code: SH - postal_code: "25980" - natural_feature: Sylt - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw - en: - country: Germany - formatted_address: Nordhedig 20 25980 Sylt Germany - locality: Sylt - sublocality: Westerland - language: en - establishment: Sylt - country_code: DE - sublocality_level_1: Westerland - route: Nordhedig - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 - state_code: SH - postal_code: "25980" - natural_feature: Sylt - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw - da: - country: Tyskland - formatted_address: Nordhedig 20 25980 Sylt Tyskland - locality: Sylt - sublocality: Westerland - language: da - establishment: Sild - country_code: DE - sublocality_level_1: Westerland - route: Nordhedig - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 - state_code: SH - postal_code: "25980" - natural_feature: Sild - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw - nl: - country: Duitsland - formatted_address: Nordhedig 20 25980 Sylt Duitsland - locality: Sylt - sublocality: Westerland - language: nl - establishment: Sylt - country_code: DE - sublocality_level_1: Westerland - route: Nordhedig - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 - state_code: SH - postal_code: "25980" - natural_feature: Sylt - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw - properties: - de: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_geo_de' - en: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_geo_en' - da: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_geo_da' - nl: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_geo_nl' - type: object - _v1_property_get_post_200_response_property_policyList_inner_petsPolicy: - example: - byArrangement: true - allowed: true - freeOfCharge: true + tagList: + - 3 + - 55 + roomAmenityList: + - 0.8008281904610115 + - 0.8008281904610115 + isMainImage: true + detectionLabelList: + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 + moderationLabelList: + - partial_nudity + - tobacco + propertyAmenityList: + - 1 + - 2 + url: 5e3d9d49e9480.jpg properties: - allowed: - type: boolean - byArrangement: - type: boolean - freeOfCharge: + isMainImage: + description: Whether the media is the main image for the property. + example: true type: boolean - type: object - _v1_property_get_post_200_response_property_policyList_inner_taxPolicyList_inner: - example: - conditionList: - - conditionList - - conditionList - chargeType: included - percent: 19 - currencyCode: EUR - typeCode: 36 - chargeFrequencyCode: 12 - properties: - typeCode: - example: 36 - type: number - percent: - example: 19 - type: number - chargeType: - example: included + url: + description: The URL for the media. + example: 5e3d9d49e9480.jpg type: string - chargeFrequencyCode: - example: 12 + sortOrder: + description: The sort order for the media. + example: 1000 type: number - currencyCode: - example: EUR - type: string - conditionList: + tagList: + description: A list of tag codes for the media.

See also in + the appendix.

+ example: + - 3 + - 55 + items: + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 10 + - 11 + - 13 + - 14 + - 37 + - 41 + - 42 + - 43 + - 50 + - 55 + - 61 + - 70 + - 74 + - 81 + - 82 + - 87 + - 89 + - 90 + - 94 + - 95 + - 96 + - 97 + - 100 + - 102 + - 103 + - 104 + - 106 + - 107 + - 108 + - 112 + - 113 + - 114 + - 115 + - 116 + - 124 + - 125 + - 128 + - 131 + - 133 + - 134 + - 137 + - 141 + - 143 + - 153 + - 154 + - 155 + - 156 + - 157 + - 158 + - 159 + - 160 + - 161 + - 164 + - 165 + - 167 + - 172 + - 173 + - 177 + - 178 + - 179 + - 182 + - 183 + - 184 + - 185 + - 186 + - 187 + - 188 + - 189 + - 190 + - 191 + - 192 + - 193 + - 194 + - 197 + - 198 + - 199 + - 204 + - 205 + - 240 + - 241 + - 242 + - 245 + - 246 + - 247 + - 248 + - 249 + - 250 + - 251 + - 252 + - 253 + - 254 + - 255 + - 256 + - 257 + - 258 + - 259 + - 260 + - 261 + - 262 + - 263 + - 264 + - 265 + - 266 + - 267 + - 268 + - 269 + - 270 + - 271 + - 272 + - 273 + - 276 + - 277 + - 278 + - 279 + - 280 + - 281 + - 282 + - 283 + - 284 + - 285 + - 286 + - 287 + - 289 + - 290 + - 291 + type: number + type: array + moderationLabelList: + description: A list of detection labels for moderated content (e.g. containing + alcoholic beverages) for the media from an AI based detection engine. + example: + - partial_nudity + - tobacco items: type: string type: array - type: object - _v1_property_get_post_200_response_property_policyList_inner: - example: - cancellationPolicyList: - - cancellationPolicyList - - cancellationPolicyList - checkOutTime: 43200000 - totalGuestCount: 10 - checkInTime: 54000000 - guaranteePolicy: guaranteePolicy - taxPolicyList: - - conditionList: - - conditionList - - conditionList - chargeType: included - percent: 19 - currencyCode: EUR - typeCode: 36 - chargeFrequencyCode: 12 - - conditionList: - - conditionList - - conditionList - chargeType: included - percent: 19 - currencyCode: EUR - typeCode: 36 - chargeFrequencyCode: 12 - prepaymentPolicy: after_reservation_is_made - feePolicyList: - - feePolicyList - - feePolicyList - advanceBookingMin: 34560000 - advanceBookingMax: 0 - petsPolicy: - byArrangement: true - allowed: true - freeOfCharge: true - properties: - checkInTime: - example: 54000000 - type: number - checkOutTime: - example: 43200000 - type: number - totalGuestCount: - example: 10 - type: number - cancellationPolicyList: + detectionLabelList: + description: A list of detection labels for the media from an AI based detection + engine. + example: + - room + - indoors + - kitchen + - interior_design items: type: string type: array - advanceBookingMin: - example: 34560000 - type: number - advanceBookingMax: - example: 0 - type: number - petsPolicy: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_policyList_inner_petsPolicy' - prepaymentPolicy: - example: after_reservation_is_made - type: string - guaranteePolicy: - format: nullable - type: string - taxPolicyList: + propertyAmenityList: + description: A list of property amenities available at the property that + are visible in this media element. + example: + - 1 + - 2 items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_policyList_inner_taxPolicyList_inner' + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 35 + - 36 + - 37 + - 38 + - 39 + - 40 + - 41 + - 42 + - 43 + - 44 + - 45 + - 46 + - 47 + - 48 + - 49 + - 50 + - 51 + - 52 + - 53 + - 54 + - 55 + - 56 + - 57 + - 58 + - 59 + - 60 + - 61 + - 62 + - 63 + - 64 + - 65 + - 66 + - 67 + - 68 + - 69 + - 70 + - 71 + - 72 + - 73 + - 74 + - 75 + - 76 + - 77 + - 78 + - 79 + - 80 + - 81 + - 82 + - 83 + - 84 + - 85 + - 86 + - 87 + - 88 + - 89 + - 90 + - 91 + - 92 + - 93 + - 94 + - 95 + - 96 + - 97 + - 98 + - 99 + - 100 + - 101 + - 102 + - 103 + - 104 + - 105 + - 106 + - 107 + - 108 + - 109 + - 110 + - 111 + - 112 + - 113 + - 114 + - 115 + - 116 + - 117 + - 118 + - 119 + - 120 + - 121 + - 122 + - 123 + - 124 + - 125 + - 126 + - 127 + - 128 + - 129 + - 130 + - 131 + - 132 + - 133 + - 134 + - 135 + - 136 + - 137 + - 138 + - 139 + - 140 + - 141 + - 142 + - 143 + - 144 + - 145 + - 146 + - 147 + - 148 + - 149 + - 150 + - 151 + - 152 + - 153 + - 154 + - 155 + - 156 + - 157 + - 158 + - 159 + - 160 + - 161 + - 162 + - 163 + - 164 + - 165 + - 166 + - 167 + - 168 + - 169 + - 170 + - 171 + - 172 + - 173 + - 174 + - 175 + - 176 + - 177 + - 178 + - 179 + - 180 + - 181 + - 182 + - 183 + - 184 + - 185 + - 186 + - 187 + - 188 + - 189 + - 190 + - 191 + - 192 + - 193 + - 194 + - 195 + - 196 + - 197 + - 198 + - 199 + - 200 + - 201 + - 202 + - 203 + - 204 + - 205 + - 206 + - 207 + - 208 + - 209 + - 210 + - 211 + - 212 + - 213 + - 214 + - 215 + - 216 + - 217 + - 218 + - 219 + - 220 + - 221 + - 222 + - 223 + - 224 + - 225 + - 226 + - 227 + - 228 + - 229 + - 230 + - 231 + - 232 + - 233 + - 234 + - 235 + - 236 + - 237 + - 238 + - 239 + - 240 + - 241 + - 242 + - 243 + - 244 + - 245 + - 246 + - 247 + - 248 + - 249 + - 250 + - 251 + - 252 + - 253 + - 254 + - 255 + - 256 + - 257 + - 258 + - 259 + - 260 + - 261 + - 262 + - 263 + - 264 + - 265 + - 266 + - 267 + - 268 + - 269 + - 270 + - 271 + - 272 + - 273 + - 274 + - 275 + - 276 + - 277 + - 278 + - 279 + - 280 + - 281 + - 282 + - 283 + - 284 + - 285 + - 286 + - 287 + - 288 + - 289 + - 290 + - 291 + - 292 + - 293 + - 294 + - 295 + - 296 + - 297 + - 298 + - 299 + - 300 + - 301 + - 302 + - 303 + - 304 + - 305 + - 306 + - 307 + - 308 + - 309 + - 310 + - 311 + - 312 + - 313 + - 314 + - 315 + - 316 + - 317 + - 318 + - 319 + - 320 + - 321 + - 322 + - 323 + - 324 + - 325 + - 326 + - 327 + - 328 + - 329 + - 331 + - 332 + - 333 + - 334 + - 335 + - 336 + - 337 + - 338 + - 339 + - 340 + - 341 + - 342 + - 343 + - 344 + - 345 + - 348 + - 349 + - 350 + - 351 + - 5000 + - 5001 + - 5002 + - 5003 + - 5004 + - 5005 + - 5006 + - 5007 + - 5008 + - 5009 + - 5010 + - 5011 + - 5012 + - 5013 + - 5014 + - 5015 + - 5016 + - 5017 + - 5018 + - 5020 + - 5021 + - 5022 + - 5023 + - 5024 + - 5025 + - 5026 + - 5027 + - 5028 + - 5029 + - 5030 + - 5031 + - 5032 + - 5033 + - 5034 + - 5035 + - 5036 + - 5037 + - 5039 + - 5040 + - 5041 + - 5042 + - 5043 + - 5044 + - 5045 + - 5046 + - 5047 + - 5048 + - 5049 + - 5050 + - 5051 + - 5052 + - 5053 + - 5054 + - 5055 + - 5056 + - 5057 + - 5058 + - 5059 + - 5060 + - 5061 + - 5062 + - 5063 + - 5064 + - 5065 + - 5066 + - 5067 + - 5068 + - 5069 + - 5070 + - 5071 + - 5072 + - 5073 + - 5074 + - 5075 + - 5076 + - 5077 + - 5078 + - 5079 + - 5080 + - 5081 + - 5082 + - 5083 + - 5084 + - 5085 + - 5086 + - 5087 + - 5088 + - 5089 + - 5090 + - 5091 + - 5092 + - 5093 + - 5094 + - 5095 + - 5096 + - 5097 + - 5098 + - 5099 + - 5100 + - 5101 + - 5102 + - 5103 + - 5104 + - 5105 + - 5106 + - 5107 + - 5108 + - 5109 + - 5110 + - 5111 + - 5112 + - 5113 + - 5114 + - 5115 + - 5116 + - 5117 + - 5118 + - 5119 + - 5120 + - 5121 + - 5122 + - 5123 + - 5124 + - 5125 + - 5126 + - 5127 + - 5128 + - 5129 + - 5130 + - 5131 + - 5132 + - 5133 + - 5134 + - 5135 + - 5136 + - 5137 + - 5138 + - 5139 + - 5140 + - 5141 + - 5142 + - 5143 + - 5144 + - 5145 + - 5146 + - 5147 + - 5148 + - 5149 + - 5150 + - 5151 + - 5152 + - 5153 + - 5154 + - 5156 + - 5157 + - 5158 + - 5159 + - 5160 + - 5161 + - 5162 + - 5163 + - 5164 + - 5165 + - 5166 + - 5167 + - 5168 + - 5169 + - 5170 + - 5171 + - 5172 + - 5173 + - 5174 + - 5175 + - 5176 + - 5177 + - 5178 + - 6000 + - 6001 + - 90001 + type: number type: array - feePolicyList: + roomAmenityList: + description: A list of unit and room amenities available at the property + (respectively unit type if applicable) that are visible in this media + element. items: - type: string + enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 35 + - 36 + - 37 + - 38 + - 39 + - 40 + - 41 + - 42 + - 43 + - 44 + - 45 + - 46 + - 47 + - 48 + - 49 + - 50 + - 51 + - 52 + - 53 + - 54 + - 55 + - 56 + - 57 + - 58 + - 59 + - 60 + - 61 + - 62 + - 63 + - 64 + - 65 + - 66 + - 67 + - 68 + - 69 + - 70 + - 71 + - 72 + - 73 + - 74 + - 75 + - 76 + - 77 + - 78 + - 79 + - 80 + - 81 + - 82 + - 83 + - 84 + - 85 + - 86 + - 87 + - 88 + - 89 + - 90 + - 91 + - 92 + - 93 + - 94 + - 95 + - 96 + - 97 + - 98 + - 99 + - 100 + - 101 + - 102 + - 103 + - 104 + - 105 + - 106 + - 107 + - 108 + - 109 + - 110 + - 111 + - 112 + - 113 + - 114 + - 115 + - 116 + - 117 + - 118 + - 119 + - 120 + - 121 + - 122 + - 123 + - 124 + - 125 + - 126 + - 127 + - 128 + - 129 + - 130 + - 131 + - 132 + - 133 + - 134 + - 135 + - 136 + - 137 + - 138 + - 139 + - 140 + - 141 + - 142 + - 143 + - 144 + - 145 + - 146 + - 147 + - 148 + - 149 + - 150 + - 151 + - 152 + - 153 + - 154 + - 155 + - 156 + - 157 + - 158 + - 159 + - 160 + - 161 + - 162 + - 163 + - 164 + - 165 + - 166 + - 167 + - 168 + - 169 + - 170 + - 171 + - 172 + - 173 + - 174 + - 175 + - 176 + - 177 + - 178 + - 179 + - 180 + - 181 + - 182 + - 183 + - 184 + - 185 + - 186 + - 187 + - 188 + - 189 + - 190 + - 191 + - 192 + - 193 + - 194 + - 195 + - 196 + - 197 + - 198 + - 199 + - 200 + - 201 + - 202 + - 203 + - 204 + - 205 + - 206 + - 207 + - 208 + - 209 + - 210 + - 211 + - 212 + - 213 + - 214 + - 215 + - 216 + - 217 + - 218 + - 219 + - 220 + - 221 + - 222 + - 223 + - 224 + - 225 + - 226 + - 227 + - 228 + - 229 + - 230 + - 231 + - 232 + - 233 + - 234 + - 235 + - 236 + - 237 + - 238 + - 239 + - 240 + - 241 + - 242 + - 243 + - 244 + - 245 + - 246 + - 247 + - 248 + - 249 + - 250 + - 251 + - 252 + - 253 + - 254 + - 255 + - 256 + - 257 + - 258 + - 259 + - 260 + - 261 + - 262 + - 263 + - 264 + - 265 + - 266 + - 267 + - 268 + - 269 + - 270 + - 271 + - 272 + - 273 + - 274 + - 275 + - 276 + - 277 + - 278 + - 279 + - 280 + - 281 + - 282 + - 283 + - 5001 + - 5002 + - 5003 + - 5004 + - 5005 + - 5006 + - 5007 + - 5008 + - 5009 + - 5010 + - 5011 + - 5012 + - 5013 + - 5014 + - 5015 + - 5016 + - 5017 + - 5018 + - 5019 + - 5020 + - 5021 + - 5022 + - 5023 + - 5024 + - 5025 + - 5026 + - 5027 + - 5028 + - 5029 + - 5030 + - 5031 + - 5032 + - 5033 + - 5034 + - 5035 + - 5036 + - 5037 + - 5038 + - 5039 + - 5040 + - 5041 + - 5042 + - 5043 + - 5044 + - 5045 + - 5046 + - 5068 + - 5069 + - 5070 + - 5071 + - 5072 + - 5073 + - 5074 + - 5075 + - 5076 + - 5077 + - 5079 + - 5080 + - 5081 + - 5082 + - 5083 + - 5084 + - 5085 + - 5086 + - 5087 + - 5088 + - 5089 + - 5090 + - 5091 + - 5092 + - 5093 + - 5094 + - 5095 + - 5096 + - 5097 + - 5098 + - 5099 + - 5100 + - 5101 + - 5102 + - 5103 + - 5104 + - 5105 + - 5106 + - 5107 + - 5108 + - 5109 + - 5110 + - 5111 + - 5112 + - 5113 + - 5114 + - 5115 + - 5116 + - 5117 + - 5118 + - 5119 + - 5120 + - 5121 + - 5122 + - 5123 + - 5124 + - 5125 + - 5126 + - 5127 + - 5129 + - 5130 + - 5131 + - 5132 + - 5133 + - 5134 + - 5135 + - 5136 + - 5137 + - 5138 + - 5139 + - 5140 + - 5141 + - 5142 + - 5143 + - 5144 + - 5145 + - 5146 + - 5147 + - 5148 + - 5149 + - 5150 + - 5151 + - 5152 + - 5153 + - 5154 + - 5157 + - 5158 + - 5159 + - 5160 + - 5161 + - 5162 + - 5163 + - 5164 + - 5165 + - 5166 + - 5167 + - 5168 + - 5169 + - 5170 + - 5171 + - 5172 + - 5173 + - 5174 + - 5175 + - 5176 + - 5177 + - 5178 + - 5179 + - 5180 + - 5181 + - 5182 + - 5184 + - 5185 + - 5186 + - 5187 + - 5188 + - 5189 + - 5190 + - 5191 + - 5196 + - 5198 + - 5199 + - 5200 + - 5201 + - 5202 + - 5203 + - 5204 + - 5205 + - 5206 + - 5207 + - 5211 + - 5212 + - 90001 + - 90002 + - 90003 + - 90004 + - 90005 + - 90006 + - 90007 + - 90008 + - 90009 + - 90010 + - 90011 + type: number type: array + required: + - isMainImage + - moderationLabelList + - propertyAmenityList + - sortOrder + - tagList + - url type: object - _v1_property_get_post_200_response_property_transaction_externalList_inner: - example: - text: https://www.booking.com/ - languageCode: de + _properties__propertyId__get_200_response_property_facilityInfo_guestRoomList_inner_amenityList_inner: + properties: + code: + description: The code indicating the room amenity type.

See also in + the appendix.

+ enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 35 + - 36 + - 37 + - 38 + - 39 + - 40 + - 41 + - 42 + - 43 + - 44 + - 45 + - 46 + - 47 + - 48 + - 49 + - 50 + - 51 + - 52 + - 53 + - 54 + - 55 + - 56 + - 57 + - 58 + - 59 + - 60 + - 61 + - 62 + - 63 + - 64 + - 65 + - 66 + - 67 + - 68 + - 69 + - 70 + - 71 + - 72 + - 73 + - 74 + - 75 + - 76 + - 77 + - 78 + - 79 + - 80 + - 81 + - 82 + - 83 + - 84 + - 85 + - 86 + - 87 + - 88 + - 89 + - 90 + - 91 + - 92 + - 93 + - 94 + - 95 + - 96 + - 97 + - 98 + - 99 + - 100 + - 101 + - 102 + - 103 + - 104 + - 105 + - 106 + - 107 + - 108 + - 109 + - 110 + - 111 + - 112 + - 113 + - 114 + - 115 + - 116 + - 117 + - 118 + - 119 + - 120 + - 121 + - 122 + - 123 + - 124 + - 125 + - 126 + - 127 + - 128 + - 129 + - 130 + - 131 + - 132 + - 133 + - 134 + - 135 + - 136 + - 137 + - 138 + - 139 + - 140 + - 141 + - 142 + - 143 + - 144 + - 145 + - 146 + - 147 + - 148 + - 149 + - 150 + - 151 + - 152 + - 153 + - 154 + - 155 + - 156 + - 157 + - 158 + - 159 + - 160 + - 161 + - 162 + - 163 + - 164 + - 165 + - 166 + - 167 + - 168 + - 169 + - 170 + - 171 + - 172 + - 173 + - 174 + - 175 + - 176 + - 177 + - 178 + - 179 + - 180 + - 181 + - 182 + - 183 + - 184 + - 185 + - 186 + - 187 + - 188 + - 189 + - 190 + - 191 + - 192 + - 193 + - 194 + - 195 + - 196 + - 197 + - 198 + - 199 + - 200 + - 201 + - 202 + - 203 + - 204 + - 205 + - 206 + - 207 + - 208 + - 209 + - 210 + - 211 + - 212 + - 213 + - 214 + - 215 + - 216 + - 217 + - 218 + - 219 + - 220 + - 221 + - 222 + - 223 + - 224 + - 225 + - 226 + - 227 + - 228 + - 229 + - 230 + - 231 + - 232 + - 233 + - 234 + - 235 + - 236 + - 237 + - 238 + - 239 + - 240 + - 241 + - 242 + - 243 + - 244 + - 245 + - 246 + - 247 + - 248 + - 249 + - 250 + - 251 + - 252 + - 253 + - 254 + - 255 + - 256 + - 257 + - 258 + - 259 + - 260 + - 261 + - 262 + - 263 + - 264 + - 265 + - 266 + - 267 + - 268 + - 269 + - 270 + - 271 + - 272 + - 273 + - 274 + - 275 + - 276 + - 277 + - 278 + - 279 + - 280 + - 281 + - 282 + - 283 + - 5001 + - 5002 + - 5003 + - 5004 + - 5005 + - 5006 + - 5007 + - 5008 + - 5009 + - 5010 + - 5011 + - 5012 + - 5013 + - 5014 + - 5015 + - 5016 + - 5017 + - 5018 + - 5019 + - 5020 + - 5021 + - 5022 + - 5023 + - 5024 + - 5025 + - 5026 + - 5027 + - 5028 + - 5029 + - 5030 + - 5031 + - 5032 + - 5033 + - 5034 + - 5035 + - 5036 + - 5037 + - 5038 + - 5039 + - 5040 + - 5041 + - 5042 + - 5043 + - 5044 + - 5045 + - 5046 + - 5068 + - 5069 + - 5070 + - 5071 + - 5072 + - 5073 + - 5074 + - 5075 + - 5076 + - 5077 + - 5079 + - 5080 + - 5081 + - 5082 + - 5083 + - 5084 + - 5085 + - 5086 + - 5087 + - 5088 + - 5089 + - 5090 + - 5091 + - 5092 + - 5093 + - 5094 + - 5095 + - 5096 + - 5097 + - 5098 + - 5099 + - 5100 + - 5101 + - 5102 + - 5103 + - 5104 + - 5105 + - 5106 + - 5107 + - 5108 + - 5109 + - 5110 + - 5111 + - 5112 + - 5113 + - 5114 + - 5115 + - 5116 + - 5117 + - 5118 + - 5119 + - 5120 + - 5121 + - 5122 + - 5123 + - 5124 + - 5125 + - 5126 + - 5127 + - 5129 + - 5130 + - 5131 + - 5132 + - 5133 + - 5134 + - 5135 + - 5136 + - 5137 + - 5138 + - 5139 + - 5140 + - 5141 + - 5142 + - 5143 + - 5144 + - 5145 + - 5146 + - 5147 + - 5148 + - 5149 + - 5150 + - 5151 + - 5152 + - 5153 + - 5154 + - 5157 + - 5158 + - 5159 + - 5160 + - 5161 + - 5162 + - 5163 + - 5164 + - 5165 + - 5166 + - 5167 + - 5168 + - 5169 + - 5170 + - 5171 + - 5172 + - 5173 + - 5174 + - 5175 + - 5176 + - 5177 + - 5178 + - 5179 + - 5180 + - 5181 + - 5182 + - 5184 + - 5185 + - 5186 + - 5187 + - 5188 + - 5189 + - 5190 + - 5191 + - 5196 + - 5198 + - 5199 + - 5200 + - 5201 + - 5202 + - 5203 + - 5204 + - 5205 + - 5206 + - 5207 + - 5211 + - 5212 + - 90001 + - 90002 + - 90003 + - 90004 + - 90005 + - 90006 + - 90007 + - 90008 + - 90009 + - 90010 + - 90011 + type: number + quantity: + description: The quantity of this amenity type in this room. + example: 1 + type: number + required: + - code + - quantity + type: object + _properties__propertyId__get_200_response_property_facilityInfo_guestRoomList_inner_messageList_inner: properties: languageCode: - example: de + description: The language code of the message.

Please note that beside + the general restrictions listed below only languages configured during + system setup for your respective tenant are allowed.

See also in the appendix.

+ enum: + - af + - ar + - bg + - ca + - cs + - da + - de + - el + - en + - es + - et + - fi + - fr + - he + - hi + - hr + - hu + - id + - is + - it + - ja + - ko + - lt + - lv + - nl + - "no" + - pl + - pt + - ro + - ru + - sk + - sl + - sr + - sv + - th + - tr + - vi + - zh type: string text: - example: https://www.booking.com/ + description: The message text. type: string + required: + - languageCode + - text type: object - _v1_property_get_post_200_response_property_transaction: + _properties__propertyId__get_200_response_property_facilityInfo_guestRoomList_inner: + description: An object representing a room in the property. example: - method: MANDATORY_BOOKING - externalList: - - text: https://www.booking.com/ - languageCode: de - - text: https://www.booking.com/ - languageCode: de - contactTypeList: - - reservations - - reservations + roomTypeCode: 1 + mediaList: + - tagList: + - 3 + - 55 + roomAmenityList: + - 0.8008281904610115 + - 0.8008281904610115 + isMainImage: true + detectionLabelList: + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 + moderationLabelList: + - partial_nudity + - tobacco + propertyAmenityList: + - 1 + - 2 + url: 5e3d9d49e9480.jpg + - tagList: + - 3 + - 55 + roomAmenityList: + - 0.8008281904610115 + - 0.8008281904610115 + isMainImage: true + detectionLabelList: + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 + moderationLabelList: + - partial_nudity + - tobacco + propertyAmenityList: + - 1 + - 2 + url: 5e3d9d49e9480.jpg + isNonSmoking: false + messageList: + - languageCode: en + text: "Maisonette apartment up/attic Living room: including a spacious leather\ + \ seat, spacious dining table with chairs for 4 people, large cable flat\ + \ screen TV, DVD/BluRay player, music system with CD and docking station,\ + \ free Wi-Fi and telephone flat rate (German landline). Kitchen: branded\ + \ fitted kitchen with dishwasher, cooker with ceramic hob, Oven, microwave,\ + \ fridge/freezer, Nespresso coffee machine.Bedrooms: One double bedroom\ + \ including Treca box spring beds with fitted wardrobes with ample storage\ + \ space and with cable flat screen TV and safe.Bathroom: including spa\ + \ shower, bathtub, washbasin, underfloor heating, towel warmer, radio,\ + \ hairdryer, Cosmetic mirror, window.Balcony (south facing position):\ + \ with seating group.Other: Washer dryer, ironing station, private parking\ + \ in front of the house, bicycle storage with charging connection for\ + \ pedelecs... and fantastic location, right at the beach crossing!Maisonette\ + \ apartment up/attic living room: including spacious leather seating,\ + \ spacious dining table with chairs for 4 people, large cable flat screen\ + \ TV, DVD/Blueray player, music system with CD and docking station, free\ + \ Wi-Fi and telephone flat rate (German landline) .Kitchen: branded fitted\ + \ kitchen with dishwasher, cooker with ceramic hob, among others, oven,\ + \ microwave, fridge/freezer, Nespresso coffee machine.Bedrooms: One double\ + \ bedroom including Treca box spring beds with fitted wardrobes with ample\ + \ storage space and with cable flat screen TV and safe.Bathroom: including\ + \ spa shower, bathtub, washbasin, underfloor heating, towel warmer, radio,\ + \ hairdryer, Vanity mirror, window.Balcony (south facing position): with\ + \ seating group.Other: washer-dryer, ironing station, private parking\ + \ in front of the house, bicycle storage with charging connection for\ + \ pedelecs." + - languageCode: da + text: "Maisonette lejlighed op/loftsrum Stue: herunder en rummelig lædersæ\ + de, rummeligt spisebord med stole til 4 personer, stort kabel-fladskæ\ + rms TV, dvd/Bluray-afspiller, musiksystem med cd og dockingstation, gratis\ + \ trådløs internetadgang og telefon fast (tysk fastnet). Køkken: mærkevarer\ + \ udstyret køkken med opvaskemaskine, komfur med keramisk komfur, Ovn,\ + \ mikroovn, køleskab/fryser, Nespresso kaffemaskine.Soveværelser: Et sovevæ\ + relse med dobbeltseng herunder Treca box foråret senge med indbyggede\ + \ garderobeskabe med rigelig opbevaringsplads og med kabel-fladskærms\ + \ TV og sikker.Badeværelse: herunder spa-bruser, badekar, håndvask, gulvvarme,\ + \ håndklædevarmer, radio, hårtørrer, Kosmetiske spejl, vindue.Balkon (sydvendt\ + \ position): med siddepladser gruppe.Andre: Vaskemaskine tørretumbler,\ + \ strygestation, privat parkering foran huset, cykelopbevaring med opladningsforbindelse\ + \ for pedelecs... og fantastisk beliggenhed, lige ved siden af stranden\ + \ krydser!Maisonette lejlighed op/loftsrum stue: herunder rummelige læ\ + der siddepladser, rummelige spisebord med stole til 4 personer, stort\ + \ kabel fladskærms TV, DVD/Blueray afspiller, musikanlæg med cd og docking\ + \ station, gratis trådløs internetadgang og telefon fast (tysk fastnet)\ + \ .Køkken: mærkevarer udstyret køkken med opvaskemaskine, komfur med keramisk\ + \ komfur, blandt andre ovn, mikroovn, køleskab/fryser, Nespresso kaffemaskine.Sovevæ\ + relser: Et dobbeltværelse herunder Treca box foråret senge med indbyggede\ + \ garderobeskabe med rigelig opbevaringsplads og med kabel fladskærms\ + \ TV og penge.Badeværelse: herunder spa bruser, badekar, håndvask, gulvvarme,\ + \ håndklædevarmer, radio, hårtørrer, Vanity spejl, vindue.Balkon (sydvendt\ + \ position): med siddepladser gruppe.Andre: vaskemaskine-tørretumbler,\ + \ strygestation, privat parkering foran huset, cykel opbevaring med opladning\ + \ tilslutning til pedelecs." + - languageCode: nl + text: "Maisonnette appartement boven/zolder Woonkamer: inclusief een ruime\ + \ lederen stoel, ruime eettafel met stoelen voor 4 personen, grote flatscreen\ + \ tv met kabelzenders, dvd/Bluray-speler, muziekinstallatie met cd en\ + \ docking station, gratis Wi-Fi en vaste telefoon (vaste lijn Duitsland).\ + \ Keuken: branded ingerichte keuken met vaatwasser, fornuis met keramische\ + \ kookplaat, oven, magnetron, koelkast/vriezer, Nespresso koffiemachine.Slaapkamers:\ + \ Een tweepersoons slaapkamer inclusief Treca boxspring bedden met ingebouwde\ + \ kasten met voldoende bergruimte en met kabel flatscreen TV en kluis.Badkamer:\ + \ inclusief spa douche, bad, wastafel, vloerverwarming, handdoekverwarmer,\ + \ radio, haardroger, cosmetische spiegel, venster.Balkon (op het zuiden\ + \ gelegen): met zitgroep.Overig: Wasdroger, strijkplank, eigen parkeerplaats\ + \ voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs...\ + \ en fantastische locatie, direct aan De oversteek van het strand!Maisonnette\ + \ appartement boven/zolderwoonkamer: inclusief ruime lederen zitplaatsen,\ + \ ruime eettafel met stoelen voor 4 personen, grote flatscreen tv met\ + \ kabelkanalen, DVD/BlueRay speler, muziekinstallatie met CD en docking\ + \ station, gratis Wi-Fi en vaste telefoon vaatwasser, fornuis met keramische\ + \ kookplaat, o.a., oven, magnetron, koelkast/vriezer, Nespresso koffiemachine.Slaapkamers:\ + \ Een tweepersoons slaapkamer inclusief Treca boxspring bedden met ingebouwde\ + \ kasten met veel bergruimte en met kabel flatscreen TV en kluis.Badkamer:\ + \ inclusief spa douche, bad, wastafel, vloerverwarming, handdoekwarmer,\ + \ radio, haardroger, make-upspiegel, raam.Balkon (op het zuiden gelegen):\ + \ met zitgroep.Overig: wasmachine-droger, strijkplank, eigen parkeerplaats\ + \ voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs." + - languageCode: de + text: "Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a. mit grosszügiger\ + \ Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen für 4 Personen, grossem\ + \ Kabel-Flat-TV, DVD-/Bluray-Player, Musikanlage mit CD und Docking-Station,\ + \ kostenfreies WLan sowie Telefon-Flatrate (dt. Festnetz).Küche: Marken-Einbaukü\ + che u.a. mit Geschirrspülmaschine, Herd mit Ceranfeld, Backofen, Mikrowelle,\ + \ Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafräume: Ein\ + \ Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschränken\ + \ mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer:\ + \ u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation, privater\ + \ Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit mit Aufladeanschluß\ + \ für Pedelecs ...... und traumhafte Lage, direkt am Strandübergang!Maisonettewohnung\ + \ Ober-/DachgeschoßWohnzimmer: u.a. mit grosszügiger Leder-Sitzguppe,\ + \ grosszügigem Eßtisch mit Stühlen für 4 Personen, grossem Kabel-Flat-TV,\ + \ DVD-/Blueray-Player, Musikanlage mit CD und Docking-Station, kostenfreies\ + \ WLan sowie Telefon-Flatrate (dt. Festnetz).Küche: Marken-Einbauküche\ + \ u.a. mit Geschirrspülmaschine, Herd mit Ceranfeld, Backofen, Mikrowelle,\ + \ Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafräume: Ein\ + \ Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschränken\ + \ mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer:\ + \ u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation, privater\ + \ Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit mit Aufladeanschluß\ + \ für Pedelecs." + name: Amrum + maxAdultOccupancy: 2 + maxOccupancy: 4 + isActive: true + amenityList: + - code: 5005 + quantity: 1 + - code: 13 + quantity: 1 + roomId: amrum + maxChildOccupancy: 4 properties: - method: - example: MANDATORY_BOOKING + isActive: + description: Indicates whether the room is active or not. + example: true + type: boolean + roomId: + description: The unique identifier for the room. + example: amrum type: string - contactTypeList: + name: + description: The name of the room. + example: Amrum + type: string + mediaList: + description: A list of media objects for the room. items: - example: reservations - type: string + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_facilityInfo_guestRoomList_inner_mediaList_inner' + type: array + roomTypeCode: + description: The unit and room type code.

See also in + the appendix.

+ enum: + - 1 + - 4 + - 5 + - 7 + - 8 + - 9 + - 10 + - 12 + - 13 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 31 + - 32 + - 33 + example: 1 + type: number + isNonSmoking: + description: Indicates whether the room is designated as non-smoking. + example: false + type: boolean + amenityList: + description: A list of amenities provided in the room. + example: + - code: 5005 + quantity: 1 + - code: 13 + quantity: 1 + items: + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_facilityInfo_guestRoomList_inner_amenityList_inner' + type: array + messageList: + description: A list of messages associated with the room. + example: + - languageCode: en + text: "Maisonette apartment up/attic Living room: including a spacious\ + \ leather seat, spacious dining table with chairs for 4 people, large\ + \ cable flat screen TV, DVD/BluRay player, music system with CD and\ + \ docking station, free Wi-Fi and telephone flat rate (German landline).\ + \ Kitchen: branded fitted kitchen with dishwasher, cooker with ceramic\ + \ hob, Oven, microwave, fridge/freezer, Nespresso coffee machine.Bedrooms:\ + \ One double bedroom including Treca box spring beds with fitted wardrobes\ + \ with ample storage space and with cable flat screen TV and safe.Bathroom:\ + \ including spa shower, bathtub, washbasin, underfloor heating, towel\ + \ warmer, radio, hairdryer, Cosmetic mirror, window.Balcony (south facing\ + \ position): with seating group.Other: Washer dryer, ironing station,\ + \ private parking in front of the house, bicycle storage with charging\ + \ connection for pedelecs... and fantastic location, right at the beach\ + \ crossing!Maisonette apartment up/attic living room: including spacious\ + \ leather seating, spacious dining table with chairs for 4 people, large\ + \ cable flat screen TV, DVD/Blueray player, music system with CD and\ + \ docking station, free Wi-Fi and telephone flat rate (German landline)\ + \ .Kitchen: branded fitted kitchen with dishwasher, cooker with ceramic\ + \ hob, among others, oven, microwave, fridge/freezer, Nespresso coffee\ + \ machine.Bedrooms: One double bedroom including Treca box spring beds\ + \ with fitted wardrobes with ample storage space and with cable flat\ + \ screen TV and safe.Bathroom: including spa shower, bathtub, washbasin,\ + \ underfloor heating, towel warmer, radio, hairdryer, Vanity mirror,\ + \ window.Balcony (south facing position): with seating group.Other:\ + \ washer-dryer, ironing station, private parking in front of the house,\ + \ bicycle storage with charging connection for pedelecs." + - languageCode: da + text: "Maisonette lejlighed op/loftsrum Stue: herunder en rummelig læ\ + dersæde, rummeligt spisebord med stole til 4 personer, stort kabel-fladskæ\ + rms TV, dvd/Bluray-afspiller, musiksystem med cd og dockingstation,\ + \ gratis trådløs internetadgang og telefon fast (tysk fastnet). Køkken:\ + \ mærkevarer udstyret køkken med opvaskemaskine, komfur med keramisk\ + \ komfur, Ovn, mikroovn, køleskab/fryser, Nespresso kaffemaskine.Sovevæ\ + relser: Et soveværelse med dobbeltseng herunder Treca box foråret senge\ + \ med indbyggede garderobeskabe med rigelig opbevaringsplads og med\ + \ kabel-fladskærms TV og sikker.Badeværelse: herunder spa-bruser, badekar,\ + \ håndvask, gulvvarme, håndklædevarmer, radio, hårtørrer, Kosmetiske\ + \ spejl, vindue.Balkon (sydvendt position): med siddepladser gruppe.Andre:\ + \ Vaskemaskine tørretumbler, strygestation, privat parkering foran huset,\ + \ cykelopbevaring med opladningsforbindelse for pedelecs... og fantastisk\ + \ beliggenhed, lige ved siden af stranden krydser!Maisonette lejlighed\ + \ op/loftsrum stue: herunder rummelige læder siddepladser, rummelige\ + \ spisebord med stole til 4 personer, stort kabel fladskærms TV, DVD/Blueray\ + \ afspiller, musikanlæg med cd og docking station, gratis trådløs internetadgang\ + \ og telefon fast (tysk fastnet) .Køkken: mærkevarer udstyret køkken\ + \ med opvaskemaskine, komfur med keramisk komfur, blandt andre ovn,\ + \ mikroovn, køleskab/fryser, Nespresso kaffemaskine.Soveværelser: Et\ + \ dobbeltværelse herunder Treca box foråret senge med indbyggede garderobeskabe\ + \ med rigelig opbevaringsplads og med kabel fladskærms TV og penge.Badevæ\ + relse: herunder spa bruser, badekar, håndvask, gulvvarme, håndklædevarmer,\ + \ radio, hårtørrer, Vanity spejl, vindue.Balkon (sydvendt position):\ + \ med siddepladser gruppe.Andre: vaskemaskine-tørretumbler, strygestation,\ + \ privat parkering foran huset, cykel opbevaring med opladning tilslutning\ + \ til pedelecs." + - languageCode: nl + text: "Maisonnette appartement boven/zolder Woonkamer: inclusief een ruime\ + \ lederen stoel, ruime eettafel met stoelen voor 4 personen, grote flatscreen\ + \ tv met kabelzenders, dvd/Bluray-speler, muziekinstallatie met cd en\ + \ docking station, gratis Wi-Fi en vaste telefoon (vaste lijn Duitsland).\ + \ Keuken: branded ingerichte keuken met vaatwasser, fornuis met keramische\ + \ kookplaat, oven, magnetron, koelkast/vriezer, Nespresso koffiemachine.Slaapkamers:\ + \ Een tweepersoons slaapkamer inclusief Treca boxspring bedden met ingebouwde\ + \ kasten met voldoende bergruimte en met kabel flatscreen TV en kluis.Badkamer:\ + \ inclusief spa douche, bad, wastafel, vloerverwarming, handdoekverwarmer,\ + \ radio, haardroger, cosmetische spiegel, venster.Balkon (op het zuiden\ + \ gelegen): met zitgroep.Overig: Wasdroger, strijkplank, eigen parkeerplaats\ + \ voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs...\ + \ en fantastische locatie, direct aan De oversteek van het strand!Maisonnette\ + \ appartement boven/zolderwoonkamer: inclusief ruime lederen zitplaatsen,\ + \ ruime eettafel met stoelen voor 4 personen, grote flatscreen tv met\ + \ kabelkanalen, DVD/BlueRay speler, muziekinstallatie met CD en docking\ + \ station, gratis Wi-Fi en vaste telefoon vaatwasser, fornuis met keramische\ + \ kookplaat, o.a., oven, magnetron, koelkast/vriezer, Nespresso koffiemachine.Slaapkamers:\ + \ Een tweepersoons slaapkamer inclusief Treca boxspring bedden met ingebouwde\ + \ kasten met veel bergruimte en met kabel flatscreen TV en kluis.Badkamer:\ + \ inclusief spa douche, bad, wastafel, vloerverwarming, handdoekwarmer,\ + \ radio, haardroger, make-upspiegel, raam.Balkon (op het zuiden gelegen):\ + \ met zitgroep.Overig: wasmachine-droger, strijkplank, eigen parkeerplaats\ + \ voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs." + - languageCode: de + text: "Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a. mit grosszü\ + giger Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen für 4 Personen,\ + \ grossem Kabel-Flat-TV, DVD-/Bluray-Player, Musikanlage mit CD und\ + \ Docking-Station, kostenfreies WLan sowie Telefon-Flatrate (dt. Festnetz).Kü\ + che: Marken-Einbauküche u.a. mit Geschirrspülmaschine, Herd mit Ceranfeld,\ + \ Backofen, Mikrowelle, Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafrä\ + ume: Ein Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschrä\ + nken mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer:\ + \ u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation,\ + \ privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit mit\ + \ Aufladeanschluß für Pedelecs ...... und traumhafte Lage, direkt am\ + \ Strandübergang!Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a.\ + \ mit grosszügiger Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen\ + \ für 4 Personen, grossem Kabel-Flat-TV, DVD-/Blueray-Player, Musikanlage\ + \ mit CD und Docking-Station, kostenfreies WLan sowie Telefon-Flatrate\ + \ (dt. Festnetz).Küche: Marken-Einbauküche u.a. mit Geschirrspülmaschine,\ + \ Herd mit Ceranfeld, Backofen, Mikrowelle, Kühl-/Gefrierkombination,\ + \ Nespresso-Kaffeemaschine.Schlafräume: Ein Doppelschlafraum u.a. mit\ + \ TRECA-Boxspringbetten mit Einbauschränken mit ausreichend Stauraum\ + \ sowie mit Kabel-Flat-TV und Safe.Badezimmer: u.a. mit Wellness-Dusche,\ + \ Badewanne, Waschtischanlage, Fußbodenheizung, Handtuchwärmer, Radioanlage,\ + \ Haartrockner, Kosmetikspiegel, Fenster.Balkon (Südlage): mit Sitzgruppe.Sonstiges:\ + \ Waschtrockner, Bügelstation, privater Parkplatz vor dem Haus, Fahrradunterstellmö\ + glichkeit mit Aufladeanschluß für Pedelecs." + items: + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_facilityInfo_guestRoomList_inner_messageList_inner' type: array - externalList: + maxOccupancy: + description: The maximum occupancy of the room. + example: 4 + type: number + maxAdultOccupancy: + description: The maximum number of adults that can occupy the room. + example: 2 + type: number + maxChildOccupancy: + description: The maximum number of children that can occupy the room. + example: 4 + type: number + required: + - amenityList + - isActive + - isNonSmoking + - maxAdultOccupancy + - maxChildOccupancy + - maxOccupancy + - mediaList + - messageList + - name + - roomId + - roomTypeCode + type: object + _properties__propertyId__get_200_response_property_facilityInfo: + description: Further information regarding the facility. + example: + guestRoomList: + - roomTypeCode: 1 + mediaList: + - tagList: + - 3 + - 55 + roomAmenityList: + - 0.8008281904610115 + - 0.8008281904610115 + isMainImage: true + detectionLabelList: + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 + moderationLabelList: + - partial_nudity + - tobacco + propertyAmenityList: + - 1 + - 2 + url: 5e3d9d49e9480.jpg + - tagList: + - 3 + - 55 + roomAmenityList: + - 0.8008281904610115 + - 0.8008281904610115 + isMainImage: true + detectionLabelList: + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 + moderationLabelList: + - partial_nudity + - tobacco + propertyAmenityList: + - 1 + - 2 + url: 5e3d9d49e9480.jpg + isNonSmoking: false + messageList: + - languageCode: en + text: "Maisonette apartment up/attic Living room: including a spacious\ + \ leather seat, spacious dining table with chairs for 4 people, large\ + \ cable flat screen TV, DVD/BluRay player, music system with CD and\ + \ docking station, free Wi-Fi and telephone flat rate (German landline).\ + \ Kitchen: branded fitted kitchen with dishwasher, cooker with ceramic\ + \ hob, Oven, microwave, fridge/freezer, Nespresso coffee machine.Bedrooms:\ + \ One double bedroom including Treca box spring beds with fitted wardrobes\ + \ with ample storage space and with cable flat screen TV and safe.Bathroom:\ + \ including spa shower, bathtub, washbasin, underfloor heating, towel\ + \ warmer, radio, hairdryer, Cosmetic mirror, window.Balcony (south facing\ + \ position): with seating group.Other: Washer dryer, ironing station,\ + \ private parking in front of the house, bicycle storage with charging\ + \ connection for pedelecs... and fantastic location, right at the beach\ + \ crossing!Maisonette apartment up/attic living room: including spacious\ + \ leather seating, spacious dining table with chairs for 4 people, large\ + \ cable flat screen TV, DVD/Blueray player, music system with CD and\ + \ docking station, free Wi-Fi and telephone flat rate (German landline)\ + \ .Kitchen: branded fitted kitchen with dishwasher, cooker with ceramic\ + \ hob, among others, oven, microwave, fridge/freezer, Nespresso coffee\ + \ machine.Bedrooms: One double bedroom including Treca box spring beds\ + \ with fitted wardrobes with ample storage space and with cable flat\ + \ screen TV and safe.Bathroom: including spa shower, bathtub, washbasin,\ + \ underfloor heating, towel warmer, radio, hairdryer, Vanity mirror,\ + \ window.Balcony (south facing position): with seating group.Other:\ + \ washer-dryer, ironing station, private parking in front of the house,\ + \ bicycle storage with charging connection for pedelecs." + - languageCode: da + text: "Maisonette lejlighed op/loftsrum Stue: herunder en rummelig læ\ + dersæde, rummeligt spisebord med stole til 4 personer, stort kabel-fladskæ\ + rms TV, dvd/Bluray-afspiller, musiksystem med cd og dockingstation,\ + \ gratis trådløs internetadgang og telefon fast (tysk fastnet). Køkken:\ + \ mærkevarer udstyret køkken med opvaskemaskine, komfur med keramisk\ + \ komfur, Ovn, mikroovn, køleskab/fryser, Nespresso kaffemaskine.Sovevæ\ + relser: Et soveværelse med dobbeltseng herunder Treca box foråret senge\ + \ med indbyggede garderobeskabe med rigelig opbevaringsplads og med\ + \ kabel-fladskærms TV og sikker.Badeværelse: herunder spa-bruser, badekar,\ + \ håndvask, gulvvarme, håndklædevarmer, radio, hårtørrer, Kosmetiske\ + \ spejl, vindue.Balkon (sydvendt position): med siddepladser gruppe.Andre:\ + \ Vaskemaskine tørretumbler, strygestation, privat parkering foran huset,\ + \ cykelopbevaring med opladningsforbindelse for pedelecs... og fantastisk\ + \ beliggenhed, lige ved siden af stranden krydser!Maisonette lejlighed\ + \ op/loftsrum stue: herunder rummelige læder siddepladser, rummelige\ + \ spisebord med stole til 4 personer, stort kabel fladskærms TV, DVD/Blueray\ + \ afspiller, musikanlæg med cd og docking station, gratis trådløs internetadgang\ + \ og telefon fast (tysk fastnet) .Køkken: mærkevarer udstyret køkken\ + \ med opvaskemaskine, komfur med keramisk komfur, blandt andre ovn,\ + \ mikroovn, køleskab/fryser, Nespresso kaffemaskine.Soveværelser: Et\ + \ dobbeltværelse herunder Treca box foråret senge med indbyggede garderobeskabe\ + \ med rigelig opbevaringsplads og med kabel fladskærms TV og penge.Badevæ\ + relse: herunder spa bruser, badekar, håndvask, gulvvarme, håndklædevarmer,\ + \ radio, hårtørrer, Vanity spejl, vindue.Balkon (sydvendt position):\ + \ med siddepladser gruppe.Andre: vaskemaskine-tørretumbler, strygestation,\ + \ privat parkering foran huset, cykel opbevaring med opladning tilslutning\ + \ til pedelecs." + - languageCode: nl + text: "Maisonnette appartement boven/zolder Woonkamer: inclusief een ruime\ + \ lederen stoel, ruime eettafel met stoelen voor 4 personen, grote flatscreen\ + \ tv met kabelzenders, dvd/Bluray-speler, muziekinstallatie met cd en\ + \ docking station, gratis Wi-Fi en vaste telefoon (vaste lijn Duitsland).\ + \ Keuken: branded ingerichte keuken met vaatwasser, fornuis met keramische\ + \ kookplaat, oven, magnetron, koelkast/vriezer, Nespresso koffiemachine.Slaapkamers:\ + \ Een tweepersoons slaapkamer inclusief Treca boxspring bedden met ingebouwde\ + \ kasten met voldoende bergruimte en met kabel flatscreen TV en kluis.Badkamer:\ + \ inclusief spa douche, bad, wastafel, vloerverwarming, handdoekverwarmer,\ + \ radio, haardroger, cosmetische spiegel, venster.Balkon (op het zuiden\ + \ gelegen): met zitgroep.Overig: Wasdroger, strijkplank, eigen parkeerplaats\ + \ voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs...\ + \ en fantastische locatie, direct aan De oversteek van het strand!Maisonnette\ + \ appartement boven/zolderwoonkamer: inclusief ruime lederen zitplaatsen,\ + \ ruime eettafel met stoelen voor 4 personen, grote flatscreen tv met\ + \ kabelkanalen, DVD/BlueRay speler, muziekinstallatie met CD en docking\ + \ station, gratis Wi-Fi en vaste telefoon vaatwasser, fornuis met keramische\ + \ kookplaat, o.a., oven, magnetron, koelkast/vriezer, Nespresso koffiemachine.Slaapkamers:\ + \ Een tweepersoons slaapkamer inclusief Treca boxspring bedden met ingebouwde\ + \ kasten met veel bergruimte en met kabel flatscreen TV en kluis.Badkamer:\ + \ inclusief spa douche, bad, wastafel, vloerverwarming, handdoekwarmer,\ + \ radio, haardroger, make-upspiegel, raam.Balkon (op het zuiden gelegen):\ + \ met zitgroep.Overig: wasmachine-droger, strijkplank, eigen parkeerplaats\ + \ voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs." + - languageCode: de + text: "Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a. mit grosszü\ + giger Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen für 4 Personen,\ + \ grossem Kabel-Flat-TV, DVD-/Bluray-Player, Musikanlage mit CD und\ + \ Docking-Station, kostenfreies WLan sowie Telefon-Flatrate (dt. Festnetz).Kü\ + che: Marken-Einbauküche u.a. mit Geschirrspülmaschine, Herd mit Ceranfeld,\ + \ Backofen, Mikrowelle, Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafrä\ + ume: Ein Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschrä\ + nken mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer:\ + \ u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation,\ + \ privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit mit\ + \ Aufladeanschluß für Pedelecs ...... und traumhafte Lage, direkt am\ + \ Strandübergang!Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a.\ + \ mit grosszügiger Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen\ + \ für 4 Personen, grossem Kabel-Flat-TV, DVD-/Blueray-Player, Musikanlage\ + \ mit CD und Docking-Station, kostenfreies WLan sowie Telefon-Flatrate\ + \ (dt. Festnetz).Küche: Marken-Einbauküche u.a. mit Geschirrspülmaschine,\ + \ Herd mit Ceranfeld, Backofen, Mikrowelle, Kühl-/Gefrierkombination,\ + \ Nespresso-Kaffeemaschine.Schlafräume: Ein Doppelschlafraum u.a. mit\ + \ TRECA-Boxspringbetten mit Einbauschränken mit ausreichend Stauraum\ + \ sowie mit Kabel-Flat-TV und Safe.Badezimmer: u.a. mit Wellness-Dusche,\ + \ Badewanne, Waschtischanlage, Fußbodenheizung, Handtuchwärmer, Radioanlage,\ + \ Haartrockner, Kosmetikspiegel, Fenster.Balkon (Südlage): mit Sitzgruppe.Sonstiges:\ + \ Waschtrockner, Bügelstation, privater Parkplatz vor dem Haus, Fahrradunterstellmö\ + glichkeit mit Aufladeanschluß für Pedelecs." + name: Amrum + maxAdultOccupancy: 2 + maxOccupancy: 4 + isActive: true + amenityList: + - code: 5005 + quantity: 1 + - code: 13 + quantity: 1 + roomId: amrum + maxChildOccupancy: 4 + - roomTypeCode: 1 + mediaList: + - tagList: + - 3 + - 55 + roomAmenityList: + - 0.8008281904610115 + - 0.8008281904610115 + isMainImage: true + detectionLabelList: + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 + moderationLabelList: + - partial_nudity + - tobacco + propertyAmenityList: + - 1 + - 2 + url: 5e3d9d49e9480.jpg + - tagList: + - 3 + - 55 + roomAmenityList: + - 0.8008281904610115 + - 0.8008281904610115 + isMainImage: true + detectionLabelList: + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 + moderationLabelList: + - partial_nudity + - tobacco + propertyAmenityList: + - 1 + - 2 + url: 5e3d9d49e9480.jpg + isNonSmoking: false + messageList: + - languageCode: en + text: "Maisonette apartment up/attic Living room: including a spacious\ + \ leather seat, spacious dining table with chairs for 4 people, large\ + \ cable flat screen TV, DVD/BluRay player, music system with CD and\ + \ docking station, free Wi-Fi and telephone flat rate (German landline).\ + \ Kitchen: branded fitted kitchen with dishwasher, cooker with ceramic\ + \ hob, Oven, microwave, fridge/freezer, Nespresso coffee machine.Bedrooms:\ + \ One double bedroom including Treca box spring beds with fitted wardrobes\ + \ with ample storage space and with cable flat screen TV and safe.Bathroom:\ + \ including spa shower, bathtub, washbasin, underfloor heating, towel\ + \ warmer, radio, hairdryer, Cosmetic mirror, window.Balcony (south facing\ + \ position): with seating group.Other: Washer dryer, ironing station,\ + \ private parking in front of the house, bicycle storage with charging\ + \ connection for pedelecs... and fantastic location, right at the beach\ + \ crossing!Maisonette apartment up/attic living room: including spacious\ + \ leather seating, spacious dining table with chairs for 4 people, large\ + \ cable flat screen TV, DVD/Blueray player, music system with CD and\ + \ docking station, free Wi-Fi and telephone flat rate (German landline)\ + \ .Kitchen: branded fitted kitchen with dishwasher, cooker with ceramic\ + \ hob, among others, oven, microwave, fridge/freezer, Nespresso coffee\ + \ machine.Bedrooms: One double bedroom including Treca box spring beds\ + \ with fitted wardrobes with ample storage space and with cable flat\ + \ screen TV and safe.Bathroom: including spa shower, bathtub, washbasin,\ + \ underfloor heating, towel warmer, radio, hairdryer, Vanity mirror,\ + \ window.Balcony (south facing position): with seating group.Other:\ + \ washer-dryer, ironing station, private parking in front of the house,\ + \ bicycle storage with charging connection for pedelecs." + - languageCode: da + text: "Maisonette lejlighed op/loftsrum Stue: herunder en rummelig læ\ + dersæde, rummeligt spisebord med stole til 4 personer, stort kabel-fladskæ\ + rms TV, dvd/Bluray-afspiller, musiksystem med cd og dockingstation,\ + \ gratis trådløs internetadgang og telefon fast (tysk fastnet). Køkken:\ + \ mærkevarer udstyret køkken med opvaskemaskine, komfur med keramisk\ + \ komfur, Ovn, mikroovn, køleskab/fryser, Nespresso kaffemaskine.Sovevæ\ + relser: Et soveværelse med dobbeltseng herunder Treca box foråret senge\ + \ med indbyggede garderobeskabe med rigelig opbevaringsplads og med\ + \ kabel-fladskærms TV og sikker.Badeværelse: herunder spa-bruser, badekar,\ + \ håndvask, gulvvarme, håndklædevarmer, radio, hårtørrer, Kosmetiske\ + \ spejl, vindue.Balkon (sydvendt position): med siddepladser gruppe.Andre:\ + \ Vaskemaskine tørretumbler, strygestation, privat parkering foran huset,\ + \ cykelopbevaring med opladningsforbindelse for pedelecs... og fantastisk\ + \ beliggenhed, lige ved siden af stranden krydser!Maisonette lejlighed\ + \ op/loftsrum stue: herunder rummelige læder siddepladser, rummelige\ + \ spisebord med stole til 4 personer, stort kabel fladskærms TV, DVD/Blueray\ + \ afspiller, musikanlæg med cd og docking station, gratis trådløs internetadgang\ + \ og telefon fast (tysk fastnet) .Køkken: mærkevarer udstyret køkken\ + \ med opvaskemaskine, komfur med keramisk komfur, blandt andre ovn,\ + \ mikroovn, køleskab/fryser, Nespresso kaffemaskine.Soveværelser: Et\ + \ dobbeltværelse herunder Treca box foråret senge med indbyggede garderobeskabe\ + \ med rigelig opbevaringsplads og med kabel fladskærms TV og penge.Badevæ\ + relse: herunder spa bruser, badekar, håndvask, gulvvarme, håndklædevarmer,\ + \ radio, hårtørrer, Vanity spejl, vindue.Balkon (sydvendt position):\ + \ med siddepladser gruppe.Andre: vaskemaskine-tørretumbler, strygestation,\ + \ privat parkering foran huset, cykel opbevaring med opladning tilslutning\ + \ til pedelecs." + - languageCode: nl + text: "Maisonnette appartement boven/zolder Woonkamer: inclusief een ruime\ + \ lederen stoel, ruime eettafel met stoelen voor 4 personen, grote flatscreen\ + \ tv met kabelzenders, dvd/Bluray-speler, muziekinstallatie met cd en\ + \ docking station, gratis Wi-Fi en vaste telefoon (vaste lijn Duitsland).\ + \ Keuken: branded ingerichte keuken met vaatwasser, fornuis met keramische\ + \ kookplaat, oven, magnetron, koelkast/vriezer, Nespresso koffiemachine.Slaapkamers:\ + \ Een tweepersoons slaapkamer inclusief Treca boxspring bedden met ingebouwde\ + \ kasten met voldoende bergruimte en met kabel flatscreen TV en kluis.Badkamer:\ + \ inclusief spa douche, bad, wastafel, vloerverwarming, handdoekverwarmer,\ + \ radio, haardroger, cosmetische spiegel, venster.Balkon (op het zuiden\ + \ gelegen): met zitgroep.Overig: Wasdroger, strijkplank, eigen parkeerplaats\ + \ voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs...\ + \ en fantastische locatie, direct aan De oversteek van het strand!Maisonnette\ + \ appartement boven/zolderwoonkamer: inclusief ruime lederen zitplaatsen,\ + \ ruime eettafel met stoelen voor 4 personen, grote flatscreen tv met\ + \ kabelkanalen, DVD/BlueRay speler, muziekinstallatie met CD en docking\ + \ station, gratis Wi-Fi en vaste telefoon vaatwasser, fornuis met keramische\ + \ kookplaat, o.a., oven, magnetron, koelkast/vriezer, Nespresso koffiemachine.Slaapkamers:\ + \ Een tweepersoons slaapkamer inclusief Treca boxspring bedden met ingebouwde\ + \ kasten met veel bergruimte en met kabel flatscreen TV en kluis.Badkamer:\ + \ inclusief spa douche, bad, wastafel, vloerverwarming, handdoekwarmer,\ + \ radio, haardroger, make-upspiegel, raam.Balkon (op het zuiden gelegen):\ + \ met zitgroep.Overig: wasmachine-droger, strijkplank, eigen parkeerplaats\ + \ voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs." + - languageCode: de + text: "Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a. mit grosszü\ + giger Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen für 4 Personen,\ + \ grossem Kabel-Flat-TV, DVD-/Bluray-Player, Musikanlage mit CD und\ + \ Docking-Station, kostenfreies WLan sowie Telefon-Flatrate (dt. Festnetz).Kü\ + che: Marken-Einbauküche u.a. mit Geschirrspülmaschine, Herd mit Ceranfeld,\ + \ Backofen, Mikrowelle, Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafrä\ + ume: Ein Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschrä\ + nken mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer:\ + \ u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation,\ + \ privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit mit\ + \ Aufladeanschluß für Pedelecs ...... und traumhafte Lage, direkt am\ + \ Strandübergang!Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a.\ + \ mit grosszügiger Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen\ + \ für 4 Personen, grossem Kabel-Flat-TV, DVD-/Blueray-Player, Musikanlage\ + \ mit CD und Docking-Station, kostenfreies WLan sowie Telefon-Flatrate\ + \ (dt. Festnetz).Küche: Marken-Einbauküche u.a. mit Geschirrspülmaschine,\ + \ Herd mit Ceranfeld, Backofen, Mikrowelle, Kühl-/Gefrierkombination,\ + \ Nespresso-Kaffeemaschine.Schlafräume: Ein Doppelschlafraum u.a. mit\ + \ TRECA-Boxspringbetten mit Einbauschränken mit ausreichend Stauraum\ + \ sowie mit Kabel-Flat-TV und Safe.Badezimmer: u.a. mit Wellness-Dusche,\ + \ Badewanne, Waschtischanlage, Fußbodenheizung, Handtuchwärmer, Radioanlage,\ + \ Haartrockner, Kosmetikspiegel, Fenster.Balkon (Südlage): mit Sitzgruppe.Sonstiges:\ + \ Waschtrockner, Bügelstation, privater Parkplatz vor dem Haus, Fahrradunterstellmö\ + glichkeit mit Aufladeanschluß für Pedelecs." + name: Amrum + maxAdultOccupancy: 2 + maxOccupancy: 4 + isActive: true + amenityList: + - code: 5005 + quantity: 1 + - code: 13 + quantity: 1 + roomId: amrum + maxChildOccupancy: 4 + properties: + guestRoomList: + description: An array of objects representing a room in the property. items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_transaction_externalList_inner' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_facilityInfo_guestRoomList_inner' type: array + required: + - guestRoomList type: object - _v1_property_get_post_200_response_property_cancellationGracePeriod: + _properties__propertyId__get_200_response_property_policyList_inner_cancellationPolicyList_inner: example: - weeksBeforeCheckIn: 0 - hoursAfterBooking: 24 + noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 properties: - hoursAfterBooking: - example: 24 + percentAfterReservation: + description: Percentage of refund after reservation. + example: 0 type: number - weeksBeforeCheckIn: + nightsAfterReservation: + description: Number of nights after reservation. + example: 0 + type: number + deadlineDays: + description: Deadline in days. + example: 0 + type: number + deadlineHours: + description: Deadline in hours. + example: 0 + type: number + percentAfterDeadline: + description: Percentage of refund after deadline. example: 0 type: number + nightsAfterDeadline: + description: Number of nights after deadline. + example: 0 + type: number + noShowPolicy: + description: No-show policy + example: Default + type: string + required: + - deadlineDays + - deadlineHours + - nightsAfterDeadline + - nightsAfterReservation + - noShowPolicy + - percentAfterDeadline + - percentAfterReservation type: object - _v1_property_get_post_200_response_property_serviceList_inner: + _properties__propertyId__get_200_response_property_policyList_inner_petsPolicy: + description: Contains information about the pets policy of the property example: - featureList: - - featureList - - featureList - operationTimeList: - - operationTimeList - - operationTimeList - code: 5015 - typeList: - - typeList - - typeList - price: 0 - name: Beach - exists: true - itemList: - - itemList - - itemList - included: true - currencyCode: EUR + byArrangement: false + allowed: false + freeOfCharge: false properties: - code: - example: 5015 + allowed: + description: Indicates if pets are allowed in the property. + example: false + type: boolean + byArrangement: + description: Indicates if pets are allowed by arrangement. + example: false + type: boolean + freeOfCharge: + description: Indicates if pets are allowed without any additional charge. + example: false + type: boolean + required: + - allowed + - byArrangement + - freeOfCharge + type: object + _properties__propertyId__get_200_response_property_policyList_inner_guaranteePolicy: + description: Defines the guarantee amount that has to be paid to the property. + example: + noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + properties: + percentAfterReservation: + description: Percentage of refund after reservation. + example: 0 type: number - price: + nightsAfterReservation: + description: Number of nights after reservation. example: 0 type: number - exists: - type: boolean - included: - type: boolean + deadlineDays: + description: Deadline in days. + example: 0 + type: number + deadlineHours: + description: Deadline in hours. + example: 0 + type: number + percentAfterDeadline: + description: Percentage of refund after deadline. + example: 0 + type: number + nightsAfterDeadline: + description: Number of nights after deadline. + example: 0 + type: number + noShowPolicy: + description: No-show policy + example: Default + type: string + required: + - deadlineDays + - deadlineHours + - nightsAfterDeadline + - nightsAfterReservation + - noShowPolicy + - percentAfterDeadline + - percentAfterReservation + type: object + _properties__propertyId__get_200_response_property_policyList_inner_taxPolicyList_inner: + example: + conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + properties: + typeCode: + description: The code that represents the type of tax.

See also in + the appendix.

+ enum: + - 1 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 10 + - 13 + - 15 + - 17 + - 18 + - 19 + - 28 + - 30 + - 35 + - 36 + - 39 + - 43 + - 46 + - 5001 + - 5002 + - 5004 + - 5007 + - 5008 + example: 36 + type: number + percent: + description: The charged percentage if applicable. + example: 19 + type: number + chargeType: + description: The type of charge. + enum: + - included + - excluded + - conditional + example: included + type: string + chargeFrequencyCode: + description: The code that represents the frequency of charge.

See also + in the appendix.

+ enum: + - 1 + - 2 + - 7 + - 10 + - 12 + - 17 + - 19 + - 20 + - 21 + - 25 + - 31 + - 5000 + - 5001 + - 5002 + - 5010 + - 5011 + - 5012 + - 5013 + - 5014 + - 5015 + - 5016 + - 5017 + - 90010 + - 90011 + - 90012 + - 90013 + example: 12 + type: number currencyCode: + description: The currency code of the currency in that the charge is applied.

See + also in the appendix.

+ enum: + - AED + - ARS + - AUD + - AZN + - BGN + - BHD + - BRL + - CAD + - CHF + - CLP + - CNY + - COP + - CZK + - DKK + - EGP + - EUR + - FJD + - GBP + - GEL + - HKD + - HUF + - IDR + - ILS + - INR + - JOD + - JPY + - KRW + - KWD + - KZT + - MDL + - MXN + - MYR + - NAD + - NOK + - NZD + - OMR + - PLN + - QAR + - RON + - RUB + - SAR + - SEK + - SGD + - THB + - TRY + - TWD + - UAH + - USD + - XOF + - ZAR example: EUR type: string - featureList: - items: - type: string - type: array - typeList: - items: - type: string - type: array - itemList: + conditionList: + description: A list of conditions for the tax. Is empty if chargeType + is not conditional. + example: [] items: + enum: + - guest_brings_pet + - guest_doesnt_clean_before_checkout + - guest_smokes type: string type: array - operationTimeList: + required: + - chargeFrequencyCode + - chargeType + - conditionList + - currencyCode + - typeCode + type: object + _properties__propertyId__get_200_response_property_policyList_inner_feePolicyList_inner: + example: + conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + properties: + typeCode: + description: The code that represents the type of fee.

See also in + the appendix.

+ enum: + - 2 + - 9 + - 11 + - 12 + - 14 + - 16 + - 27 + - 29 + - 31 + - 32 + - 33 + - 34 + - 37 + - 38 + - 40 + - 41 + - 42 + - 44 + - 45 + - 47 + - 51 + - 52 + - 53 + - 54 + - 55 + - 56 + - 5000 + - 5003 + - 5005 + - 5006 + - 5009 + - 5010 + - 5011 + - 5012 + - 5013 + - 5014 + - 5015 + - 5016 + - 5017 + - 5018 + - 5019 + - 5020 + - 5021 + - 5022 + - 5023 + - 5024 + - 5025 + - 5026 + - 5027 + - 5028 + - 5029 + - 5030 + - 5031 + - 5032 + - 5033 + - 5035 + - 5036 + - 20001 + example: 36 + type: number + percent: + description: The charged percentage if applicable. + example: 19 + type: number + chargeType: + description: The type of charge. + enum: + - included + - excluded + - conditional + example: included + type: string + chargeFrequencyCode: + description: The code that represents the frequency of charge.

See also + in the appendix.

+ enum: + - 1 + - 2 + - 7 + - 10 + - 12 + - 17 + - 19 + - 20 + - 21 + - 25 + - 31 + - 5000 + - 5001 + - 5002 + - 5010 + - 5011 + - 5012 + - 5013 + - 5014 + - 5015 + - 5016 + - 5017 + - 90010 + - 90011 + - 90012 + - 90013 + example: 12 + type: number + currencyCode: + description: The currency code of the currency in that the charge is applied.

See + also in the appendix.

+ enum: + - AED + - ARS + - AUD + - AZN + - BGN + - BHD + - BRL + - CAD + - CHF + - CLP + - CNY + - COP + - CZK + - DKK + - EGP + - EUR + - FJD + - GBP + - GEL + - HKD + - HUF + - IDR + - ILS + - INR + - JOD + - JPY + - KRW + - KWD + - KZT + - MDL + - MXN + - MYR + - NAD + - NOK + - NZD + - OMR + - PLN + - QAR + - RON + - RUB + - SAR + - SEK + - SGD + - THB + - TRY + - TWD + - UAH + - USD + - XOF + - ZAR + example: EUR + type: string + conditionList: + description: A list of conditions for the tax. Is empty if chargeType + is not conditional. + example: [] items: + enum: + - guest_brings_pet + - guest_doesnt_clean_before_checkout + - guest_smokes type: string type: array - name: - example: Beach - type: string + required: + - chargeFrequencyCode + - chargeType + - conditionList + - currencyCode + - typeCode type: object - _v1_property_get_post_200_response_property: + _properties__propertyId__get_200_response_property_policyList_inner: example: - facilityInfo: - guestRoomList: - - roomTypeCode: "1" - typeName: typeName - roomTypeName: roomTypeName - maxAdultOccupancy: "4" - descriptionText: descriptionText - isActive: true - amenityList: - - code: "5005" - quantity: 1 - - code: "5005" - quantity: 1 - roomId: amrum - maxChildOccupancy: "4" - isNonSmoking: true - mediaList: - - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room - roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs - isMainImage: true - detectionLabelList: - - furniture - - furniture - sortOrder: 1001 - moderationLabelList: - - moderationLabelList - - moderationLabelList - propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg - - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room - roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs - isMainImage: true - detectionLabelList: - - furniture - - furniture - sortOrder: 1001 - moderationLabelList: - - moderationLabelList - - moderationLabelList - propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg - messageList: - - text: Maisonette apartment on ground floor - languageCode: en - - text: Maisonette apartment on ground floor - languageCode: en - name: Amrum - maxOccupancy: "4" - imageList: - - imageList - - imageList - - roomTypeCode: "1" - typeName: typeName - roomTypeName: roomTypeName - maxAdultOccupancy: "4" - descriptionText: descriptionText - isActive: true - amenityList: - - code: "5005" - quantity: 1 - - code: "5005" - quantity: 1 - roomId: amrum - maxChildOccupancy: "4" - isNonSmoking: true - mediaList: - - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room - roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs - isMainImage: true - detectionLabelList: - - furniture - - furniture - sortOrder: 1001 - moderationLabelList: - - moderationLabelList - - moderationLabelList - propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg - - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room - roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs - isMainImage: true - detectionLabelList: - - furniture - - furniture - sortOrder: 1001 - moderationLabelList: - - moderationLabelList - - moderationLabelList - propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg - messageList: - - text: Maisonette apartment on ground floor - languageCode: en - - text: Maisonette apartment on ground floor - languageCode: en - name: Amrum - maxOccupancy: "4" - imageList: - - imageList - - imageList - code: strandresidenz-sylt - policyList: - - cancellationPolicyList: - - cancellationPolicyList - - cancellationPolicyList - checkOutTime: 43200000 - totalGuestCount: 10 - checkInTime: 54000000 - guaranteePolicy: guaranteePolicy - taxPolicyList: - - conditionList: - - conditionList - - conditionList - chargeType: included - percent: 19 + cancellationPolicyList: + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + checkOutTime: 43200000 + totalGuestCount: 10 + checkInTime: 54000000 + guaranteePolicy: + noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + taxPolicyList: + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + prepaymentPolicy: after_reservation_is_made + name: Standard Sylt Residenz Policy + feePolicyList: + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + advanceBookingMin: 365 + advanceBookingMax: 1 + petsPolicy: + byArrangement: false + allowed: false + freeOfCharge: false + properties: + checkInTime: + description: Check-in time (unix timestamp in ms). + example: 54000000 + type: number + checkOutTime: + description: Check-out time (unix timestamp in ms). + example: 43200000 + type: number + totalGuestCount: + description: The maximum number of guests allowed. + example: 10 + type: number + cancellationPolicyList: + description: List of cancellation policies. + items: + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_policyList_inner_cancellationPolicyList_inner' + type: array + advanceBookingMin: + description: The minimum number of days in advance a booking must be made + example: 365 + type: number + advanceBookingMax: + description: The maximum number of days in advance a booking can be made + example: 1 + type: number + petsPolicy: + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_policyList_inner_petsPolicy' + prepaymentPolicy: + description: The type of the prepayment policy. + enum: + - after_cancellation_fee_begins + - after_reservation_is_made + example: after_reservation_is_made + type: string + guaranteePolicy: + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_policyList_inner_guaranteePolicy' + taxPolicyList: + description: A list of taxes and their policies. + items: + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_policyList_inner_taxPolicyList_inner' + type: array + feePolicyList: + description: A list of fees and their policies. + items: + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_policyList_inner_feePolicyList_inner' + type: array + name: + description: The name of this policy. + example: Standard Sylt Residenz Policy + type: string + required: + - advanceBookingMax + - advanceBookingMin + - cancellationPolicyList + - checkInTime + - checkOutTime + - feePolicyList + - taxPolicyList + type: object + _properties__propertyId__get_200_response_property_cancellationGracePeriod: + description: An object describing the cancellation grace periods. + example: + weeksBeforeCheckIn: 1.4658129805029452 + hoursAfterBooking: 6.027456183070403 + properties: + hoursAfterBooking: + description: The number of hours after booking that the cancellation grace + period starts. + type: number + weeksBeforeCheckIn: + description: The number of weeks before check-in that the cancellation grace + period starts. + type: number + required: + - hoursAfterBooking + - weeksBeforeCheckIn + type: object + _properties__propertyId__get_200_response_property_serviceList_inner_operationTimeList_inner: + example: + sunday: false + saturday: false + tuesday: true + start: 25200000 + wednesday: true + thursday: true + friday: true + end: 39600000 + monday: true + properties: + start: + description: The start time of operation in milliseconds. + example: 25200000 + type: number + end: + description: The end time of operation in milliseconds. + example: 39600000 + type: number + monday: + description: Indicates whether the operation is open on Monday. + example: true + type: boolean + tuesday: + description: Indicates whether the operation is open on Tuesday. + example: true + type: boolean + wednesday: + description: Indicates whether the operation is open on Wednesday. + example: true + type: boolean + thursday: + description: Indicates whether the operation is open on Thursday. + example: true + type: boolean + friday: + description: Indicates whether the operation is open on Friday. + example: true + type: boolean + saturday: + description: Indicates whether the operation is open on Saturday. + example: false + type: boolean + sunday: + description: Indicates whether the operation is open on Sunday. + example: false + type: boolean + required: + - end + - friday + - monday + - saturday + - start + - sunday + - thursday + - tuesday + - wednesday + type: object + _properties__propertyId__get_200_response_property_serviceList_inner: + description: "An object describing the service, its pricing and its availability." + example: + featureList: [] + operationTimeList: + - sunday: false + saturday: false + tuesday: true + start: 25200000 + wednesday: true + thursday: true + friday: true + end: 39600000 + monday: true + - sunday: false + saturday: false + tuesday: true + start: 25200000 + wednesday: true + thursday: true + friday: true + end: 39600000 + monday: true + code: 173 + typeList: + - 5.962133916683182 + - 5.962133916683182 + price: 19.99 + name: Breakfast served in restaurant. + exists: true + itemList: + - 5.637376656633329 + - 5.637376656633329 + included: false + currencyCode: EUR + properties: + code: + description: The code of this service

See also in + the appendix.

+ enum: + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 13 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 35 + - 36 + - 37 + - 38 + - 39 + - 40 + - 41 + - 42 + - 43 + - 44 + - 45 + - 46 + - 47 + - 48 + - 49 + - 50 + - 51 + - 52 + - 53 + - 54 + - 55 + - 56 + - 57 + - 58 + - 59 + - 60 + - 61 + - 62 + - 63 + - 64 + - 65 + - 66 + - 67 + - 68 + - 69 + - 70 + - 71 + - 72 + - 73 + - 74 + - 75 + - 76 + - 77 + - 78 + - 79 + - 80 + - 81 + - 82 + - 83 + - 84 + - 85 + - 86 + - 87 + - 88 + - 89 + - 90 + - 91 + - 92 + - 93 + - 94 + - 95 + - 96 + - 97 + - 98 + - 99 + - 100 + - 101 + - 102 + - 103 + - 104 + - 105 + - 106 + - 107 + - 108 + - 109 + - 110 + - 111 + - 112 + - 113 + - 114 + - 115 + - 116 + - 117 + - 118 + - 119 + - 120 + - 121 + - 122 + - 123 + - 124 + - 125 + - 126 + - 127 + - 128 + - 129 + - 130 + - 131 + - 132 + - 133 + - 134 + - 135 + - 136 + - 137 + - 138 + - 139 + - 140 + - 141 + - 142 + - 143 + - 144 + - 145 + - 146 + - 147 + - 148 + - 149 + - 150 + - 151 + - 152 + - 153 + - 154 + - 155 + - 156 + - 157 + - 158 + - 159 + - 160 + - 161 + - 162 + - 163 + - 164 + - 165 + - 166 + - 167 + - 168 + - 169 + - 170 + - 171 + - 172 + - 173 + - 174 + - 175 + - 176 + - 177 + - 178 + - 179 + - 180 + - 181 + - 182 + - 183 + - 184 + - 185 + - 186 + - 187 + - 188 + - 189 + - 190 + - 191 + - 192 + - 193 + - 194 + - 195 + - 196 + - 197 + - 198 + - 199 + - 200 + - 201 + - 202 + - 203 + - 204 + - 205 + - 206 + - 207 + - 208 + - 209 + - 210 + - 211 + - 212 + - 213 + - 214 + - 215 + - 216 + - 217 + - 218 + - 219 + - 220 + - 221 + - 222 + - 223 + - 224 + - 225 + - 226 + - 227 + - 228 + - 229 + - 230 + - 231 + - 232 + - 233 + - 234 + - 235 + - 236 + - 237 + - 238 + - 239 + - 240 + - 241 + - 242 + - 243 + - 244 + - 245 + - 246 + - 247 + - 248 + - 249 + - 250 + - 251 + - 252 + - 253 + - 254 + - 255 + - 256 + - 257 + - 258 + - 259 + - 260 + - 261 + - 262 + - 263 + - 264 + - 265 + - 266 + - 267 + - 268 + - 269 + - 270 + - 271 + - 272 + - 273 + - 274 + - 275 + - 276 + - 277 + - 278 + - 279 + - 280 + - 281 + - 282 + - 283 + - 284 + - 285 + - 286 + - 287 + - 288 + - 289 + - 290 + - 291 + - 292 + - 293 + - 294 + - 295 + - 296 + - 297 + - 298 + - 299 + - 300 + - 301 + - 302 + - 303 + - 304 + - 305 + - 306 + - 307 + - 308 + - 309 + - 310 + - 311 + - 312 + - 313 + - 314 + - 315 + - 316 + - 317 + - 318 + - 319 + - 320 + - 321 + - 322 + - 323 + - 324 + - 325 + - 326 + - 327 + - 328 + - 329 + - 331 + - 332 + - 333 + - 334 + - 335 + - 336 + - 337 + - 338 + - 339 + - 340 + - 341 + - 342 + - 343 + - 344 + - 345 + - 348 + - 349 + - 350 + - 351 + - 5000 + - 5001 + - 5002 + - 5003 + - 5004 + - 5005 + - 5006 + - 5007 + - 5008 + - 5009 + - 5010 + - 5011 + - 5012 + - 5013 + - 5014 + - 5015 + - 5016 + - 5017 + - 5018 + - 5020 + - 5021 + - 5022 + - 5023 + - 5024 + - 5025 + - 5026 + - 5027 + - 5028 + - 5029 + - 5030 + - 5031 + - 5032 + - 5033 + - 5034 + - 5035 + - 5036 + - 5037 + - 5039 + - 5040 + - 5041 + - 5042 + - 5043 + - 5044 + - 5045 + - 5046 + - 5047 + - 5048 + - 5049 + - 5050 + - 5051 + - 5052 + - 5053 + - 5054 + - 5055 + - 5056 + - 5057 + - 5058 + - 5059 + - 5060 + - 5061 + - 5062 + - 5063 + - 5064 + - 5065 + - 5066 + - 5067 + - 5068 + - 5069 + - 5070 + - 5071 + - 5072 + - 5073 + - 5074 + - 5075 + - 5076 + - 5077 + - 5078 + - 5079 + - 5080 + - 5081 + - 5082 + - 5083 + - 5084 + - 5085 + - 5086 + - 5087 + - 5088 + - 5089 + - 5090 + - 5091 + - 5092 + - 5093 + - 5094 + - 5095 + - 5096 + - 5097 + - 5098 + - 5099 + - 5100 + - 5101 + - 5102 + - 5103 + - 5104 + - 5105 + - 5106 + - 5107 + - 5108 + - 5109 + - 5110 + - 5111 + - 5112 + - 5113 + - 5114 + - 5115 + - 5116 + - 5117 + - 5118 + - 5119 + - 5120 + - 5121 + - 5122 + - 5123 + - 5124 + - 5125 + - 5126 + - 5127 + - 5128 + - 5129 + - 5130 + - 5131 + - 5132 + - 5133 + - 5134 + - 5135 + - 5136 + - 5137 + - 5138 + - 5139 + - 5140 + - 5141 + - 5142 + - 5143 + - 5144 + - 5145 + - 5146 + - 5147 + - 5148 + - 5149 + - 5150 + - 5151 + - 5152 + - 5153 + - 5154 + - 5156 + - 5157 + - 5158 + - 5159 + - 5160 + - 5161 + - 5162 + - 5163 + - 5164 + - 5165 + - 5166 + - 5167 + - 5168 + - 5169 + - 5170 + - 5171 + - 5172 + - 5173 + - 5174 + - 5175 + - 5176 + - 5177 + - 5178 + - 6000 + - 6001 + - 90001 + example: 173 + type: number + price: + description: The surcharge for this service. + example: 19.99 + type: number + exists: + description: Whether this service is available. + example: true + type: boolean + included: + description: Whether this service is complementary. + example: false + type: boolean + currencyCode: + description: The currency of the surcharge for this service + enum: + - AED + - ARS + - AUD + - AZN + - BGN + - BHD + - BRL + - CAD + - CHF + - CLP + - CNY + - COP + - CZK + - DKK + - EGP + - EUR + - FJD + - GBP + - GEL + - HKD + - HUF + - IDR + - ILS + - INR + - JOD + - JPY + - KRW + - KWD + - KZT + - MDL + - MXN + - MYR + - NAD + - NOK + - NZD + - OMR + - PLN + - QAR + - RON + - RUB + - SAR + - SEK + - SGD + - THB + - TRY + - TWD + - UAH + - USD + - XOF + - ZAR + example: EUR + type: string + featureList: + description: A list of features. + example: [] + items: + enum: + - a_la_carte + - buffet + - guests_only + - accepts_reservations + - outdoor_seating + type: string + type: array + typeList: + description: A list of codes describing the available breakfast type.

See + also in the appendix.

+ items: + enum: + - 5001 + - 5002 + - 5003 + - 5004 + - 5005 + - 5006 + - 5007 + - 5008 + - 5009 + - 5010 + - 5011 + - 5012 + type: number + type: array + itemList: + description: A list of codes describing the available breakfast items.

See + also in the appendix.

+ items: + enum: + - 5001 + - 5002 + - 5003 + - 5004 + - 5005 + - 5006 + - 5007 + - 5008 + - 5009 + - 5010 + - 5011 + - 5012 + - 5013 + - 5014 + - 5015 + - 5016 + - 5017 + - 5018 + - 5019 + type: number + type: array + operationTimeList: + description: "A list of operation times, including start and end times,\ + \ and the days of the week on which the operation is open." + items: + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_serviceList_inner_operationTimeList_inner' + type: array + name: + description: The name of this service. + example: Breakfast served in restaurant. + type: string + required: + - code + - currencyCode + - exists + - featureList + - included + - itemList + - name + - operationTimeList + - price + - typeList + type: object + _properties__propertyId__get_200_response_property: + description: An object containing all available base data for the requested + property. + example: + facilityInfo: + guestRoomList: + - roomTypeCode: 1 + mediaList: + - tagList: + - 3 + - 55 + roomAmenityList: + - 0.8008281904610115 + - 0.8008281904610115 + isMainImage: true + detectionLabelList: + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 + moderationLabelList: + - partial_nudity + - tobacco + propertyAmenityList: + - 1 + - 2 + url: 5e3d9d49e9480.jpg + - tagList: + - 3 + - 55 + roomAmenityList: + - 0.8008281904610115 + - 0.8008281904610115 + isMainImage: true + detectionLabelList: + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 + moderationLabelList: + - partial_nudity + - tobacco + propertyAmenityList: + - 1 + - 2 + url: 5e3d9d49e9480.jpg + isNonSmoking: false + messageList: + - languageCode: en + text: "Maisonette apartment up/attic Living room: including a spacious\ + \ leather seat, spacious dining table with chairs for 4 people, large\ + \ cable flat screen TV, DVD/BluRay player, music system with CD and\ + \ docking station, free Wi-Fi and telephone flat rate (German landline).\ + \ Kitchen: branded fitted kitchen with dishwasher, cooker with ceramic\ + \ hob, Oven, microwave, fridge/freezer, Nespresso coffee machine.Bedrooms:\ + \ One double bedroom including Treca box spring beds with fitted wardrobes\ + \ with ample storage space and with cable flat screen TV and safe.Bathroom:\ + \ including spa shower, bathtub, washbasin, underfloor heating, towel\ + \ warmer, radio, hairdryer, Cosmetic mirror, window.Balcony (south\ + \ facing position): with seating group.Other: Washer dryer, ironing\ + \ station, private parking in front of the house, bicycle storage\ + \ with charging connection for pedelecs... and fantastic location,\ + \ right at the beach crossing!Maisonette apartment up/attic living\ + \ room: including spacious leather seating, spacious dining table\ + \ with chairs for 4 people, large cable flat screen TV, DVD/Blueray\ + \ player, music system with CD and docking station, free Wi-Fi and\ + \ telephone flat rate (German landline) .Kitchen: branded fitted kitchen\ + \ with dishwasher, cooker with ceramic hob, among others, oven, microwave,\ + \ fridge/freezer, Nespresso coffee machine.Bedrooms: One double bedroom\ + \ including Treca box spring beds with fitted wardrobes with ample\ + \ storage space and with cable flat screen TV and safe.Bathroom: including\ + \ spa shower, bathtub, washbasin, underfloor heating, towel warmer,\ + \ radio, hairdryer, Vanity mirror, window.Balcony (south facing position):\ + \ with seating group.Other: washer-dryer, ironing station, private\ + \ parking in front of the house, bicycle storage with charging connection\ + \ for pedelecs." + - languageCode: da + text: "Maisonette lejlighed op/loftsrum Stue: herunder en rummelig læ\ + dersæde, rummeligt spisebord med stole til 4 personer, stort kabel-fladskæ\ + rms TV, dvd/Bluray-afspiller, musiksystem med cd og dockingstation,\ + \ gratis trådløs internetadgang og telefon fast (tysk fastnet). Kø\ + kken: mærkevarer udstyret køkken med opvaskemaskine, komfur med keramisk\ + \ komfur, Ovn, mikroovn, køleskab/fryser, Nespresso kaffemaskine.Sovevæ\ + relser: Et soveværelse med dobbeltseng herunder Treca box foråret\ + \ senge med indbyggede garderobeskabe med rigelig opbevaringsplads\ + \ og med kabel-fladskærms TV og sikker.Badeværelse: herunder spa-bruser,\ + \ badekar, håndvask, gulvvarme, håndklædevarmer, radio, hårtørrer,\ + \ Kosmetiske spejl, vindue.Balkon (sydvendt position): med siddepladser\ + \ gruppe.Andre: Vaskemaskine tørretumbler, strygestation, privat parkering\ + \ foran huset, cykelopbevaring med opladningsforbindelse for pedelecs...\ + \ og fantastisk beliggenhed, lige ved siden af stranden krydser!Maisonette\ + \ lejlighed op/loftsrum stue: herunder rummelige læder siddepladser,\ + \ rummelige spisebord med stole til 4 personer, stort kabel fladskæ\ + rms TV, DVD/Blueray afspiller, musikanlæg med cd og docking station,\ + \ gratis trådløs internetadgang og telefon fast (tysk fastnet) .Kø\ + kken: mærkevarer udstyret køkken med opvaskemaskine, komfur med keramisk\ + \ komfur, blandt andre ovn, mikroovn, køleskab/fryser, Nespresso kaffemaskine.Sovevæ\ + relser: Et dobbeltværelse herunder Treca box foråret senge med indbyggede\ + \ garderobeskabe med rigelig opbevaringsplads og med kabel fladskæ\ + rms TV og penge.Badeværelse: herunder spa bruser, badekar, håndvask,\ + \ gulvvarme, håndklædevarmer, radio, hårtørrer, Vanity spejl, vindue.Balkon\ + \ (sydvendt position): med siddepladser gruppe.Andre: vaskemaskine-tø\ + rretumbler, strygestation, privat parkering foran huset, cykel opbevaring\ + \ med opladning tilslutning til pedelecs." + - languageCode: nl + text: "Maisonnette appartement boven/zolder Woonkamer: inclusief een\ + \ ruime lederen stoel, ruime eettafel met stoelen voor 4 personen,\ + \ grote flatscreen tv met kabelzenders, dvd/Bluray-speler, muziekinstallatie\ + \ met cd en docking station, gratis Wi-Fi en vaste telefoon (vaste\ + \ lijn Duitsland). Keuken: branded ingerichte keuken met vaatwasser,\ + \ fornuis met keramische kookplaat, oven, magnetron, koelkast/vriezer,\ + \ Nespresso koffiemachine.Slaapkamers: Een tweepersoons slaapkamer\ + \ inclusief Treca boxspring bedden met ingebouwde kasten met voldoende\ + \ bergruimte en met kabel flatscreen TV en kluis.Badkamer: inclusief\ + \ spa douche, bad, wastafel, vloerverwarming, handdoekverwarmer, radio,\ + \ haardroger, cosmetische spiegel, venster.Balkon (op het zuiden gelegen):\ + \ met zitgroep.Overig: Wasdroger, strijkplank, eigen parkeerplaats\ + \ voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs...\ + \ en fantastische locatie, direct aan De oversteek van het strand!Maisonnette\ + \ appartement boven/zolderwoonkamer: inclusief ruime lederen zitplaatsen,\ + \ ruime eettafel met stoelen voor 4 personen, grote flatscreen tv\ + \ met kabelkanalen, DVD/BlueRay speler, muziekinstallatie met CD en\ + \ docking station, gratis Wi-Fi en vaste telefoon vaatwasser, fornuis\ + \ met keramische kookplaat, o.a., oven, magnetron, koelkast/vriezer,\ + \ Nespresso koffiemachine.Slaapkamers: Een tweepersoons slaapkamer\ + \ inclusief Treca boxspring bedden met ingebouwde kasten met veel\ + \ bergruimte en met kabel flatscreen TV en kluis.Badkamer: inclusief\ + \ spa douche, bad, wastafel, vloerverwarming, handdoekwarmer, radio,\ + \ haardroger, make-upspiegel, raam.Balkon (op het zuiden gelegen):\ + \ met zitgroep.Overig: wasmachine-droger, strijkplank, eigen parkeerplaats\ + \ voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs." + - languageCode: de + text: "Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a. mit grosszü\ + giger Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen für 4 Personen,\ + \ grossem Kabel-Flat-TV, DVD-/Bluray-Player, Musikanlage mit CD und\ + \ Docking-Station, kostenfreies WLan sowie Telefon-Flatrate (dt. Festnetz).Kü\ + che: Marken-Einbauküche u.a. mit Geschirrspülmaschine, Herd mit Ceranfeld,\ + \ Backofen, Mikrowelle, Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafrä\ + ume: Ein Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschrä\ + nken mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer:\ + \ u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation,\ + \ privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit mit\ + \ Aufladeanschluß für Pedelecs ...... und traumhafte Lage, direkt\ + \ am Strandübergang!Maisonettewohnung Ober-/DachgeschoßWohnzimmer:\ + \ u.a. mit grosszügiger Leder-Sitzguppe, grosszügigem Eßtisch mit\ + \ Stühlen für 4 Personen, grossem Kabel-Flat-TV, DVD-/Blueray-Player,\ + \ Musikanlage mit CD und Docking-Station, kostenfreies WLan sowie\ + \ Telefon-Flatrate (dt. Festnetz).Küche: Marken-Einbauküche u.a. mit\ + \ Geschirrspülmaschine, Herd mit Ceranfeld, Backofen, Mikrowelle,\ + \ Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafräume:\ + \ Ein Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschrä\ + nken mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer:\ + \ u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation,\ + \ privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit mit\ + \ Aufladeanschluß für Pedelecs." + name: Amrum + maxAdultOccupancy: 2 + maxOccupancy: 4 + isActive: true + amenityList: + - code: 5005 + quantity: 1 + - code: 13 + quantity: 1 + roomId: amrum + maxChildOccupancy: 4 + - roomTypeCode: 1 + mediaList: + - tagList: + - 3 + - 55 + roomAmenityList: + - 0.8008281904610115 + - 0.8008281904610115 + isMainImage: true + detectionLabelList: + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 + moderationLabelList: + - partial_nudity + - tobacco + propertyAmenityList: + - 1 + - 2 + url: 5e3d9d49e9480.jpg + - tagList: + - 3 + - 55 + roomAmenityList: + - 0.8008281904610115 + - 0.8008281904610115 + isMainImage: true + detectionLabelList: + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 + moderationLabelList: + - partial_nudity + - tobacco + propertyAmenityList: + - 1 + - 2 + url: 5e3d9d49e9480.jpg + isNonSmoking: false + messageList: + - languageCode: en + text: "Maisonette apartment up/attic Living room: including a spacious\ + \ leather seat, spacious dining table with chairs for 4 people, large\ + \ cable flat screen TV, DVD/BluRay player, music system with CD and\ + \ docking station, free Wi-Fi and telephone flat rate (German landline).\ + \ Kitchen: branded fitted kitchen with dishwasher, cooker with ceramic\ + \ hob, Oven, microwave, fridge/freezer, Nespresso coffee machine.Bedrooms:\ + \ One double bedroom including Treca box spring beds with fitted wardrobes\ + \ with ample storage space and with cable flat screen TV and safe.Bathroom:\ + \ including spa shower, bathtub, washbasin, underfloor heating, towel\ + \ warmer, radio, hairdryer, Cosmetic mirror, window.Balcony (south\ + \ facing position): with seating group.Other: Washer dryer, ironing\ + \ station, private parking in front of the house, bicycle storage\ + \ with charging connection for pedelecs... and fantastic location,\ + \ right at the beach crossing!Maisonette apartment up/attic living\ + \ room: including spacious leather seating, spacious dining table\ + \ with chairs for 4 people, large cable flat screen TV, DVD/Blueray\ + \ player, music system with CD and docking station, free Wi-Fi and\ + \ telephone flat rate (German landline) .Kitchen: branded fitted kitchen\ + \ with dishwasher, cooker with ceramic hob, among others, oven, microwave,\ + \ fridge/freezer, Nespresso coffee machine.Bedrooms: One double bedroom\ + \ including Treca box spring beds with fitted wardrobes with ample\ + \ storage space and with cable flat screen TV and safe.Bathroom: including\ + \ spa shower, bathtub, washbasin, underfloor heating, towel warmer,\ + \ radio, hairdryer, Vanity mirror, window.Balcony (south facing position):\ + \ with seating group.Other: washer-dryer, ironing station, private\ + \ parking in front of the house, bicycle storage with charging connection\ + \ for pedelecs." + - languageCode: da + text: "Maisonette lejlighed op/loftsrum Stue: herunder en rummelig læ\ + dersæde, rummeligt spisebord med stole til 4 personer, stort kabel-fladskæ\ + rms TV, dvd/Bluray-afspiller, musiksystem med cd og dockingstation,\ + \ gratis trådløs internetadgang og telefon fast (tysk fastnet). Kø\ + kken: mærkevarer udstyret køkken med opvaskemaskine, komfur med keramisk\ + \ komfur, Ovn, mikroovn, køleskab/fryser, Nespresso kaffemaskine.Sovevæ\ + relser: Et soveværelse med dobbeltseng herunder Treca box foråret\ + \ senge med indbyggede garderobeskabe med rigelig opbevaringsplads\ + \ og med kabel-fladskærms TV og sikker.Badeværelse: herunder spa-bruser,\ + \ badekar, håndvask, gulvvarme, håndklædevarmer, radio, hårtørrer,\ + \ Kosmetiske spejl, vindue.Balkon (sydvendt position): med siddepladser\ + \ gruppe.Andre: Vaskemaskine tørretumbler, strygestation, privat parkering\ + \ foran huset, cykelopbevaring med opladningsforbindelse for pedelecs...\ + \ og fantastisk beliggenhed, lige ved siden af stranden krydser!Maisonette\ + \ lejlighed op/loftsrum stue: herunder rummelige læder siddepladser,\ + \ rummelige spisebord med stole til 4 personer, stort kabel fladskæ\ + rms TV, DVD/Blueray afspiller, musikanlæg med cd og docking station,\ + \ gratis trådløs internetadgang og telefon fast (tysk fastnet) .Kø\ + kken: mærkevarer udstyret køkken med opvaskemaskine, komfur med keramisk\ + \ komfur, blandt andre ovn, mikroovn, køleskab/fryser, Nespresso kaffemaskine.Sovevæ\ + relser: Et dobbeltværelse herunder Treca box foråret senge med indbyggede\ + \ garderobeskabe med rigelig opbevaringsplads og med kabel fladskæ\ + rms TV og penge.Badeværelse: herunder spa bruser, badekar, håndvask,\ + \ gulvvarme, håndklædevarmer, radio, hårtørrer, Vanity spejl, vindue.Balkon\ + \ (sydvendt position): med siddepladser gruppe.Andre: vaskemaskine-tø\ + rretumbler, strygestation, privat parkering foran huset, cykel opbevaring\ + \ med opladning tilslutning til pedelecs." + - languageCode: nl + text: "Maisonnette appartement boven/zolder Woonkamer: inclusief een\ + \ ruime lederen stoel, ruime eettafel met stoelen voor 4 personen,\ + \ grote flatscreen tv met kabelzenders, dvd/Bluray-speler, muziekinstallatie\ + \ met cd en docking station, gratis Wi-Fi en vaste telefoon (vaste\ + \ lijn Duitsland). Keuken: branded ingerichte keuken met vaatwasser,\ + \ fornuis met keramische kookplaat, oven, magnetron, koelkast/vriezer,\ + \ Nespresso koffiemachine.Slaapkamers: Een tweepersoons slaapkamer\ + \ inclusief Treca boxspring bedden met ingebouwde kasten met voldoende\ + \ bergruimte en met kabel flatscreen TV en kluis.Badkamer: inclusief\ + \ spa douche, bad, wastafel, vloerverwarming, handdoekverwarmer, radio,\ + \ haardroger, cosmetische spiegel, venster.Balkon (op het zuiden gelegen):\ + \ met zitgroep.Overig: Wasdroger, strijkplank, eigen parkeerplaats\ + \ voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs...\ + \ en fantastische locatie, direct aan De oversteek van het strand!Maisonnette\ + \ appartement boven/zolderwoonkamer: inclusief ruime lederen zitplaatsen,\ + \ ruime eettafel met stoelen voor 4 personen, grote flatscreen tv\ + \ met kabelkanalen, DVD/BlueRay speler, muziekinstallatie met CD en\ + \ docking station, gratis Wi-Fi en vaste telefoon vaatwasser, fornuis\ + \ met keramische kookplaat, o.a., oven, magnetron, koelkast/vriezer,\ + \ Nespresso koffiemachine.Slaapkamers: Een tweepersoons slaapkamer\ + \ inclusief Treca boxspring bedden met ingebouwde kasten met veel\ + \ bergruimte en met kabel flatscreen TV en kluis.Badkamer: inclusief\ + \ spa douche, bad, wastafel, vloerverwarming, handdoekwarmer, radio,\ + \ haardroger, make-upspiegel, raam.Balkon (op het zuiden gelegen):\ + \ met zitgroep.Overig: wasmachine-droger, strijkplank, eigen parkeerplaats\ + \ voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs." + - languageCode: de + text: "Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a. mit grosszü\ + giger Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen für 4 Personen,\ + \ grossem Kabel-Flat-TV, DVD-/Bluray-Player, Musikanlage mit CD und\ + \ Docking-Station, kostenfreies WLan sowie Telefon-Flatrate (dt. Festnetz).Kü\ + che: Marken-Einbauküche u.a. mit Geschirrspülmaschine, Herd mit Ceranfeld,\ + \ Backofen, Mikrowelle, Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafrä\ + ume: Ein Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschrä\ + nken mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer:\ + \ u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation,\ + \ privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit mit\ + \ Aufladeanschluß für Pedelecs ...... und traumhafte Lage, direkt\ + \ am Strandübergang!Maisonettewohnung Ober-/DachgeschoßWohnzimmer:\ + \ u.a. mit grosszügiger Leder-Sitzguppe, grosszügigem Eßtisch mit\ + \ Stühlen für 4 Personen, grossem Kabel-Flat-TV, DVD-/Blueray-Player,\ + \ Musikanlage mit CD und Docking-Station, kostenfreies WLan sowie\ + \ Telefon-Flatrate (dt. Festnetz).Küche: Marken-Einbauküche u.a. mit\ + \ Geschirrspülmaschine, Herd mit Ceranfeld, Backofen, Mikrowelle,\ + \ Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafräume:\ + \ Ein Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschrä\ + nken mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer:\ + \ u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation,\ + \ privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit mit\ + \ Aufladeanschluß für Pedelecs." + name: Amrum + maxAdultOccupancy: 2 + maxOccupancy: 4 + isActive: true + amenityList: + - code: 5005 + quantity: 1 + - code: 13 + quantity: 1 + roomId: amrum + maxChildOccupancy: 4 + code: strandresidenz-sylt + policyList: + - cancellationPolicyList: + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + checkOutTime: 43200000 + totalGuestCount: 10 + checkInTime: 54000000 + guaranteePolicy: + noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + taxPolicyList: + - conditionList: [] + chargeType: included + percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 prepaymentPolicy: after_reservation_is_made + name: Standard Sylt Residenz Policy feePolicyList: - - feePolicyList - - feePolicyList - advanceBookingMin: 34560000 - advanceBookingMax: 0 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + advanceBookingMin: 365 + advanceBookingMax: 1 petsPolicy: - byArrangement: true - allowed: true - freeOfCharge: true + byArrangement: false + allowed: false + freeOfCharge: false - cancellationPolicyList: - - cancellationPolicyList - - cancellationPolicyList + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 checkOutTime: 43200000 totalGuestCount: 10 checkInTime: 54000000 - guaranteePolicy: guaranteePolicy + guaranteePolicy: + noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 taxPolicyList: - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 prepaymentPolicy: after_reservation_is_made + name: Standard Sylt Residenz Policy feePolicyList: - - feePolicyList - - feePolicyList - advanceBookingMin: 34560000 - advanceBookingMax: 0 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + advanceBookingMin: 365 + advanceBookingMax: 1 petsPolicy: - byArrangement: true - allowed: true - freeOfCharge: true + byArrangement: false + allowed: false + freeOfCharge: false published: true guestInfo: guestNameListRequired: true @@ -2028,115 +8609,132 @@ components: uri: strandresidenz-sylt propertyInfo: messageList: - - text: More sea does not work! - languageCode: en - - text: More sea does not work! - languageCode: en + - languageCode: en + text: "More sea does not work! In a unique location just behind the dunes,\ + \ less than 100 steps from the beach and the spa promenade, in a prime\ + \ location on the beach “Nordhedig”, you can enjoy your stay in a small,\ + \ new 5-star luxury complex (DTV classification) with a total of 4 separate\ + \ apartments for 2-4 people. The interior has a modern rural style that\ + \ offers all the amenities. You can find films about the property and\ + \ individual apartments on our website. " + - languageCode: da + text: "Mere hav virker ikke! I en unik beliggenhed lige bag klitterne,\ + \ mindre end 100 skridt fra stranden og spa-promenaden, i en førsteklasses\ + \ beliggenhed på stranden „Nordhedig“, kan du nyde dit ophold i et lille,\ + \ nyt 5-stjernet luksuskompleks (DTV klassifikation) med i alt 4 separate\ + \ lejligheder til 2-4 personer. Interiøret har en moderne landlig stil,\ + \ der tilbyder alle bekvemmeligheder. Du kan finde film om ejendommen\ + \ og individuelle lejligheder på vores hjemmeside. " + - languageCode: nl + text: "Meer zee werkt niet! Op een unieke locatie net achter de duinen,\ + \ op minder dan 100 stappen van het strand en de spa-promenade, op een\ + \ toplocatie aan het strand „Nordhedig”, kunt u genieten van uw verblijf\ + \ in een klein, nieuw 5-sterren luxe complex (DTV classificatie) met\ + \ in totaal 4 aparte appartementen voor 2-4 personen. Het interieur\ + \ heeft een moderne landelijke stijl die alle voorzieningen biedt. U\ + \ kunt films over het pand en de individuele appartementen vinden op\ + \ onze website. " + - languageCode: de + text: "Mehr Meer geht nicht! In einer einzigartigen Lage direkt hinter\ + \ den Dünen, weniger als 100 Schritte vom Strand und der Kurpromenade\ + \ entfernt, in bester Lage am Strand „Nordhedig“, können Sie Ihren Aufenthalt\ + \ in einem kleinen, neuen 5-Sterne-Luxuskomplex (DTV-Klassifizierung)\ + \ mit insgesamt 4 separaten Apartments für 2-4 Personen genießen. Das\ + \ Interieur hat einen modernen ländlichen Stil, der alle Annehmlichkeiten\ + \ bietet. Filme über das Anwesen und einzelne Apartments finden Sie\ + \ auf unserer Website. " unitCount: 4 categoryList: - - code: 34 - name: Vacation home - exists: true - - code: 34 - name: Vacation home - exists: true + - 1 + - 14 + - 42 location: - latitude: 54.91574091463751 - longitude: 8.30486146909412 + lng: 8.304857 + lat: 54.9157118 languageList: - de - - de + - en-gb acceptedPaymentList: - code: eccard - name: EC-card type: debitcard - code: eccard - name: EC-card type: debitcard geo: de: - country: Deutschland - formatted_address: Nordhedig 20 25980 Sylt Deutschland - locality: Sylt - sublocality: Westerland - language: de - establishment: Sylt - country_code: DE - sublocality_level_1: Westerland - route: Nordhedig - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "20" location: - lng: 8.304857 lat: 54.9157118 - state_code: SH - postal_code: "25980" - natural_feature: Sylt + lng: 8.304857 + formatted_address: "Nordhedig 20, 25980 Sylt, Deutschland" place_id: ChIJVaxqTevetEcRyfs8PGHK6mw - en: - country: Germany - formatted_address: Nordhedig 20 25980 Sylt Germany - locality: Sylt + street_number: "20" + route: Nordhedig sublocality: Westerland - language: en - establishment: Sylt - country_code: DE sublocality_level_1: Westerland - route: Nordhedig + locality: Sylt administrative_area_level_3: Nordfriesland administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 state_code: SH + country: Deutschland + country_code: DE postal_code: "25980" - natural_feature: Sylt + language: de + en: + location: + lat: 54.9157118 + lng: 8.304857 + formatted_address: "Nordhedig 20, 25980 Sylt, Germany" place_id: ChIJVaxqTevetEcRyfs8PGHK6mw - da: - country: Tyskland - formatted_address: Nordhedig 20 25980 Sylt Tyskland - locality: Sylt + street_number: "20" + route: Nordhedig sublocality: Westerland - language: da - establishment: Sild - country_code: DE sublocality_level_1: Westerland - route: Nordhedig + locality: Sylt administrative_area_level_3: Nordfriesland administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 state_code: SH + country: Germany + country_code: DE postal_code: "25980" - natural_feature: Sild + language: en + da: + location: + lat: 54.9157118 + lng: 8.304857 + formatted_address: "Nordhedig 20, 25980 Sylt, Tyskland" place_id: ChIJVaxqTevetEcRyfs8PGHK6mw - nl: - country: Duitsland - formatted_address: Nordhedig 20 25980 Sylt Duitsland - locality: Sylt + street_number: "20" + route: Nordhedig sublocality: Westerland - language: nl - establishment: Sylt - country_code: DE sublocality_level_1: Westerland - route: Nordhedig + locality: Sylt administrative_area_level_3: Nordfriesland administrative_area_level_1: Schleswig-Holstein - street_number: "20" + state_code: SH + country: Tyskland + country_code: DE + postal_code: "25980" + language: da + nl: location: - lng: 8.304857 lat: 54.9157118 + lng: 8.304857 + formatted_address: "Nordhedig 20, 25980 Sylt, Duitsland" + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + street_number: "20" + route: Nordhedig + sublocality: Westerland + sublocality_level_1: Westerland + locality: Sylt + administrative_area_level_3: Nordfriesland + administrative_area_level_1: Schleswig-Holstein state_code: SH + country: Duitsland + country_code: DE postal_code: "25980" - natural_feature: Sylt - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + language: nl cancellationGracePeriod: - weeksBeforeCheckIn: 0 - hoursAfterBooking: 24 + weeksBeforeCheckIn: 1.4658129805029452 + hoursAfterBooking: 6.027456183070403 recordModified: role: admin time: 1652091332815 @@ -2173,908 +8771,1336 @@ components: addressLine: Nordhedig 20 mediaList: - tagList: - - code: 3 - name: Property building - - code: 3 - name: Property building + - 3 + - 55 roomAmenityList: - - roomAmenityList - - roomAmenityList + - 0.8008281904610115 + - 0.8008281904610115 isMainImage: true detectionLabelList: - - roof - - roof + - room + - indoors + - kitchen + - interior_design sortOrder: 1000 moderationLabelList: - - moderationLabelList - - moderationLabelList + - partial_nudity + - tobacco propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: obj_1280x960_54620_001.jpg + - 1 + - 2 + url: 5e3d9d49e9480.jpg - tagList: - - code: 3 - name: Property building - - code: 3 - name: Property building + - 3 + - 55 roomAmenityList: - - roomAmenityList - - roomAmenityList + - 0.8008281904610115 + - 0.8008281904610115 isMainImage: true detectionLabelList: - - roof - - roof + - room + - indoors + - kitchen + - interior_design sortOrder: 1000 moderationLabelList: - - moderationLabelList - - moderationLabelList + - partial_nudity + - tobacco propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: obj_1280x960_54620_001.jpg + - 1 + - 2 + url: 5e3d9d49e9480.jpg name: Strandresidenz Sylt serviceList: - - featureList: - - featureList - - featureList + - featureList: [] operationTimeList: - - operationTimeList - - operationTimeList - code: 5015 + - sunday: false + saturday: false + tuesday: true + start: 25200000 + wednesday: true + thursday: true + friday: true + end: 39600000 + monday: true + - sunday: false + saturday: false + tuesday: true + start: 25200000 + wednesday: true + thursday: true + friday: true + end: 39600000 + monday: true + code: 173 typeList: - - typeList - - typeList - price: 0 - name: Beach + - 5.962133916683182 + - 5.962133916683182 + price: 19.99 + name: Breakfast served in restaurant. exists: true itemList: - - itemList - - itemList - included: true + - 5.637376656633329 + - 5.637376656633329 + included: false currencyCode: EUR - - featureList: - - featureList - - featureList + - featureList: [] operationTimeList: - - operationTimeList - - operationTimeList - code: 5015 + - sunday: false + saturday: false + tuesday: true + start: 25200000 + wednesday: true + thursday: true + friday: true + end: 39600000 + monday: true + - sunday: false + saturday: false + tuesday: true + start: 25200000 + wednesday: true + thursday: true + friday: true + end: 39600000 + monday: true + code: 173 typeList: - - typeList - - typeList - price: 0 - name: Beach + - 5.962133916683182 + - 5.962133916683182 + price: 19.99 + name: Breakfast served in restaurant. exists: true itemList: - - itemList - - itemList - included: true + - 5.637376656633329 + - 5.637376656633329 + included: false currencyCode: EUR recordCreated: role: admin - time: 1609411613660 + time: 1652091332815 user: microsoft:user:2f1d8a1b-bae8-4333-8f0f-7ad28af03e3f tenant: dmo-demo - transaction: - method: MANDATORY_BOOKING - externalList: - - text: https://www.booking.com/ - languageCode: de - - text: https://www.booking.com/ - languageCode: de - contactTypeList: - - reservations - - reservations awardList: - provider: star-rating - rating: 0 + rating: 5 - provider: star-rating - rating: 0 - refinementDate: 1643706934194 + rating: 5 properties: code: + description: The properties unique identifier. example: strandresidenz-sylt type: string name: + description: The properties name. example: Strandresidenz Sylt type: string recordCreated: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_recordCreated' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_recordCreated' recordModified: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_recordModified' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_recordModified' propertyInfo: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_propertyInfo' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_propertyInfo' guestInfo: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_guestInfo' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_guestInfo' awardList: + description: A list of the ratings available for this property. items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_awardList_inner' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_awardList_inner' type: array contactList: + description: A contact with a profile type and a list of addresses items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_contactList_inner' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_contactList_inner' type: array facilityInfo: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_facilityInfo' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_facilityInfo' mediaList: + description: A list of media objects for the property. items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_mediaList_inner' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_facilityInfo_guestRoomList_inner_mediaList_inner' type: array geo: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_geo' - refinementDate: - example: 1643706934194 - type: number + additionalProperties: + $ref: '#/components/schemas/Available_Properties_inner_1_geo' + description: An object containing language codes as keys and objects describing + the properties geographical location as values. + example: + de: + location: + lat: 54.9157118 + lng: 8.304857 + formatted_address: "Nordhedig 20, 25980 Sylt, Deutschland" + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + street_number: "20" + route: Nordhedig + sublocality: Westerland + sublocality_level_1: Westerland + locality: Sylt + administrative_area_level_3: Nordfriesland + administrative_area_level_1: Schleswig-Holstein + state_code: SH + country: Deutschland + country_code: DE + postal_code: "25980" + language: de + en: + location: + lat: 54.9157118 + lng: 8.304857 + formatted_address: "Nordhedig 20, 25980 Sylt, Germany" + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + street_number: "20" + route: Nordhedig + sublocality: Westerland + sublocality_level_1: Westerland + locality: Sylt + administrative_area_level_3: Nordfriesland + administrative_area_level_1: Schleswig-Holstein + state_code: SH + country: Germany + country_code: DE + postal_code: "25980" + language: en + da: + location: + lat: 54.9157118 + lng: 8.304857 + formatted_address: "Nordhedig 20, 25980 Sylt, Tyskland" + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + street_number: "20" + route: Nordhedig + sublocality: Westerland + sublocality_level_1: Westerland + locality: Sylt + administrative_area_level_3: Nordfriesland + administrative_area_level_1: Schleswig-Holstein + state_code: SH + country: Tyskland + country_code: DE + postal_code: "25980" + language: da + nl: + location: + lat: 54.9157118 + lng: 8.304857 + formatted_address: "Nordhedig 20, 25980 Sylt, Duitsland" + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + street_number: "20" + route: Nordhedig + sublocality: Westerland + sublocality_level_1: Westerland + locality: Sylt + administrative_area_level_3: Nordfriesland + administrative_area_level_1: Schleswig-Holstein + state_code: SH + country: Duitsland + country_code: DE + postal_code: "25980" + language: nl + type: object published: + description: Indicates whether the policy has been published or not. + example: true type: boolean policyList: + description: A list of policies associated with the property. items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_policyList_inner' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_policyList_inner' type: array uri: + description: A unique identifier for the accommodation. example: strandresidenz-sylt type: string - transaction: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_transaction' cancellationGracePeriod: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_cancellationGracePeriod' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_cancellationGracePeriod' serviceList: + description: "A list of objects each describing an available service, its\ + \ pricing and its availability." items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_serviceList_inner' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_serviceList_inner' type: array + required: + - awardList + - code + - contactList + - mediaList + - name + - policyList + - propertyInfo + - published + - recordCreated + - recordModified + - serviceList type: object - _v1_property_get_post_200_response_productList_inner_mealPlanList_inner: - example: - code: 14 - name: Room only - properties: - code: - example: 14 - type: number - name: - example: Room only - type: string - type: object - _v1_property_get_post_200_response_productList_inner_roomTypeList_inner: - example: - typeCode: amrum - properties: - typeCode: - example: amrum - type: string - type: object - _v1_property_get_post_200_response_productList_inner_ratePlanList_inner_pricingList_inner_priceList: - example: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 - properties: - "4": - example: 516 - type: number - "5": - example: 645 - type: number - "6": - example: 774 - type: number - "7": - example: 903 - type: number - "8": - example: 1032 - type: number - "9": - example: 1161 - type: number - "10": - example: 1290 - type: number - "11": - example: 1419 - type: number - "12": - example: 1548 - type: number - "13": - example: 1677 - type: number - "14": - example: 1806 - type: number - "15": - example: 1935 - type: number - "16": - example: 2064 - type: number - "17": - example: 2193 - type: number - "18": - example: 2322 - type: number - "19": - example: 2451 - type: number - "20": - example: 2580 - type: number - "21": - example: 2709 - type: number - "22": - example: 2838 - type: number - "23": - example: 2967 - type: number - type: object - _v1_property_get_post_200_response_productList_inner_ratePlanList_inner_pricingList_inner: + _properties__propertyId__get_200_response_productList_inner_ratePlanList_inner_pricingList_inner: example: - dateTime: 1614556800000 + dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 properties: dateTime: - example: 1614556800000 + description: The timestamp of the pricing information. + example: 1662595200000 type: number occupancy: + description: The number of occupants for which the pricing applies. example: 1 type: number priceList: - $ref: '#/components/schemas/_v1_property_get_post_200_response_productList_inner_ratePlanList_inner_pricingList_inner_priceList' + additionalProperties: + type: number + description: A mapping of number of days of stay to prices. + example: + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + type: object currencyCode: + description: The currency code for the prices. example: EUR type: string + required: + - currencyCode + - dateTime + - occupancy + - priceList type: object - _v1_property_get_post_200_response_productList_inner_ratePlanList_inner: + _properties__propertyId__get_200_response_productList_inner_ratePlanList_inner: example: - code: standard-amrum - name: Standard Amrum - active: true - propertyId: strandresidenz-sylt + code: standard-8436 + name: Standard 8436 + active: false pricingList: - - dateTime: 1614556800000 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 - - dateTime: 1614556800000 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 properties: active: + description: Whether the rate plan is active. + example: false type: boolean name: - example: Standard Amrum + description: The name of the rate plan. + example: Standard 8436 type: string code: - example: standard-amrum - type: string - propertyId: - example: strandresidenz-sylt + description: The code identifying the rate plan. + example: standard-8436 type: string pricingList: items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_productList_inner_ratePlanList_inner_pricingList_inner' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_productList_inner_ratePlanList_inner_pricingList_inner' type: array + required: + - active + - code + - name + - pricingList type: object - _v1_property_get_post_200_response_productList_inner_policyInfo_cancellationPolicyList_inner: - example: - code: 152 - noShowPolicy: default - nightsAfterReservation: 0 - nightsAfterDeadline: 0 - percentAfterDeadline: 0 - percentAfterReservation: 0 - deadlineDays: 0 - deadlineHours: 0 - properties: - code: - example: 152 - type: number - percentAfterReservation: - example: 0 - type: number - nightsAfterReservation: - example: 0 - type: number - deadlineDays: - example: 0 - type: number - deadlineHours: - example: 0 - type: number - percentAfterDeadline: - example: 0 - type: number - nightsAfterDeadline: - example: 0 - type: number - noShowPolicy: - example: default - type: string - type: object - _v1_property_get_post_200_response_productList_inner_policyInfo: + _properties__propertyId__get_200_response_productList_inner_policyInfo: + description: The policy info for this product. example: cancellationPolicyList: - - code: 152 - noShowPolicy: default + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + - noShowPolicy: Default nightsAfterReservation: 0 nightsAfterDeadline: 0 percentAfterDeadline: 0 percentAfterReservation: 0 deadlineDays: 0 deadlineHours: 0 - - code: 152 - noShowPolicy: default + checkOutTime: 43200000 + totalGuestCount: 10 + checkInTime: 54000000 + guaranteePolicy: + noShowPolicy: Default nightsAfterReservation: 0 nightsAfterDeadline: 0 percentAfterDeadline: 0 percentAfterReservation: 0 deadlineDays: 0 deadlineHours: 0 - checkOutTime: 39600000 - totalGuestCount: 0 - checkInTime: 50400000 - guaranteePolicy: guaranteePolicy taxPolicyList: - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 - prepaymentPolicy: prepaymentPolicy - name: Standard Amrum Policy + prepaymentPolicy: after_reservation_is_made + name: Standard Sylt Residenz Policy feePolicyList: - - feePolicyList - - feePolicyList - advanceBookingMin: 34560000 - advanceBookingMax: 0 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + advanceBookingMin: 365 + advanceBookingMax: 1 petsPolicy: - byArrangement: true - allowed: true - freeOfCharge: true + byArrangement: false + allowed: false + freeOfCharge: false properties: checkInTime: - example: 50400000 + description: Check-in time (unix timestamp in ms). + example: 54000000 type: number checkOutTime: - example: 39600000 + description: Check-out time (unix timestamp in ms). + example: 43200000 type: number totalGuestCount: - example: 0 + description: The maximum number of guests allowed. + example: 10 type: number cancellationPolicyList: + description: List of cancellation policies. items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_productList_inner_policyInfo_cancellationPolicyList_inner' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_policyList_inner_cancellationPolicyList_inner' type: array advanceBookingMin: - example: 34560000 + description: The minimum number of days in advance a booking must be made + example: 365 type: number advanceBookingMax: - example: 0 + description: The maximum number of days in advance a booking can be made + example: 1 type: number petsPolicy: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_policyList_inner_petsPolicy' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_policyList_inner_petsPolicy' prepaymentPolicy: + description: The type of the prepayment policy. + enum: + - after_cancellation_fee_begins + - after_reservation_is_made + example: after_reservation_is_made type: string guaranteePolicy: - format: nullable - type: string + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_policyList_inner_guaranteePolicy' taxPolicyList: + description: A list of taxes and their policies. items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property_policyList_inner_taxPolicyList_inner' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_policyList_inner_taxPolicyList_inner' type: array feePolicyList: + description: A list of fees and their policies. items: - type: string + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property_policyList_inner_feePolicyList_inner' type: array name: - example: Standard Amrum Policy - type: string + description: The name of this policy. + example: Standard Sylt Residenz Policy + type: string + required: + - advanceBookingMax + - advanceBookingMin + - cancellationPolicyList + - checkInTime + - checkOutTime + - feePolicyList + - taxPolicyList type: object - _v1_property_get_post_200_response_productList_inner: + _properties__propertyId__get_200_response_productList_inner: + description: A list of available products for this property. example: roomTypeList: - - typeCode: amrum - - typeCode: amrum + - amrum + - amrum isOBPPricing: true ratePlanList: - - code: standard-amrum - name: Standard Amrum - active: true - propertyId: strandresidenz-sylt + - code: standard-8436 + name: Standard 8436 + active: false pricingList: - - dateTime: 1614556800000 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 - - dateTime: 1614556800000 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 - - code: standard-amrum - name: Standard Amrum - active: true - propertyId: strandresidenz-sylt + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - code: standard-8436 + name: Standard 8436 + active: false pricingList: - - dateTime: 1614556800000 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 - - dateTime: 1614556800000 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 policyInfo: cancellationPolicyList: - - code: 152 - noShowPolicy: default + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + - noShowPolicy: Default nightsAfterReservation: 0 nightsAfterDeadline: 0 percentAfterDeadline: 0 percentAfterReservation: 0 deadlineDays: 0 deadlineHours: 0 - - code: 152 - noShowPolicy: default + checkOutTime: 43200000 + totalGuestCount: 10 + checkInTime: 54000000 + guaranteePolicy: + noShowPolicy: Default nightsAfterReservation: 0 nightsAfterDeadline: 0 percentAfterDeadline: 0 percentAfterReservation: 0 deadlineDays: 0 deadlineHours: 0 - checkOutTime: 39600000 - totalGuestCount: 0 - checkInTime: 50400000 - guaranteePolicy: guaranteePolicy taxPolicyList: - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 - prepaymentPolicy: prepaymentPolicy - name: Standard Amrum Policy + prepaymentPolicy: after_reservation_is_made + name: Standard Sylt Residenz Policy feePolicyList: - - feePolicyList - - feePolicyList - advanceBookingMin: 34560000 - advanceBookingMax: 0 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + advanceBookingMin: 365 + advanceBookingMax: 1 petsPolicy: - byArrangement: true - allowed: true - freeOfCharge: true + byArrangement: false + allowed: false + freeOfCharge: false isLOSPricing: true name: Standard Amrum propertyId: strandresidenz-sylt mealPlanList: - - code: 14 - name: Room only - - code: 14 - name: Room only + - 14 + - 14 properties: propertyId: + description: The ID of the property. example: strandresidenz-sylt type: string name: + description: The name of the product. example: Standard Amrum type: string mealPlanList: + description: A list of meal type codes included in this product. items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_productList_inner_mealPlanList_inner' + description: The code of the meal plan.

See also in + the appendix.

+ enum: + - 0 + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 90001 + example: 14 + type: number type: array roomTypeList: + description: An array of strings describing the room types included in this + product. items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_productList_inner_roomTypeList_inner' + description: The type code of the room. + example: amrum + type: string type: array isLOSPricing: + description: Whether this product is length of stay pricing. type: boolean isOBPPricing: + description: Whether this product is occupancy based pricing. type: boolean ratePlanList: + description: The rate plans for this product. items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_productList_inner_ratePlanList_inner' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_productList_inner_ratePlanList_inner' type: array policyInfo: - $ref: '#/components/schemas/_v1_property_get_post_200_response_productList_inner_policyInfo' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_productList_inner_policyInfo' + required: + - mealPlanList + - name + - propertyId + - ratePlanList + - roomTypeList type: object - _v1_property_get_post_200_response: + _properties__propertyId__get_200_response: example: - versionId: versionId property: facilityInfo: guestRoomList: - - roomTypeCode: "1" - typeName: typeName - roomTypeName: roomTypeName - maxAdultOccupancy: "4" - descriptionText: descriptionText - isActive: true - amenityList: - - code: "5005" - quantity: 1 - - code: "5005" - quantity: 1 - roomId: amrum - maxChildOccupancy: "4" - isNonSmoking: true + - roomTypeCode: 1 mediaList: - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room + - 3 + - 55 roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs + - 0.8008281904610115 + - 0.8008281904610115 isMainImage: true detectionLabelList: - - furniture - - furniture - sortOrder: 1001 + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 moderationLabelList: - - moderationLabelList - - moderationLabelList + - partial_nudity + - tobacco propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg + - 1 + - 2 + url: 5e3d9d49e9480.jpg - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room + - 3 + - 55 roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs + - 0.8008281904610115 + - 0.8008281904610115 isMainImage: true detectionLabelList: - - furniture - - furniture - sortOrder: 1001 + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 moderationLabelList: - - moderationLabelList - - moderationLabelList + - partial_nudity + - tobacco propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg + - 1 + - 2 + url: 5e3d9d49e9480.jpg + isNonSmoking: false messageList: - - text: Maisonette apartment on ground floor - languageCode: en - - text: Maisonette apartment on ground floor - languageCode: en + - languageCode: en + text: "Maisonette apartment up/attic Living room: including a spacious\ + \ leather seat, spacious dining table with chairs for 4 people,\ + \ large cable flat screen TV, DVD/BluRay player, music system with\ + \ CD and docking station, free Wi-Fi and telephone flat rate (German\ + \ landline). Kitchen: branded fitted kitchen with dishwasher, cooker\ + \ with ceramic hob, Oven, microwave, fridge/freezer, Nespresso coffee\ + \ machine.Bedrooms: One double bedroom including Treca box spring\ + \ beds with fitted wardrobes with ample storage space and with cable\ + \ flat screen TV and safe.Bathroom: including spa shower, bathtub,\ + \ washbasin, underfloor heating, towel warmer, radio, hairdryer,\ + \ Cosmetic mirror, window.Balcony (south facing position): with\ + \ seating group.Other: Washer dryer, ironing station, private parking\ + \ in front of the house, bicycle storage with charging connection\ + \ for pedelecs... and fantastic location, right at the beach crossing!Maisonette\ + \ apartment up/attic living room: including spacious leather seating,\ + \ spacious dining table with chairs for 4 people, large cable flat\ + \ screen TV, DVD/Blueray player, music system with CD and docking\ + \ station, free Wi-Fi and telephone flat rate (German landline)\ + \ .Kitchen: branded fitted kitchen with dishwasher, cooker with\ + \ ceramic hob, among others, oven, microwave, fridge/freezer, Nespresso\ + \ coffee machine.Bedrooms: One double bedroom including Treca box\ + \ spring beds with fitted wardrobes with ample storage space and\ + \ with cable flat screen TV and safe.Bathroom: including spa shower,\ + \ bathtub, washbasin, underfloor heating, towel warmer, radio, hairdryer,\ + \ Vanity mirror, window.Balcony (south facing position): with seating\ + \ group.Other: washer-dryer, ironing station, private parking in\ + \ front of the house, bicycle storage with charging connection for\ + \ pedelecs." + - languageCode: da + text: "Maisonette lejlighed op/loftsrum Stue: herunder en rummelig\ + \ lædersæde, rummeligt spisebord med stole til 4 personer, stort\ + \ kabel-fladskærms TV, dvd/Bluray-afspiller, musiksystem med cd\ + \ og dockingstation, gratis trådløs internetadgang og telefon fast\ + \ (tysk fastnet). Køkken: mærkevarer udstyret køkken med opvaskemaskine,\ + \ komfur med keramisk komfur, Ovn, mikroovn, køleskab/fryser, Nespresso\ + \ kaffemaskine.Soveværelser: Et soveværelse med dobbeltseng herunder\ + \ Treca box foråret senge med indbyggede garderobeskabe med rigelig\ + \ opbevaringsplads og med kabel-fladskærms TV og sikker.Badeværelse:\ + \ herunder spa-bruser, badekar, håndvask, gulvvarme, håndklædevarmer,\ + \ radio, hårtørrer, Kosmetiske spejl, vindue.Balkon (sydvendt position):\ + \ med siddepladser gruppe.Andre: Vaskemaskine tørretumbler, strygestation,\ + \ privat parkering foran huset, cykelopbevaring med opladningsforbindelse\ + \ for pedelecs... og fantastisk beliggenhed, lige ved siden af stranden\ + \ krydser!Maisonette lejlighed op/loftsrum stue: herunder rummelige\ + \ læder siddepladser, rummelige spisebord med stole til 4 personer,\ + \ stort kabel fladskærms TV, DVD/Blueray afspiller, musikanlæg med\ + \ cd og docking station, gratis trådløs internetadgang og telefon\ + \ fast (tysk fastnet) .Køkken: mærkevarer udstyret køkken med opvaskemaskine,\ + \ komfur med keramisk komfur, blandt andre ovn, mikroovn, køleskab/fryser,\ + \ Nespresso kaffemaskine.Soveværelser: Et dobbeltværelse herunder\ + \ Treca box foråret senge med indbyggede garderobeskabe med rigelig\ + \ opbevaringsplads og med kabel fladskærms TV og penge.Badeværelse:\ + \ herunder spa bruser, badekar, håndvask, gulvvarme, håndklædevarmer,\ + \ radio, hårtørrer, Vanity spejl, vindue.Balkon (sydvendt position):\ + \ med siddepladser gruppe.Andre: vaskemaskine-tørretumbler, strygestation,\ + \ privat parkering foran huset, cykel opbevaring med opladning tilslutning\ + \ til pedelecs." + - languageCode: nl + text: "Maisonnette appartement boven/zolder Woonkamer: inclusief een\ + \ ruime lederen stoel, ruime eettafel met stoelen voor 4 personen,\ + \ grote flatscreen tv met kabelzenders, dvd/Bluray-speler, muziekinstallatie\ + \ met cd en docking station, gratis Wi-Fi en vaste telefoon (vaste\ + \ lijn Duitsland). Keuken: branded ingerichte keuken met vaatwasser,\ + \ fornuis met keramische kookplaat, oven, magnetron, koelkast/vriezer,\ + \ Nespresso koffiemachine.Slaapkamers: Een tweepersoons slaapkamer\ + \ inclusief Treca boxspring bedden met ingebouwde kasten met voldoende\ + \ bergruimte en met kabel flatscreen TV en kluis.Badkamer: inclusief\ + \ spa douche, bad, wastafel, vloerverwarming, handdoekverwarmer,\ + \ radio, haardroger, cosmetische spiegel, venster.Balkon (op het\ + \ zuiden gelegen): met zitgroep.Overig: Wasdroger, strijkplank,\ + \ eigen parkeerplaats voor het huis, fietsenstalling met oplaadaansluiting\ + \ voor pedelecs... en fantastische locatie, direct aan De oversteek\ + \ van het strand!Maisonnette appartement boven/zolderwoonkamer:\ + \ inclusief ruime lederen zitplaatsen, ruime eettafel met stoelen\ + \ voor 4 personen, grote flatscreen tv met kabelkanalen, DVD/BlueRay\ + \ speler, muziekinstallatie met CD en docking station, gratis Wi-Fi\ + \ en vaste telefoon vaatwasser, fornuis met keramische kookplaat,\ + \ o.a., oven, magnetron, koelkast/vriezer, Nespresso koffiemachine.Slaapkamers:\ + \ Een tweepersoons slaapkamer inclusief Treca boxspring bedden met\ + \ ingebouwde kasten met veel bergruimte en met kabel flatscreen\ + \ TV en kluis.Badkamer: inclusief spa douche, bad, wastafel, vloerverwarming,\ + \ handdoekwarmer, radio, haardroger, make-upspiegel, raam.Balkon\ + \ (op het zuiden gelegen): met zitgroep.Overig: wasmachine-droger,\ + \ strijkplank, eigen parkeerplaats voor het huis, fietsenstalling\ + \ met oplaadaansluiting voor pedelecs." + - languageCode: de + text: "Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a. mit grosszü\ + giger Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen für 4 Personen,\ + \ grossem Kabel-Flat-TV, DVD-/Bluray-Player, Musikanlage mit CD\ + \ und Docking-Station, kostenfreies WLan sowie Telefon-Flatrate\ + \ (dt. Festnetz).Küche: Marken-Einbauküche u.a. mit Geschirrspü\ + lmaschine, Herd mit Ceranfeld, Backofen, Mikrowelle, Kühl-/Gefrierkombination,\ + \ Nespresso-Kaffeemaschine.Schlafräume: Ein Doppelschlafraum u.a.\ + \ mit TRECA-Boxspringbetten mit Einbauschränken mit ausreichend\ + \ Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer: u.a. mit\ + \ Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation,\ + \ privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit\ + \ mit Aufladeanschluß für Pedelecs ...... und traumhafte Lage, direkt\ + \ am Strandübergang!Maisonettewohnung Ober-/DachgeschoßWohnzimmer:\ + \ u.a. mit grosszügiger Leder-Sitzguppe, grosszügigem Eßtisch mit\ + \ Stühlen für 4 Personen, grossem Kabel-Flat-TV, DVD-/Blueray-Player,\ + \ Musikanlage mit CD und Docking-Station, kostenfreies WLan sowie\ + \ Telefon-Flatrate (dt. Festnetz).Küche: Marken-Einbauküche u.a.\ + \ mit Geschirrspülmaschine, Herd mit Ceranfeld, Backofen, Mikrowelle,\ + \ Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafräume:\ + \ Ein Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschrä\ + nken mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer:\ + \ u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation,\ + \ privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit\ + \ mit Aufladeanschluß für Pedelecs." name: Amrum - maxOccupancy: "4" - imageList: - - imageList - - imageList - - roomTypeCode: "1" - typeName: typeName - roomTypeName: roomTypeName - maxAdultOccupancy: "4" - descriptionText: descriptionText + maxAdultOccupancy: 2 + maxOccupancy: 4 isActive: true amenityList: - - code: "5005" + - code: 5005 quantity: 1 - - code: "5005" + - code: 13 quantity: 1 roomId: amrum - maxChildOccupancy: "4" - isNonSmoking: true + maxChildOccupancy: 4 + - roomTypeCode: 1 mediaList: - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room + - 3 + - 55 roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs + - 0.8008281904610115 + - 0.8008281904610115 isMainImage: true detectionLabelList: - - furniture - - furniture - sortOrder: 1001 + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 moderationLabelList: - - moderationLabelList - - moderationLabelList + - partial_nudity + - tobacco propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg + - 1 + - 2 + url: 5e3d9d49e9480.jpg - tagList: - - code: 159 - name: Living room - - code: 159 - name: Living room + - 3 + - 55 roomAmenityList: - - code: 146 - name: Tables and chairs - - code: 146 - name: Tables and chairs + - 0.8008281904610115 + - 0.8008281904610115 isMainImage: true detectionLabelList: - - furniture - - furniture - sortOrder: 1001 + - room + - indoors + - kitchen + - interior_design + sortOrder: 1000 moderationLabelList: - - moderationLabelList - - moderationLabelList + - partial_nudity + - tobacco propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: zim_1280x960_164357_002.jpg + - 1 + - 2 + url: 5e3d9d49e9480.jpg + isNonSmoking: false messageList: - - text: Maisonette apartment on ground floor - languageCode: en - - text: Maisonette apartment on ground floor - languageCode: en + - languageCode: en + text: "Maisonette apartment up/attic Living room: including a spacious\ + \ leather seat, spacious dining table with chairs for 4 people,\ + \ large cable flat screen TV, DVD/BluRay player, music system with\ + \ CD and docking station, free Wi-Fi and telephone flat rate (German\ + \ landline). Kitchen: branded fitted kitchen with dishwasher, cooker\ + \ with ceramic hob, Oven, microwave, fridge/freezer, Nespresso coffee\ + \ machine.Bedrooms: One double bedroom including Treca box spring\ + \ beds with fitted wardrobes with ample storage space and with cable\ + \ flat screen TV and safe.Bathroom: including spa shower, bathtub,\ + \ washbasin, underfloor heating, towel warmer, radio, hairdryer,\ + \ Cosmetic mirror, window.Balcony (south facing position): with\ + \ seating group.Other: Washer dryer, ironing station, private parking\ + \ in front of the house, bicycle storage with charging connection\ + \ for pedelecs... and fantastic location, right at the beach crossing!Maisonette\ + \ apartment up/attic living room: including spacious leather seating,\ + \ spacious dining table with chairs for 4 people, large cable flat\ + \ screen TV, DVD/Blueray player, music system with CD and docking\ + \ station, free Wi-Fi and telephone flat rate (German landline)\ + \ .Kitchen: branded fitted kitchen with dishwasher, cooker with\ + \ ceramic hob, among others, oven, microwave, fridge/freezer, Nespresso\ + \ coffee machine.Bedrooms: One double bedroom including Treca box\ + \ spring beds with fitted wardrobes with ample storage space and\ + \ with cable flat screen TV and safe.Bathroom: including spa shower,\ + \ bathtub, washbasin, underfloor heating, towel warmer, radio, hairdryer,\ + \ Vanity mirror, window.Balcony (south facing position): with seating\ + \ group.Other: washer-dryer, ironing station, private parking in\ + \ front of the house, bicycle storage with charging connection for\ + \ pedelecs." + - languageCode: da + text: "Maisonette lejlighed op/loftsrum Stue: herunder en rummelig\ + \ lædersæde, rummeligt spisebord med stole til 4 personer, stort\ + \ kabel-fladskærms TV, dvd/Bluray-afspiller, musiksystem med cd\ + \ og dockingstation, gratis trådløs internetadgang og telefon fast\ + \ (tysk fastnet). Køkken: mærkevarer udstyret køkken med opvaskemaskine,\ + \ komfur med keramisk komfur, Ovn, mikroovn, køleskab/fryser, Nespresso\ + \ kaffemaskine.Soveværelser: Et soveværelse med dobbeltseng herunder\ + \ Treca box foråret senge med indbyggede garderobeskabe med rigelig\ + \ opbevaringsplads og med kabel-fladskærms TV og sikker.Badeværelse:\ + \ herunder spa-bruser, badekar, håndvask, gulvvarme, håndklædevarmer,\ + \ radio, hårtørrer, Kosmetiske spejl, vindue.Balkon (sydvendt position):\ + \ med siddepladser gruppe.Andre: Vaskemaskine tørretumbler, strygestation,\ + \ privat parkering foran huset, cykelopbevaring med opladningsforbindelse\ + \ for pedelecs... og fantastisk beliggenhed, lige ved siden af stranden\ + \ krydser!Maisonette lejlighed op/loftsrum stue: herunder rummelige\ + \ læder siddepladser, rummelige spisebord med stole til 4 personer,\ + \ stort kabel fladskærms TV, DVD/Blueray afspiller, musikanlæg med\ + \ cd og docking station, gratis trådløs internetadgang og telefon\ + \ fast (tysk fastnet) .Køkken: mærkevarer udstyret køkken med opvaskemaskine,\ + \ komfur med keramisk komfur, blandt andre ovn, mikroovn, køleskab/fryser,\ + \ Nespresso kaffemaskine.Soveværelser: Et dobbeltværelse herunder\ + \ Treca box foråret senge med indbyggede garderobeskabe med rigelig\ + \ opbevaringsplads og med kabel fladskærms TV og penge.Badeværelse:\ + \ herunder spa bruser, badekar, håndvask, gulvvarme, håndklædevarmer,\ + \ radio, hårtørrer, Vanity spejl, vindue.Balkon (sydvendt position):\ + \ med siddepladser gruppe.Andre: vaskemaskine-tørretumbler, strygestation,\ + \ privat parkering foran huset, cykel opbevaring med opladning tilslutning\ + \ til pedelecs." + - languageCode: nl + text: "Maisonnette appartement boven/zolder Woonkamer: inclusief een\ + \ ruime lederen stoel, ruime eettafel met stoelen voor 4 personen,\ + \ grote flatscreen tv met kabelzenders, dvd/Bluray-speler, muziekinstallatie\ + \ met cd en docking station, gratis Wi-Fi en vaste telefoon (vaste\ + \ lijn Duitsland). Keuken: branded ingerichte keuken met vaatwasser,\ + \ fornuis met keramische kookplaat, oven, magnetron, koelkast/vriezer,\ + \ Nespresso koffiemachine.Slaapkamers: Een tweepersoons slaapkamer\ + \ inclusief Treca boxspring bedden met ingebouwde kasten met voldoende\ + \ bergruimte en met kabel flatscreen TV en kluis.Badkamer: inclusief\ + \ spa douche, bad, wastafel, vloerverwarming, handdoekverwarmer,\ + \ radio, haardroger, cosmetische spiegel, venster.Balkon (op het\ + \ zuiden gelegen): met zitgroep.Overig: Wasdroger, strijkplank,\ + \ eigen parkeerplaats voor het huis, fietsenstalling met oplaadaansluiting\ + \ voor pedelecs... en fantastische locatie, direct aan De oversteek\ + \ van het strand!Maisonnette appartement boven/zolderwoonkamer:\ + \ inclusief ruime lederen zitplaatsen, ruime eettafel met stoelen\ + \ voor 4 personen, grote flatscreen tv met kabelkanalen, DVD/BlueRay\ + \ speler, muziekinstallatie met CD en docking station, gratis Wi-Fi\ + \ en vaste telefoon vaatwasser, fornuis met keramische kookplaat,\ + \ o.a., oven, magnetron, koelkast/vriezer, Nespresso koffiemachine.Slaapkamers:\ + \ Een tweepersoons slaapkamer inclusief Treca boxspring bedden met\ + \ ingebouwde kasten met veel bergruimte en met kabel flatscreen\ + \ TV en kluis.Badkamer: inclusief spa douche, bad, wastafel, vloerverwarming,\ + \ handdoekwarmer, radio, haardroger, make-upspiegel, raam.Balkon\ + \ (op het zuiden gelegen): met zitgroep.Overig: wasmachine-droger,\ + \ strijkplank, eigen parkeerplaats voor het huis, fietsenstalling\ + \ met oplaadaansluiting voor pedelecs." + - languageCode: de + text: "Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a. mit grosszü\ + giger Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen für 4 Personen,\ + \ grossem Kabel-Flat-TV, DVD-/Bluray-Player, Musikanlage mit CD\ + \ und Docking-Station, kostenfreies WLan sowie Telefon-Flatrate\ + \ (dt. Festnetz).Küche: Marken-Einbauküche u.a. mit Geschirrspü\ + lmaschine, Herd mit Ceranfeld, Backofen, Mikrowelle, Kühl-/Gefrierkombination,\ + \ Nespresso-Kaffeemaschine.Schlafräume: Ein Doppelschlafraum u.a.\ + \ mit TRECA-Boxspringbetten mit Einbauschränken mit ausreichend\ + \ Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer: u.a. mit\ + \ Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation,\ + \ privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit\ + \ mit Aufladeanschluß für Pedelecs ...... und traumhafte Lage, direkt\ + \ am Strandübergang!Maisonettewohnung Ober-/DachgeschoßWohnzimmer:\ + \ u.a. mit grosszügiger Leder-Sitzguppe, grosszügigem Eßtisch mit\ + \ Stühlen für 4 Personen, grossem Kabel-Flat-TV, DVD-/Blueray-Player,\ + \ Musikanlage mit CD und Docking-Station, kostenfreies WLan sowie\ + \ Telefon-Flatrate (dt. Festnetz).Küche: Marken-Einbauküche u.a.\ + \ mit Geschirrspülmaschine, Herd mit Ceranfeld, Backofen, Mikrowelle,\ + \ Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafräume:\ + \ Ein Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschrä\ + nken mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer:\ + \ u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung,\ + \ Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon\ + \ (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation,\ + \ privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit\ + \ mit Aufladeanschluß für Pedelecs." name: Amrum - maxOccupancy: "4" - imageList: - - imageList - - imageList + maxAdultOccupancy: 2 + maxOccupancy: 4 + isActive: true + amenityList: + - code: 5005 + quantity: 1 + - code: 13 + quantity: 1 + roomId: amrum + maxChildOccupancy: 4 code: strandresidenz-sylt policyList: - cancellationPolicyList: - - cancellationPolicyList - - cancellationPolicyList + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 checkOutTime: 43200000 totalGuestCount: 10 checkInTime: 54000000 - guaranteePolicy: guaranteePolicy + guaranteePolicy: + noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 taxPolicyList: - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 prepaymentPolicy: after_reservation_is_made + name: Standard Sylt Residenz Policy feePolicyList: - - feePolicyList - - feePolicyList - advanceBookingMin: 34560000 - advanceBookingMax: 0 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + advanceBookingMin: 365 + advanceBookingMax: 1 petsPolicy: - byArrangement: true - allowed: true - freeOfCharge: true + byArrangement: false + allowed: false + freeOfCharge: false - cancellationPolicyList: - - cancellationPolicyList - - cancellationPolicyList + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 checkOutTime: 43200000 totalGuestCount: 10 checkInTime: 54000000 - guaranteePolicy: guaranteePolicy + guaranteePolicy: + noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 taxPolicyList: - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 prepaymentPolicy: after_reservation_is_made + name: Standard Sylt Residenz Policy feePolicyList: - - feePolicyList - - feePolicyList - advanceBookingMin: 34560000 - advanceBookingMax: 0 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + advanceBookingMin: 365 + advanceBookingMax: 1 petsPolicy: - byArrangement: true - allowed: true - freeOfCharge: true + byArrangement: false + allowed: false + freeOfCharge: false published: true guestInfo: guestNameListRequired: true @@ -3083,115 +10109,132 @@ components: uri: strandresidenz-sylt propertyInfo: messageList: - - text: More sea does not work! - languageCode: en - - text: More sea does not work! - languageCode: en + - languageCode: en + text: "More sea does not work! In a unique location just behind the\ + \ dunes, less than 100 steps from the beach and the spa promenade,\ + \ in a prime location on the beach “Nordhedig”, you can enjoy your\ + \ stay in a small, new 5-star luxury complex (DTV classification)\ + \ with a total of 4 separate apartments for 2-4 people. The interior\ + \ has a modern rural style that offers all the amenities. You can\ + \ find films about the property and individual apartments on our website. " + - languageCode: da + text: "Mere hav virker ikke! I en unik beliggenhed lige bag klitterne,\ + \ mindre end 100 skridt fra stranden og spa-promenaden, i en førsteklasses\ + \ beliggenhed på stranden „Nordhedig“, kan du nyde dit ophold i et\ + \ lille, nyt 5-stjernet luksuskompleks (DTV klassifikation) med i\ + \ alt 4 separate lejligheder til 2-4 personer. Interiøret har en moderne\ + \ landlig stil, der tilbyder alle bekvemmeligheder. Du kan finde film\ + \ om ejendommen og individuelle lejligheder på vores hjemmeside. " + - languageCode: nl + text: "Meer zee werkt niet! Op een unieke locatie net achter de duinen,\ + \ op minder dan 100 stappen van het strand en de spa-promenade, op\ + \ een toplocatie aan het strand „Nordhedig”, kunt u genieten van uw\ + \ verblijf in een klein, nieuw 5-sterren luxe complex (DTV classificatie)\ + \ met in totaal 4 aparte appartementen voor 2-4 personen. Het interieur\ + \ heeft een moderne landelijke stijl die alle voorzieningen biedt.\ + \ U kunt films over het pand en de individuele appartementen vinden\ + \ op onze website. " + - languageCode: de + text: "Mehr Meer geht nicht! In einer einzigartigen Lage direkt hinter\ + \ den Dünen, weniger als 100 Schritte vom Strand und der Kurpromenade\ + \ entfernt, in bester Lage am Strand „Nordhedig“, können Sie Ihren\ + \ Aufenthalt in einem kleinen, neuen 5-Sterne-Luxuskomplex (DTV-Klassifizierung)\ + \ mit insgesamt 4 separaten Apartments für 2-4 Personen genießen.\ + \ Das Interieur hat einen modernen ländlichen Stil, der alle Annehmlichkeiten\ + \ bietet. Filme über das Anwesen und einzelne Apartments finden Sie\ + \ auf unserer Website. " unitCount: 4 categoryList: - - code: 34 - name: Vacation home - exists: true - - code: 34 - name: Vacation home - exists: true + - 1 + - 14 + - 42 location: - latitude: 54.91574091463751 - longitude: 8.30486146909412 + lng: 8.304857 + lat: 54.9157118 languageList: - de - - de + - en-gb acceptedPaymentList: - code: eccard - name: EC-card type: debitcard - code: eccard - name: EC-card type: debitcard geo: de: - country: Deutschland - formatted_address: Nordhedig 20 25980 Sylt Deutschland - locality: Sylt + location: + lat: 54.9157118 + lng: 8.304857 + formatted_address: "Nordhedig 20, 25980 Sylt, Deutschland" + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + street_number: "20" + route: Nordhedig sublocality: Westerland - language: de - establishment: Sylt - country_code: DE sublocality_level_1: Westerland - route: Nordhedig + locality: Sylt administrative_area_level_3: Nordfriesland administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 state_code: SH + country: Deutschland + country_code: DE postal_code: "25980" - natural_feature: Sylt - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + language: de en: - country: Germany - formatted_address: Nordhedig 20 25980 Sylt Germany - locality: Sylt + location: + lat: 54.9157118 + lng: 8.304857 + formatted_address: "Nordhedig 20, 25980 Sylt, Germany" + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + street_number: "20" + route: Nordhedig sublocality: Westerland - language: en - establishment: Sylt - country_code: DE sublocality_level_1: Westerland - route: Nordhedig + locality: Sylt administrative_area_level_3: Nordfriesland administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 state_code: SH + country: Germany + country_code: DE postal_code: "25980" - natural_feature: Sylt - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + language: en da: - country: Tyskland - formatted_address: Nordhedig 20 25980 Sylt Tyskland - locality: Sylt + location: + lat: 54.9157118 + lng: 8.304857 + formatted_address: "Nordhedig 20, 25980 Sylt, Tyskland" + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + street_number: "20" + route: Nordhedig sublocality: Westerland - language: da - establishment: Sild - country_code: DE sublocality_level_1: Westerland - route: Nordhedig + locality: Sylt administrative_area_level_3: Nordfriesland administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 state_code: SH + country: Tyskland + country_code: DE postal_code: "25980" - natural_feature: Sild - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + language: da nl: - country: Duitsland - formatted_address: Nordhedig 20 25980 Sylt Duitsland - locality: Sylt + location: + lat: 54.9157118 + lng: 8.304857 + formatted_address: "Nordhedig 20, 25980 Sylt, Duitsland" + place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + street_number: "20" + route: Nordhedig sublocality: Westerland - language: nl - establishment: Sylt - country_code: DE sublocality_level_1: Westerland - route: Nordhedig + locality: Sylt administrative_area_level_3: Nordfriesland administrative_area_level_1: Schleswig-Holstein - street_number: "20" - location: - lng: 8.304857 - lat: 54.9157118 state_code: SH + country: Duitsland + country_code: DE postal_code: "25980" - natural_feature: Sylt - place_id: ChIJVaxqTevetEcRyfs8PGHK6mw + language: nl cancellationGracePeriod: - weeksBeforeCheckIn: 0 - hoursAfterBooking: 24 + weeksBeforeCheckIn: 1.4658129805029452 + hoursAfterBooking: 6.027456183070403 recordModified: role: admin time: 1652091332815 @@ -3228,1311 +10271,1096 @@ components: addressLine: Nordhedig 20 mediaList: - tagList: - - code: 3 - name: Property building - - code: 3 - name: Property building + - 3 + - 55 roomAmenityList: - - roomAmenityList - - roomAmenityList + - 0.8008281904610115 + - 0.8008281904610115 isMainImage: true detectionLabelList: - - roof - - roof + - room + - indoors + - kitchen + - interior_design sortOrder: 1000 moderationLabelList: - - moderationLabelList - - moderationLabelList + - partial_nudity + - tobacco propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: obj_1280x960_54620_001.jpg + - 1 + - 2 + url: 5e3d9d49e9480.jpg - tagList: - - code: 3 - name: Property building - - code: 3 - name: Property building + - 3 + - 55 roomAmenityList: - - roomAmenityList - - roomAmenityList + - 0.8008281904610115 + - 0.8008281904610115 isMainImage: true detectionLabelList: - - roof - - roof + - room + - indoors + - kitchen + - interior_design sortOrder: 1000 moderationLabelList: - - moderationLabelList - - moderationLabelList + - partial_nudity + - tobacco propertyAmenityList: - - propertyAmenityList - - propertyAmenityList - url: obj_1280x960_54620_001.jpg + - 1 + - 2 + url: 5e3d9d49e9480.jpg name: Strandresidenz Sylt serviceList: - - featureList: - - featureList - - featureList + - featureList: [] operationTimeList: - - operationTimeList - - operationTimeList - code: 5015 + - sunday: false + saturday: false + tuesday: true + start: 25200000 + wednesday: true + thursday: true + friday: true + end: 39600000 + monday: true + - sunday: false + saturday: false + tuesday: true + start: 25200000 + wednesday: true + thursday: true + friday: true + end: 39600000 + monday: true + code: 173 typeList: - - typeList - - typeList - price: 0 - name: Beach + - 5.962133916683182 + - 5.962133916683182 + price: 19.99 + name: Breakfast served in restaurant. exists: true itemList: - - itemList - - itemList - included: true + - 5.637376656633329 + - 5.637376656633329 + included: false currencyCode: EUR - - featureList: - - featureList - - featureList + - featureList: [] operationTimeList: - - operationTimeList - - operationTimeList - code: 5015 + - sunday: false + saturday: false + tuesday: true + start: 25200000 + wednesday: true + thursday: true + friday: true + end: 39600000 + monday: true + - sunday: false + saturday: false + tuesday: true + start: 25200000 + wednesday: true + thursday: true + friday: true + end: 39600000 + monday: true + code: 173 typeList: - - typeList - - typeList - price: 0 - name: Beach + - 5.962133916683182 + - 5.962133916683182 + price: 19.99 + name: Breakfast served in restaurant. exists: true itemList: - - itemList - - itemList - included: true + - 5.637376656633329 + - 5.637376656633329 + included: false currencyCode: EUR recordCreated: role: admin - time: 1609411613660 + time: 1652091332815 user: microsoft:user:2f1d8a1b-bae8-4333-8f0f-7ad28af03e3f tenant: dmo-demo - transaction: - method: MANDATORY_BOOKING - externalList: - - text: https://www.booking.com/ - languageCode: de - - text: https://www.booking.com/ - languageCode: de - contactTypeList: - - reservations - - reservations awardList: - provider: star-rating - rating: 0 + rating: 5 - provider: star-rating - rating: 0 - refinementDate: 1643706934194 + rating: 5 productList: - roomTypeList: - - typeCode: amrum - - typeCode: amrum + - amrum + - amrum isOBPPricing: true ratePlanList: - - code: standard-amrum - name: Standard Amrum - active: true - propertyId: strandresidenz-sylt + - code: standard-8436 + name: Standard 8436 + active: false pricingList: - - dateTime: 1614556800000 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 - - dateTime: 1614556800000 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 - - code: standard-amrum - name: Standard Amrum - active: true - propertyId: strandresidenz-sylt + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - code: standard-8436 + name: Standard 8436 + active: false pricingList: - - dateTime: 1614556800000 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 - - dateTime: 1614556800000 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 policyInfo: cancellationPolicyList: - - code: 152 - noShowPolicy: default + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + - noShowPolicy: Default nightsAfterReservation: 0 nightsAfterDeadline: 0 percentAfterDeadline: 0 percentAfterReservation: 0 deadlineDays: 0 deadlineHours: 0 - - code: 152 - noShowPolicy: default + checkOutTime: 43200000 + totalGuestCount: 10 + checkInTime: 54000000 + guaranteePolicy: + noShowPolicy: Default nightsAfterReservation: 0 nightsAfterDeadline: 0 percentAfterDeadline: 0 percentAfterReservation: 0 deadlineDays: 0 deadlineHours: 0 - checkOutTime: 39600000 - totalGuestCount: 0 - checkInTime: 50400000 - guaranteePolicy: guaranteePolicy taxPolicyList: - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 - prepaymentPolicy: prepaymentPolicy - name: Standard Amrum Policy + prepaymentPolicy: after_reservation_is_made + name: Standard Sylt Residenz Policy feePolicyList: - - feePolicyList - - feePolicyList - advanceBookingMin: 34560000 - advanceBookingMax: 0 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + advanceBookingMin: 365 + advanceBookingMax: 1 petsPolicy: - byArrangement: true - allowed: true - freeOfCharge: true + byArrangement: false + allowed: false + freeOfCharge: false isLOSPricing: true name: Standard Amrum propertyId: strandresidenz-sylt mealPlanList: - - code: 14 - name: Room only - - code: 14 - name: Room only + - 14 + - 14 - roomTypeList: - - typeCode: amrum - - typeCode: amrum + - amrum + - amrum isOBPPricing: true ratePlanList: - - code: standard-amrum - name: Standard Amrum - active: true - propertyId: strandresidenz-sylt + - code: standard-8436 + name: Standard 8436 + active: false pricingList: - - dateTime: 1614556800000 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 - - dateTime: 1614556800000 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 - - code: standard-amrum - name: Standard Amrum - active: true - propertyId: strandresidenz-sylt + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - code: standard-8436 + name: Standard 8436 + active: false pricingList: - - dateTime: 1614556800000 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 - - dateTime: 1614556800000 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 1419 - "22": 2838 - "12": 1548 - "23": 2967 - "13": 1677 - "14": 1806 - "15": 1935 - "16": 2064 - "17": 2193 - "18": 2322 - "19": 2451 - "4": 516 - "5": 645 - "6": 774 - "7": 903 - "8": 1032 - "9": 1161 - "20": 2580 - "10": 1290 - "21": 2709 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 policyInfo: cancellationPolicyList: - - code: 152 - noShowPolicy: default + - noShowPolicy: Default nightsAfterReservation: 0 nightsAfterDeadline: 0 percentAfterDeadline: 0 percentAfterReservation: 0 deadlineDays: 0 deadlineHours: 0 - - code: 152 - noShowPolicy: default + - noShowPolicy: Default + nightsAfterReservation: 0 + nightsAfterDeadline: 0 + percentAfterDeadline: 0 + percentAfterReservation: 0 + deadlineDays: 0 + deadlineHours: 0 + checkOutTime: 43200000 + totalGuestCount: 10 + checkInTime: 54000000 + guaranteePolicy: + noShowPolicy: Default nightsAfterReservation: 0 nightsAfterDeadline: 0 percentAfterDeadline: 0 percentAfterReservation: 0 deadlineDays: 0 deadlineHours: 0 - checkOutTime: 39600000 - totalGuestCount: 0 - checkInTime: 50400000 - guaranteePolicy: guaranteePolicy taxPolicyList: - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 - - conditionList: - - conditionList - - conditionList + - conditionList: [] chargeType: included percent: 19 currencyCode: EUR typeCode: 36 chargeFrequencyCode: 12 - prepaymentPolicy: prepaymentPolicy - name: Standard Amrum Policy + prepaymentPolicy: after_reservation_is_made + name: Standard Sylt Residenz Policy feePolicyList: - - feePolicyList - - feePolicyList - advanceBookingMin: 34560000 - advanceBookingMax: 0 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + - conditionList: [] + chargeType: included + percent: 19 + currencyCode: EUR + typeCode: 36 + chargeFrequencyCode: 12 + advanceBookingMin: 365 + advanceBookingMax: 1 petsPolicy: - byArrangement: true - allowed: true - freeOfCharge: true + byArrangement: false + allowed: false + freeOfCharge: false isLOSPricing: true name: Standard Amrum propertyId: strandresidenz-sylt mealPlanList: - - code: 14 - name: Room only - - code: 14 - name: Room only + - 14 + - 14 properties: - versionId: - format: nullable - type: string property: - $ref: '#/components/schemas/_v1_property_get_post_200_response_property' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_property' productList: items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_productList_inner' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_productList_inner' type: array + required: + - productList + - property type: object - _v1_property_list_post_200_response_list_inner: - example: - image: obj_1280x960_54620_001.jpg - lastUpdated: 1652091337389 - address: Nordhedig 20 25980 Sylt Germany - name: Strandresidenz Sylt - published: true - propertyId: strandresidenz-sylt - properties: - published: - type: boolean - name: - example: Strandresidenz Sylt - type: string - propertyId: - example: strandresidenz-sylt - type: string - image: - example: obj_1280x960_54620_001.jpg - type: string - address: - example: Nordhedig 20 25980 Sylt Germany - type: string - lastUpdated: - example: 1652091337389 - type: number - type: object - _v1_property_list_post_200_response: - example: - pageToken: pageToken - list: - - image: obj_1280x960_54620_001.jpg - lastUpdated: 1652091337389 - address: Nordhedig 20 25980 Sylt Germany - name: Strandresidenz Sylt - published: true - propertyId: strandresidenz-sylt - - image: obj_1280x960_54620_001.jpg - lastUpdated: 1652091337389 - address: Nordhedig 20 25980 Sylt Germany - name: Strandresidenz Sylt - published: true - propertyId: strandresidenz-sylt - properties: - list: - items: - $ref: '#/components/schemas/_v1_property_list_post_200_response_list_inner' - type: array - pageToken: - type: string - type: object - _v1_availability_get_post_200_response_ratePlanList_inner_pricingList_inner_priceList: - example: - "11": 659.89 - "12": 719.88 - "13": 779.87 - "14": 839.86 - "15": 899.85 - "16": 959.84 - "17": 1019.83 - "18": 1079.82 - "19": 1139.81 - "3": 179.97 - "4": 239.96 - "5": 299.95 - "6": 359.94 - "7": 419.93 - "8": 479.92 - "9": 539.91 - "20": 1199.8 - "10": 599.9 - properties: - "3": - example: 179.97 - type: number - "4": - example: 239.96 - type: number - "5": - example: 299.95 - type: number - "6": - example: 359.94 - type: number - "7": - example: 419.93 - type: number - "8": - example: 479.92 - type: number - "9": - example: 539.91 - type: number - "10": - example: 599.9 - type: number - "11": - example: 659.89 - type: number - "12": - example: 719.88 - type: number - "13": - example: 779.87 - type: number - "14": - example: 839.86 - type: number - "15": - example: 899.85 - type: number - "16": - example: 959.84 - type: number - "17": - example: 1019.83 - type: number - "18": - example: 1079.82 - type: number - "19": - example: 1139.81 - type: number - "20": - example: 1199.8 - type: number - type: object - _v1_availability_get_post_200_response_ratePlanList_inner_pricingList_inner: - example: - dateTime: 1662595200000 - occupancy: 1 - currencyCode: EUR - priceList: - "11": 659.89 - "12": 719.88 - "13": 779.87 - "14": 839.86 - "15": 899.85 - "16": 959.84 - "17": 1019.83 - "18": 1079.82 - "19": 1139.81 - "3": 179.97 - "4": 239.96 - "5": 299.95 - "6": 359.94 - "7": 419.93 - "8": 479.92 - "9": 539.91 - "20": 1199.8 - "10": 599.9 - properties: - dateTime: - example: 1662595200000 - type: number - occupancy: - example: 1 - type: number - priceList: - $ref: '#/components/schemas/_v1_availability_get_post_200_response_ratePlanList_inner_pricingList_inner_priceList' - currencyCode: - example: EUR - type: string - type: object - _v1_availability_get_post_200_response_ratePlanList_inner: - example: - code: standard-8436 - name: Standard 8436 - active: true - pricingList: - - dateTime: 1662595200000 - occupancy: 1 - currencyCode: EUR - priceList: - "11": 659.89 - "12": 719.88 - "13": 779.87 - "14": 839.86 - "15": 899.85 - "16": 959.84 - "17": 1019.83 - "18": 1079.82 - "19": 1139.81 - "3": 179.97 - "4": 239.96 - "5": 299.95 - "6": 359.94 - "7": 419.93 - "8": 479.92 - "9": 539.91 - "20": 1199.8 - "10": 599.9 - - dateTime: 1662595200000 - occupancy: 1 - currencyCode: EUR - priceList: - "11": 659.89 - "12": 719.88 - "13": 779.87 - "14": 839.86 - "15": 899.85 - "16": 959.84 - "17": 1019.83 - "18": 1079.82 - "19": 1139.81 - "3": 179.97 - "4": 239.96 - "5": 299.95 - "6": 359.94 - "7": 419.93 - "8": 479.92 - "9": 539.91 - "20": 1199.8 - "10": 599.9 - properties: - active: - type: boolean - name: - example: Standard 8436 - type: string - code: - example: standard-8436 - type: string - pricingList: - items: - $ref: '#/components/schemas/_v1_availability_get_post_200_response_ratePlanList_inner_pricingList_inner' - type: array - type: object - _v1_availability_get_post_200_response_roomTypeList_inner: - example: - typeCode: strandresidenz-sylt - properties: - typeCode: - example: strandresidenz-sylt - type: string - type: object - _v1_availability_get_post_200_response: + _properties__propertyId__availability_get_200_response_availabilityList_inner: example: roomTypeList: - - typeCode: strandresidenz-sylt - - typeCode: strandresidenz-sylt + - amrum + - amrum ratePlanList: - code: standard-8436 name: Standard 8436 - active: true + active: false pricingList: - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 659.89 - "12": 719.88 - "13": 779.87 - "14": 839.86 - "15": 899.85 - "16": 959.84 - "17": 1019.83 - "18": 1079.82 - "19": 1139.81 - "3": 179.97 - "4": 239.96 - "5": 299.95 - "6": 359.94 - "7": 419.93 - "8": 479.92 - "9": 539.91 - "20": 1199.8 - "10": 599.9 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 659.89 - "12": 719.88 - "13": 779.87 - "14": 839.86 - "15": 899.85 - "16": 959.84 - "17": 1019.83 - "18": 1079.82 - "19": 1139.81 - "3": 179.97 - "4": 239.96 - "5": 299.95 - "6": 359.94 - "7": 419.93 - "8": 479.92 - "9": 539.91 - "20": 1199.8 - "10": 599.9 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 - code: standard-8436 name: Standard 8436 - active: true + active: false pricingList: - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 659.89 - "12": 719.88 - "13": 779.87 - "14": 839.86 - "15": 899.85 - "16": 959.84 - "17": 1019.83 - "18": 1079.82 - "19": 1139.81 - "3": 179.97 - "4": 239.96 - "5": 299.95 - "6": 359.94 - "7": 419.93 - "8": 479.92 - "9": 539.91 - "20": 1199.8 - "10": 599.9 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 - dateTime: 1662595200000 occupancy: 1 currencyCode: EUR priceList: - "11": 659.89 - "12": 719.88 - "13": 779.87 - "14": 839.86 - "15": 899.85 - "16": 959.84 - "17": 1019.83 - "18": 1079.82 - "19": 1139.81 - "3": 179.97 - "4": 239.96 - "5": 299.95 - "6": 359.94 - "7": 419.93 - "8": 479.92 - "9": 539.91 - "20": 1199.8 - "10": 599.9 + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 name: Standard mealPlanList: - - code: 14 - name: Room only - - code: 14 - name: Room only + - 14 + - 14 properties: ratePlanList: + description: A list of available rate plans. items: - $ref: '#/components/schemas/_v1_availability_get_post_200_response_ratePlanList_inner' + $ref: '#/components/schemas/_properties__propertyId__get_200_response_productList_inner_ratePlanList_inner' type: array name: + description: The name of the rate plan group. example: Standard type: string mealPlanList: + description: The available meal plans.

See also in + the appendix.

items: - $ref: '#/components/schemas/_v1_property_get_post_200_response_productList_inner_mealPlanList_inner' - type: array - roomTypeList: - items: - $ref: '#/components/schemas/_v1_availability_get_post_200_response_roomTypeList_inner' - type: array - type: object - _v1_availability_search_post_200_response_list_inner_geo_location: - example: - lng: 8.3339872 - lat: 54.8962436 - properties: - lng: - example: 8.3339872 - type: number - lat: - example: 54.8962436 - type: number - type: object - _v1_availability_search_post_200_response_list_inner_geo: - example: - country: Deutschland - formatted_address: Westertresker 2 25980 Sylt Deutschland - locality: Sylt - sublocality: Tinnum - language: de - establishment: Sylt - country_code: DE - sublocality_level_1: Tinnum - route: Westertresker - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "2" - location: - lng: 8.3339872 - lat: 54.8962436 - state_code: SH - postal_code: "25980" - natural_feature: Sylt - place_id: ChIJ5fZnV2TdtEcRHUC697Z0nhw - properties: - country: - example: Deutschland - type: string - formatted_address: - example: Westertresker 2 25980 Sylt Deutschland - type: string - locality: - example: Sylt - type: string - sublocality: - example: Tinnum - type: string - language: - example: de - type: string - establishment: - example: Sylt - type: string - country_code: - example: DE - type: string - sublocality_level_1: - example: Tinnum - type: string - route: - example: Westertresker - type: string - administrative_area_level_3: - example: Nordfriesland - type: string - administrative_area_level_1: - example: Schleswig-Holstein - type: string - street_number: - example: "2" - type: string - location: - $ref: '#/components/schemas/_v1_availability_search_post_200_response_list_inner_geo_location' - state_code: - example: SH - type: string - postal_code: - example: "25980" - type: string - natural_feature: - example: Sylt - type: string - place_id: - example: ChIJ5fZnV2TdtEcRHUC697Z0nhw - type: string - type: object - _v1_availability_search_post_200_response_list_inner_mediaList_inner: - example: - tagCodeList: - - 3 - - 3 - isMainImage: true - sortOrder: 1004 - url: obj_1280x960_55480_005.jpg - properties: - tagCodeList: - items: - example: 3 - type: number - type: array - isMainImage: - type: boolean - url: - example: obj_1280x960_55480_005.jpg - type: string - sortOrder: - example: 1004 - type: number - type: object - _v1_availability_search_post_200_response_list_inner_attractionList_inner_distance: - example: - unit: m - value: 2800 - properties: - value: - example: 2800 - type: number - unit: - example: m - type: string - type: object - _v1_availability_search_post_200_response_list_inner_attractionList_inner: - example: - distance: - unit: m - value: 2800 - name: Flughafen Sylt - typeCode: 1 - properties: - typeCode: - example: 1 - type: number - name: - example: Flughafen Sylt - type: string - distance: - $ref: '#/components/schemas/_v1_availability_search_post_200_response_list_inner_attractionList_inner_distance' - type: object - _v1_availability_search_post_200_response_list_inner_lowestPrice: - example: - lengthOfStay: 1 - amount: 49 - returnDate: 1660867200 - currencyCode: EUR - arrivalDate: 1660780800 - properties: - amount: - example: 49 - type: number - currencyCode: - example: EUR - type: string - arrivalDate: - example: 1660780800 - type: number - returnDate: - example: 1660867200 - type: number - lengthOfStay: - example: 1 - type: number - type: object - _v1_availability_search_post_200_response_list_inner: - example: - lowestPrice: - lengthOfStay: 1 - amount: 49 - returnDate: 1660867200 - currencyCode: EUR - arrivalDate: 1660780800 - code: landhaus-treskersand - languageCode: de - uri: landhaus-treskersand - geo: - country: Deutschland - formatted_address: Westertresker 2 25980 Sylt Deutschland - locality: Sylt - sublocality: Tinnum - language: de - establishment: Sylt - country_code: DE - sublocality_level_1: Tinnum - route: Westertresker - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "2" - location: - lng: 8.3339872 - lat: 54.8962436 - state_code: SH - postal_code: "25980" - natural_feature: Sylt - place_id: ChIJ5fZnV2TdtEcRHUC697Z0nhw - mediaList: - - tagCodeList: - - 3 - - 3 - isMainImage: true - sortOrder: 1004 - url: obj_1280x960_55480_005.jpg - - tagCodeList: - - 3 - - 3 - isMainImage: true - sortOrder: 1004 - url: obj_1280x960_55480_005.jpg - name: Landhaus Treskersand - serviceList: - - 5001 - - 5001 - categoryList: - - 5006 - - 5006 - attractionList: - - distance: - unit: m - value: 2800 - name: Flughafen Sylt - typeCode: 1 - - distance: - unit: m - value: 2800 - name: Flughafen Sylt - typeCode: 1 - unitSystem: metric - text: Im Herzen der Insel-im Süden von Tinnum in einer ruhigen Seitenstrasse - unmittelbar an den Tinnumer Wiesen liegt das wunderschöne Landhaus Treskersand - mit seiner Wohnung unter Reet. - currencyCode: EUR - uriPath: deutschland/schleswig-holstein/nordfriesland/sylt/tinnum/landhaus-treskersand - properties: - code: - example: landhaus-treskersand - type: string - languageCode: - example: de - type: string - currencyCode: - example: EUR - type: string - unitSystem: - example: metric - type: string - name: - example: Landhaus Treskersand - type: string - uri: - example: landhaus-treskersand - type: string - serviceList: - items: - example: 5001 - type: number - type: array - categoryList: - items: - example: 5006 + enum: + - 0 + - 1 + - 2 + - 3 + - 4 + - 5 + - 6 + - 7 + - 8 + - 9 + - 10 + - 11 + - 12 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 90001 + example: 14 type: number type: array - uriPath: - example: deutschland/schleswig-holstein/nordfriesland/sylt/tinnum/landhaus-treskersand - type: string - text: - example: Im Herzen der Insel-im Süden von Tinnum in einer ruhigen Seitenstrasse - unmittelbar an den Tinnumer Wiesen liegt das wunderschöne Landhaus Treskersand - mit seiner Wohnung unter Reet. - type: string - geo: - $ref: '#/components/schemas/_v1_availability_search_post_200_response_list_inner_geo' - mediaList: - items: - $ref: '#/components/schemas/_v1_availability_search_post_200_response_list_inner_mediaList_inner' - type: array - attractionList: - items: - $ref: '#/components/schemas/_v1_availability_search_post_200_response_list_inner_attractionList_inner' - type: array - lowestPrice: - $ref: '#/components/schemas/_v1_availability_search_post_200_response_list_inner_lowestPrice' - type: object - _v1_availability_search_post_200_response: - example: - languageCode: de - list: - - lowestPrice: - lengthOfStay: 1 - amount: 49 - returnDate: 1660867200 - currencyCode: EUR - arrivalDate: 1660780800 - code: landhaus-treskersand - languageCode: de - uri: landhaus-treskersand - geo: - country: Deutschland - formatted_address: Westertresker 2 25980 Sylt Deutschland - locality: Sylt - sublocality: Tinnum - language: de - establishment: Sylt - country_code: DE - sublocality_level_1: Tinnum - route: Westertresker - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "2" - location: - lng: 8.3339872 - lat: 54.8962436 - state_code: SH - postal_code: "25980" - natural_feature: Sylt - place_id: ChIJ5fZnV2TdtEcRHUC697Z0nhw - mediaList: - - tagCodeList: - - 3 - - 3 - isMainImage: true - sortOrder: 1004 - url: obj_1280x960_55480_005.jpg - - tagCodeList: - - 3 - - 3 - isMainImage: true - sortOrder: 1004 - url: obj_1280x960_55480_005.jpg - name: Landhaus Treskersand - serviceList: - - 5001 - - 5001 - categoryList: - - 5006 - - 5006 - attractionList: - - distance: - unit: m - value: 2800 - name: Flughafen Sylt - typeCode: 1 - - distance: - unit: m - value: 2800 - name: Flughafen Sylt - typeCode: 1 - unitSystem: metric - text: Im Herzen der Insel-im Süden von Tinnum in einer ruhigen Seitenstrasse - unmittelbar an den Tinnumer Wiesen liegt das wunderschöne Landhaus Treskersand - mit seiner Wohnung unter Reet. - currencyCode: EUR - uriPath: deutschland/schleswig-holstein/nordfriesland/sylt/tinnum/landhaus-treskersand - - lowestPrice: - lengthOfStay: 1 - amount: 49 - returnDate: 1660867200 - currencyCode: EUR - arrivalDate: 1660780800 - code: landhaus-treskersand - languageCode: de - uri: landhaus-treskersand - geo: - country: Deutschland - formatted_address: Westertresker 2 25980 Sylt Deutschland - locality: Sylt - sublocality: Tinnum - language: de - establishment: Sylt - country_code: DE - sublocality_level_1: Tinnum - route: Westertresker - administrative_area_level_3: Nordfriesland - administrative_area_level_1: Schleswig-Holstein - street_number: "2" - location: - lng: 8.3339872 - lat: 54.8962436 - state_code: SH - postal_code: "25980" - natural_feature: Sylt - place_id: ChIJ5fZnV2TdtEcRHUC697Z0nhw - mediaList: - - tagCodeList: - - 3 - - 3 - isMainImage: true - sortOrder: 1004 - url: obj_1280x960_55480_005.jpg - - tagCodeList: - - 3 - - 3 - isMainImage: true - sortOrder: 1004 - url: obj_1280x960_55480_005.jpg - name: Landhaus Treskersand - serviceList: - - 5001 - - 5001 - categoryList: - - 5006 - - 5006 - attractionList: - - distance: - unit: m - value: 2800 - name: Flughafen Sylt - typeCode: 1 - - distance: - unit: m - value: 2800 - name: Flughafen Sylt - typeCode: 1 - unitSystem: metric - text: Im Herzen der Insel-im Süden von Tinnum in einer ruhigen Seitenstrasse - unmittelbar an den Tinnumer Wiesen liegt das wunderschöne Landhaus Treskersand - mit seiner Wohnung unter Reet. - currencyCode: EUR - uriPath: deutschland/schleswig-holstein/nordfriesland/sylt/tinnum/landhaus-treskersand - properties: - languageCode: - example: de - type: string - list: + roomTypeList: + description: The rooms this availability is for. items: - $ref: '#/components/schemas/_v1_availability_search_post_200_response_list_inner' + description: The code identifying the room type. + example: amrum + type: string type: array + required: + - mealPlanList + - name + - ratePlanList + - roomTypeList type: object - _v1_location_search_post_200_response_list_inner: - example: - lowestPrice: 49 - propertyUriName: landhaus-treskersand - name: Landhaus Treskersand - type: property - currencyCode: EUR - propertyId: dmo-demo:landhaus-treskersand - propertyUriPath: en:germany/schleswig-holstein/nordfriesland/sylt/tinnum/landhaus-treskersand - properties: - name: - example: Landhaus Treskersand - type: string - type: - example: property - type: string - currencyCode: - example: EUR - type: string - lowestPrice: - example: 49 - type: number - propertyId: - example: dmo-demo:landhaus-treskersand - type: string - propertyUriName: - example: landhaus-treskersand - type: string - propertyUriPath: - example: en:germany/schleswig-holstein/nordfriesland/sylt/tinnum/landhaus-treskersand - type: string - type: object - _v1_location_search_post_200_response: + _properties__propertyId__availability_get_200_response: example: - languageCode: en - list: - - lowestPrice: 49 - propertyUriName: landhaus-treskersand - name: Landhaus Treskersand - type: property - currencyCode: EUR - propertyId: dmo-demo:landhaus-treskersand - propertyUriPath: en:germany/schleswig-holstein/nordfriesland/sylt/tinnum/landhaus-treskersand - - lowestPrice: 49 - propertyUriName: landhaus-treskersand - name: Landhaus Treskersand - type: property - currencyCode: EUR - propertyId: dmo-demo:landhaus-treskersand - propertyUriPath: en:germany/schleswig-holstein/nordfriesland/sylt/tinnum/landhaus-treskersand + availabilityList: + - roomTypeList: + - amrum + - amrum + ratePlanList: + - code: standard-8436 + name: Standard 8436 + active: false + pricingList: + - dateTime: 1662595200000 + occupancy: 1 + currencyCode: EUR + priceList: + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - dateTime: 1662595200000 + occupancy: 1 + currencyCode: EUR + priceList: + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - code: standard-8436 + name: Standard 8436 + active: false + pricingList: + - dateTime: 1662595200000 + occupancy: 1 + currencyCode: EUR + priceList: + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - dateTime: 1662595200000 + occupancy: 1 + currencyCode: EUR + priceList: + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + name: Standard + mealPlanList: + - 14 + - 14 + - roomTypeList: + - amrum + - amrum + ratePlanList: + - code: standard-8436 + name: Standard 8436 + active: false + pricingList: + - dateTime: 1662595200000 + occupancy: 1 + currencyCode: EUR + priceList: + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - dateTime: 1662595200000 + occupancy: 1 + currencyCode: EUR + priceList: + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - code: standard-8436 + name: Standard 8436 + active: false + pricingList: + - dateTime: 1662595200000 + occupancy: 1 + currencyCode: EUR + priceList: + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + - dateTime: 1662595200000 + occupancy: 1 + currencyCode: EUR + priceList: + "1": 182 + "2": 364 + "3": 546 + "4": 728 + "5": 910 + "6": 1092 + "7": 1274 + "8": 1456 + "9": 1638 + "10": 1820 + "11": 2002 + "12": 2184 + "13": 2366 + "14": 2548 + "15": 2730 + "16": 2912 + "17": 3094 + "18": 3276 + "19": 3458 + "20": 3640 + "21": 3822 + "22": 4004 + "23": 4186 + "24": 4368 + "25": 4550 + "26": 4732 + "27": 4914 + "28": 5096 + "29": 5278 + "30": 5460 + name: Standard + mealPlanList: + - 14 + - 14 properties: - languageCode: - example: en - type: string - list: + availabilityList: + description: An array of objects describing the available booking options. items: - $ref: '#/components/schemas/_v1_location_search_post_200_response_list_inner' + $ref: '#/components/schemas/_properties__propertyId__availability_get_200_response_availabilityList_inner' type: array + required: + - availabilityList type: object securitySchemes: ApiKeyAuth: + description: "API key for the API, managed in self service by the tenant via\ + \ the LODGEA Management Console." in: header name: apiKey type: apiKey -x-tagGroups: -- name: Availability - tags: - - availability -- name: Location - tags: - - location -- name: Property - tags: - - property diff --git a/build.gradle b/build.gradle index 1276466..6e0594a 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'com.lodgea' -version = '1.0.2' +version = '' buildscript { repositories { diff --git a/build.sbt b/build.sbt index 96054f0..318d145 100644 --- a/build.sbt +++ b/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "com.lodgea", name := "lodgea", - version := "1.0.2", + version := "", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/docs/AvailabilitySearchPost200Response.md b/docs/AvailabilitySearchPost200Response.md new file mode 100644 index 0000000..2c2fb12 --- /dev/null +++ b/docs/AvailabilitySearchPost200Response.md @@ -0,0 +1,59 @@ + + +# AvailabilitySearchPost200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**languageCode** | [**LanguageCodeEnum**](#LanguageCodeEnum) | The language code of the language in which the descriptive texts for each found property are returned.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> | | +|**_list** | [**List<AvailablePropertiesInner1>**](AvailablePropertiesInner1.md) | A list of available properties matching the given criteria. | | + + + +## Enum: LanguageCodeEnum + +| Name | Value | +|---- | -----| +| AF | "af" | +| AR | "ar" | +| BG | "bg" | +| CA | "ca" | +| CS | "cs" | +| DA | "da" | +| DE | "de" | +| EL | "el" | +| EN | "en" | +| ES | "es" | +| ET | "et" | +| FI | "fi" | +| FR | "fr" | +| HE | "he" | +| HI | "hi" | +| HR | "hr" | +| HU | "hu" | +| ID | "id" | +| IS | "is" | +| IT | "it" | +| JA | "ja" | +| KO | "ko" | +| LT | "lt" | +| LV | "lv" | +| NL | "nl" | +| NO | "no" | +| PL | "pl" | +| PT | "pt" | +| RO | "ro" | +| RU | "ru" | +| SK | "sk" | +| SL | "sl" | +| SR | "sr" | +| SV | "sv" | +| TH | "th" | +| TR | "tr" | +| VI | "vi" | +| ZH | "zh" | + + + diff --git a/docs/AvailabilitySearchPostRequest.md b/docs/AvailabilitySearchPostRequest.md new file mode 100644 index 0000000..fd29020 --- /dev/null +++ b/docs/AvailabilitySearchPostRequest.md @@ -0,0 +1,1328 @@ + + +# AvailabilitySearchPostRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**adultCount** | **Integer** | The amount of adults that will stay at the property. | [optional] | +|**childCount** | **Integer** | The amount of children that will stay at the property. | [optional] | +|**childAgeList** | **List<Integer>** | A list describing the ages of the children that will stay at the property. If <code>childAgeList</code> is set <code>childCount</code> has to be set as well. If <code>childAgeList</code> and <code>childCount</code> are set, <code>childCount</code> must be equal to the length of <code>childAgeList</code>. | [optional] | +|**currencyCode** | [**CurrencyCodeEnum**](#CurrencyCodeEnum) | The currency code of the currency in which the lowest price for each found location should be returned.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> | | +|**languageCode** | [**LanguageCodeEnum**](#LanguageCodeEnum) | The language code of the language in which the descriptive texts for each found property should be returned.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> | | +|**unitSystem** | [**UnitSystemEnum**](#UnitSystemEnum) | The unit system to use in the result. | [optional] | +|**minLengthOfStay** | **Integer** | The desired minimum length of stay in nights. | [optional] | +|**maxLengthOfStay** | **Integer** | The desired maximum length of stay in nights. | [optional] | +|**locationName** | **String** | The name of a location the properties should be located in.If <code>locationType</code> is set, <code>locationName</code> has to bet set as well. | [optional] | +|**locationType** | [**LocationTypeEnum**](#LocationTypeEnum) | Defines the type of<code>locationName</code>. If <code>locationType</code> is set, <code>locationName</code> has to bet set as well.<p>See also <a href=\"#locationtypes\">in the appendix</a>.</p> | [optional] | +|**earliestArrival** | **String** | The earliest possible arrival date. Expects exactly the format of \"YYYY-MM-DD\". | [optional] | +|**latestReturn** | **String** | The latest possible departure date. Expects exactly the format of \"YYYY-MM-DD\". | [optional] | +|**sort** | [**SortEnum**](#SortEnum) | The criteria to order the results by. Sort order for price is ascending, sort order for quality is always descending. Quality is an internally calculated score for the property.', )} | [optional] | +|**serviceList** | [**List<ServiceListEnum>**](#List<ServiceListEnum>) | A list of service codes indicating which services and amenities the entire property should offer. The codes are AND chained.<p>See also <a href=\"#servicecodes\">in the appendix</a>.</p> | [optional] | +|**typeList** | [**List<TypeListEnum>**](#List<TypeListEnum>) | A list of property class type codes specifying the desired property classes. The codes are OR chained.<p>See also <a href=\"#propertyclass-type-codes\">in the appendix</a>.</p> | [optional] | +|**unitTypeList** | [**List<UnitTypeListEnum>**](#List<UnitTypeListEnum>) | A list of unit and room type codes indicating which kinds of unit/room type is desired.<p>See also <a href=\"#unitand-room-type-codes\">in the appendix</a>.</p> | [optional] | +|**unitAmenityList** | [**List<UnitAmenityListEnum>**](#List<UnitAmenityListEnum>) | A list of room amenity type codes indicating which room level amenities are desired. The codes are AND chained.<p>See also <a href=\"#unitand-room-amenity-type-codes\">in the appendix</a>.</p> | [optional] | +|**mealPlanList** | [**List<MealPlanListEnum>**](#List<MealPlanListEnum>) | A list of meal plan type codes indicating which kinds of meal plan type is desired.<p>See also <a href=\"#mealplan-type-codes\">in the appendix</a>.</p> | [optional] | + + + +## Enum: CurrencyCodeEnum + +| Name | Value | +|---- | -----| +| AED | "AED" | +| ARS | "ARS" | +| AUD | "AUD" | +| AZN | "AZN" | +| BGN | "BGN" | +| BHD | "BHD" | +| BRL | "BRL" | +| CAD | "CAD" | +| CHF | "CHF" | +| CLP | "CLP" | +| CNY | "CNY" | +| COP | "COP" | +| CZK | "CZK" | +| DKK | "DKK" | +| EGP | "EGP" | +| EUR | "EUR" | +| FJD | "FJD" | +| GBP | "GBP" | +| GEL | "GEL" | +| HKD | "HKD" | +| HUF | "HUF" | +| IDR | "IDR" | +| ILS | "ILS" | +| INR | "INR" | +| JOD | "JOD" | +| JPY | "JPY" | +| KRW | "KRW" | +| KWD | "KWD" | +| KZT | "KZT" | +| MDL | "MDL" | +| MXN | "MXN" | +| MYR | "MYR" | +| NAD | "NAD" | +| NOK | "NOK" | +| NZD | "NZD" | +| OMR | "OMR" | +| PLN | "PLN" | +| QAR | "QAR" | +| RON | "RON" | +| RUB | "RUB" | +| SAR | "SAR" | +| SEK | "SEK" | +| SGD | "SGD" | +| THB | "THB" | +| TRY | "TRY" | +| TWD | "TWD" | +| UAH | "UAH" | +| USD | "USD" | +| XOF | "XOF" | +| ZAR | "ZAR" | + + + +## Enum: LanguageCodeEnum + +| Name | Value | +|---- | -----| +| AF | "af" | +| AR | "ar" | +| BG | "bg" | +| CA | "ca" | +| CS | "cs" | +| DA | "da" | +| DE | "de" | +| EL | "el" | +| EN | "en" | +| ES | "es" | +| ET | "et" | +| FI | "fi" | +| FR | "fr" | +| HE | "he" | +| HI | "hi" | +| HR | "hr" | +| HU | "hu" | +| ID | "id" | +| IS | "is" | +| IT | "it" | +| JA | "ja" | +| KO | "ko" | +| LT | "lt" | +| LV | "lv" | +| NL | "nl" | +| NO | "no" | +| PL | "pl" | +| PT | "pt" | +| RO | "ro" | +| RU | "ru" | +| SK | "sk" | +| SL | "sl" | +| SR | "sr" | +| SV | "sv" | +| TH | "th" | +| TR | "tr" | +| VI | "vi" | +| ZH | "zh" | + + + +## Enum: UnitSystemEnum + +| Name | Value | +|---- | -----| +| METRIC | "metric" | +| IMPERIAL | "imperial" | + + + +## Enum: LocationTypeEnum + +| Name | Value | +|---- | -----| +| FORMATTED_ADDRESS | "formatted_address" | +| PLACE_ID | "place_id" | +| LOCALITY | "locality" | +| ADMINISTRATIVE_AREA_LEVEL_1 | "administrative_area_level_1" | +| ADMINISTRATIVE_AREA_LEVEL_2 | "administrative_area_level_2" | +| ADMINISTRATIVE_AREA_LEVEL_3 | "administrative_area_level_3" | +| ADMINISTRATIVE_AREA_LEVEL_4 | "administrative_area_level_4" | +| ADMINISTRATIVE_AREA_LEVEL_5 | "administrative_area_level_5" | +| STATE_CODE | "state_code" | +| COUNTRY | "country" | +| COUNTRY_CODE | "country_code" | +| POSTAL_CODE | "postal_code" | +| LANGUAGE | "language" | +| NATURAL_FEATURE | "natural_feature" | +| ESTABLISHMENT | "establishment" | +| SUBLOCALITY | "sublocality" | +| SUBLOCALITY_LEVEL_1 | "sublocality_level_1" | +| SUBLOCALITY_LEVEL_2 | "sublocality_level_2" | +| SUBLOCALITY_LEVEL_3 | "sublocality_level_3" | +| SUBLOCALITY_LEVEL_4 | "sublocality_level_4" | +| SUBLOCALITY_LEVEL_5 | "sublocality_level_5" | +| STREETNUMBER | "streetNumber" | + + + +## Enum: SortEnum + +| Name | Value | +|---- | -----| +| QUALITY | "quality" | +| PRICE | "price" | + + + +## Enum: List<ServiceListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_30 | new BigDecimal("30") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | +| NUMBER_34 | new BigDecimal("34") | +| NUMBER_35 | new BigDecimal("35") | +| NUMBER_36 | new BigDecimal("36") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_38 | new BigDecimal("38") | +| NUMBER_39 | new BigDecimal("39") | +| NUMBER_40 | new BigDecimal("40") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_44 | new BigDecimal("44") | +| NUMBER_45 | new BigDecimal("45") | +| NUMBER_46 | new BigDecimal("46") | +| NUMBER_47 | new BigDecimal("47") | +| NUMBER_48 | new BigDecimal("48") | +| NUMBER_49 | new BigDecimal("49") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_51 | new BigDecimal("51") | +| NUMBER_52 | new BigDecimal("52") | +| NUMBER_53 | new BigDecimal("53") | +| NUMBER_54 | new BigDecimal("54") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_56 | new BigDecimal("56") | +| NUMBER_57 | new BigDecimal("57") | +| NUMBER_58 | new BigDecimal("58") | +| NUMBER_59 | new BigDecimal("59") | +| NUMBER_60 | new BigDecimal("60") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_62 | new BigDecimal("62") | +| NUMBER_63 | new BigDecimal("63") | +| NUMBER_64 | new BigDecimal("64") | +| NUMBER_65 | new BigDecimal("65") | +| NUMBER_66 | new BigDecimal("66") | +| NUMBER_67 | new BigDecimal("67") | +| NUMBER_68 | new BigDecimal("68") | +| NUMBER_69 | new BigDecimal("69") | +| NUMBER_70 | new BigDecimal("70") | +| NUMBER_71 | new BigDecimal("71") | +| NUMBER_72 | new BigDecimal("72") | +| NUMBER_73 | new BigDecimal("73") | +| NUMBER_74 | new BigDecimal("74") | +| NUMBER_75 | new BigDecimal("75") | +| NUMBER_76 | new BigDecimal("76") | +| NUMBER_77 | new BigDecimal("77") | +| NUMBER_78 | new BigDecimal("78") | +| NUMBER_79 | new BigDecimal("79") | +| NUMBER_80 | new BigDecimal("80") | +| NUMBER_81 | new BigDecimal("81") | +| NUMBER_82 | new BigDecimal("82") | +| NUMBER_83 | new BigDecimal("83") | +| NUMBER_84 | new BigDecimal("84") | +| NUMBER_85 | new BigDecimal("85") | +| NUMBER_86 | new BigDecimal("86") | +| NUMBER_87 | new BigDecimal("87") | +| NUMBER_88 | new BigDecimal("88") | +| NUMBER_89 | new BigDecimal("89") | +| NUMBER_90 | new BigDecimal("90") | +| NUMBER_91 | new BigDecimal("91") | +| NUMBER_92 | new BigDecimal("92") | +| NUMBER_93 | new BigDecimal("93") | +| NUMBER_94 | new BigDecimal("94") | +| NUMBER_95 | new BigDecimal("95") | +| NUMBER_96 | new BigDecimal("96") | +| NUMBER_97 | new BigDecimal("97") | +| NUMBER_98 | new BigDecimal("98") | +| NUMBER_99 | new BigDecimal("99") | +| NUMBER_100 | new BigDecimal("100") | +| NUMBER_101 | new BigDecimal("101") | +| NUMBER_102 | new BigDecimal("102") | +| NUMBER_103 | new BigDecimal("103") | +| NUMBER_104 | new BigDecimal("104") | +| NUMBER_105 | new BigDecimal("105") | +| NUMBER_106 | new BigDecimal("106") | +| NUMBER_107 | new BigDecimal("107") | +| NUMBER_108 | new BigDecimal("108") | +| NUMBER_109 | new BigDecimal("109") | +| NUMBER_110 | new BigDecimal("110") | +| NUMBER_111 | new BigDecimal("111") | +| NUMBER_112 | new BigDecimal("112") | +| NUMBER_113 | new BigDecimal("113") | +| NUMBER_114 | new BigDecimal("114") | +| NUMBER_115 | new BigDecimal("115") | +| NUMBER_116 | new BigDecimal("116") | +| NUMBER_117 | new BigDecimal("117") | +| NUMBER_118 | new BigDecimal("118") | +| NUMBER_119 | new BigDecimal("119") | +| NUMBER_120 | new BigDecimal("120") | +| NUMBER_121 | new BigDecimal("121") | +| NUMBER_122 | new BigDecimal("122") | +| NUMBER_123 | new BigDecimal("123") | +| NUMBER_124 | new BigDecimal("124") | +| NUMBER_125 | new BigDecimal("125") | +| NUMBER_126 | new BigDecimal("126") | +| NUMBER_127 | new BigDecimal("127") | +| NUMBER_128 | new BigDecimal("128") | +| NUMBER_129 | new BigDecimal("129") | +| NUMBER_130 | new BigDecimal("130") | +| NUMBER_131 | new BigDecimal("131") | +| NUMBER_132 | new BigDecimal("132") | +| NUMBER_133 | new BigDecimal("133") | +| NUMBER_134 | new BigDecimal("134") | +| NUMBER_135 | new BigDecimal("135") | +| NUMBER_136 | new BigDecimal("136") | +| NUMBER_137 | new BigDecimal("137") | +| NUMBER_138 | new BigDecimal("138") | +| NUMBER_139 | new BigDecimal("139") | +| NUMBER_140 | new BigDecimal("140") | +| NUMBER_141 | new BigDecimal("141") | +| NUMBER_142 | new BigDecimal("142") | +| NUMBER_143 | new BigDecimal("143") | +| NUMBER_144 | new BigDecimal("144") | +| NUMBER_145 | new BigDecimal("145") | +| NUMBER_146 | new BigDecimal("146") | +| NUMBER_147 | new BigDecimal("147") | +| NUMBER_148 | new BigDecimal("148") | +| NUMBER_149 | new BigDecimal("149") | +| NUMBER_150 | new BigDecimal("150") | +| NUMBER_151 | new BigDecimal("151") | +| NUMBER_152 | new BigDecimal("152") | +| NUMBER_153 | new BigDecimal("153") | +| NUMBER_154 | new BigDecimal("154") | +| NUMBER_155 | new BigDecimal("155") | +| NUMBER_156 | new BigDecimal("156") | +| NUMBER_157 | new BigDecimal("157") | +| NUMBER_158 | new BigDecimal("158") | +| NUMBER_159 | new BigDecimal("159") | +| NUMBER_160 | new BigDecimal("160") | +| NUMBER_161 | new BigDecimal("161") | +| NUMBER_162 | new BigDecimal("162") | +| NUMBER_163 | new BigDecimal("163") | +| NUMBER_164 | new BigDecimal("164") | +| NUMBER_165 | new BigDecimal("165") | +| NUMBER_166 | new BigDecimal("166") | +| NUMBER_167 | new BigDecimal("167") | +| NUMBER_168 | new BigDecimal("168") | +| NUMBER_169 | new BigDecimal("169") | +| NUMBER_170 | new BigDecimal("170") | +| NUMBER_171 | new BigDecimal("171") | +| NUMBER_172 | new BigDecimal("172") | +| NUMBER_173 | new BigDecimal("173") | +| NUMBER_174 | new BigDecimal("174") | +| NUMBER_175 | new BigDecimal("175") | +| NUMBER_176 | new BigDecimal("176") | +| NUMBER_177 | new BigDecimal("177") | +| NUMBER_178 | new BigDecimal("178") | +| NUMBER_179 | new BigDecimal("179") | +| NUMBER_180 | new BigDecimal("180") | +| NUMBER_181 | new BigDecimal("181") | +| NUMBER_182 | new BigDecimal("182") | +| NUMBER_183 | new BigDecimal("183") | +| NUMBER_184 | new BigDecimal("184") | +| NUMBER_185 | new BigDecimal("185") | +| NUMBER_186 | new BigDecimal("186") | +| NUMBER_187 | new BigDecimal("187") | +| NUMBER_188 | new BigDecimal("188") | +| NUMBER_189 | new BigDecimal("189") | +| NUMBER_190 | new BigDecimal("190") | +| NUMBER_191 | new BigDecimal("191") | +| NUMBER_192 | new BigDecimal("192") | +| NUMBER_193 | new BigDecimal("193") | +| NUMBER_194 | new BigDecimal("194") | +| NUMBER_195 | new BigDecimal("195") | +| NUMBER_196 | new BigDecimal("196") | +| NUMBER_197 | new BigDecimal("197") | +| NUMBER_198 | new BigDecimal("198") | +| NUMBER_199 | new BigDecimal("199") | +| NUMBER_200 | new BigDecimal("200") | +| NUMBER_201 | new BigDecimal("201") | +| NUMBER_202 | new BigDecimal("202") | +| NUMBER_203 | new BigDecimal("203") | +| NUMBER_204 | new BigDecimal("204") | +| NUMBER_205 | new BigDecimal("205") | +| NUMBER_206 | new BigDecimal("206") | +| NUMBER_207 | new BigDecimal("207") | +| NUMBER_208 | new BigDecimal("208") | +| NUMBER_209 | new BigDecimal("209") | +| NUMBER_210 | new BigDecimal("210") | +| NUMBER_211 | new BigDecimal("211") | +| NUMBER_212 | new BigDecimal("212") | +| NUMBER_213 | new BigDecimal("213") | +| NUMBER_214 | new BigDecimal("214") | +| NUMBER_215 | new BigDecimal("215") | +| NUMBER_216 | new BigDecimal("216") | +| NUMBER_217 | new BigDecimal("217") | +| NUMBER_218 | new BigDecimal("218") | +| NUMBER_219 | new BigDecimal("219") | +| NUMBER_220 | new BigDecimal("220") | +| NUMBER_221 | new BigDecimal("221") | +| NUMBER_222 | new BigDecimal("222") | +| NUMBER_223 | new BigDecimal("223") | +| NUMBER_224 | new BigDecimal("224") | +| NUMBER_225 | new BigDecimal("225") | +| NUMBER_226 | new BigDecimal("226") | +| NUMBER_227 | new BigDecimal("227") | +| NUMBER_228 | new BigDecimal("228") | +| NUMBER_229 | new BigDecimal("229") | +| NUMBER_230 | new BigDecimal("230") | +| NUMBER_231 | new BigDecimal("231") | +| NUMBER_232 | new BigDecimal("232") | +| NUMBER_233 | new BigDecimal("233") | +| NUMBER_234 | new BigDecimal("234") | +| NUMBER_235 | new BigDecimal("235") | +| NUMBER_236 | new BigDecimal("236") | +| NUMBER_237 | new BigDecimal("237") | +| NUMBER_238 | new BigDecimal("238") | +| NUMBER_239 | new BigDecimal("239") | +| NUMBER_240 | new BigDecimal("240") | +| NUMBER_241 | new BigDecimal("241") | +| NUMBER_242 | new BigDecimal("242") | +| NUMBER_243 | new BigDecimal("243") | +| NUMBER_244 | new BigDecimal("244") | +| NUMBER_245 | new BigDecimal("245") | +| NUMBER_246 | new BigDecimal("246") | +| NUMBER_247 | new BigDecimal("247") | +| NUMBER_248 | new BigDecimal("248") | +| NUMBER_249 | new BigDecimal("249") | +| NUMBER_250 | new BigDecimal("250") | +| NUMBER_251 | new BigDecimal("251") | +| NUMBER_252 | new BigDecimal("252") | +| NUMBER_253 | new BigDecimal("253") | +| NUMBER_254 | new BigDecimal("254") | +| NUMBER_255 | new BigDecimal("255") | +| NUMBER_256 | new BigDecimal("256") | +| NUMBER_257 | new BigDecimal("257") | +| NUMBER_258 | new BigDecimal("258") | +| NUMBER_259 | new BigDecimal("259") | +| NUMBER_260 | new BigDecimal("260") | +| NUMBER_261 | new BigDecimal("261") | +| NUMBER_262 | new BigDecimal("262") | +| NUMBER_263 | new BigDecimal("263") | +| NUMBER_264 | new BigDecimal("264") | +| NUMBER_265 | new BigDecimal("265") | +| NUMBER_266 | new BigDecimal("266") | +| NUMBER_267 | new BigDecimal("267") | +| NUMBER_268 | new BigDecimal("268") | +| NUMBER_269 | new BigDecimal("269") | +| NUMBER_270 | new BigDecimal("270") | +| NUMBER_271 | new BigDecimal("271") | +| NUMBER_272 | new BigDecimal("272") | +| NUMBER_273 | new BigDecimal("273") | +| NUMBER_274 | new BigDecimal("274") | +| NUMBER_275 | new BigDecimal("275") | +| NUMBER_276 | new BigDecimal("276") | +| NUMBER_277 | new BigDecimal("277") | +| NUMBER_278 | new BigDecimal("278") | +| NUMBER_279 | new BigDecimal("279") | +| NUMBER_280 | new BigDecimal("280") | +| NUMBER_281 | new BigDecimal("281") | +| NUMBER_282 | new BigDecimal("282") | +| NUMBER_283 | new BigDecimal("283") | +| NUMBER_284 | new BigDecimal("284") | +| NUMBER_285 | new BigDecimal("285") | +| NUMBER_286 | new BigDecimal("286") | +| NUMBER_287 | new BigDecimal("287") | +| NUMBER_288 | new BigDecimal("288") | +| NUMBER_289 | new BigDecimal("289") | +| NUMBER_290 | new BigDecimal("290") | +| NUMBER_291 | new BigDecimal("291") | +| NUMBER_292 | new BigDecimal("292") | +| NUMBER_293 | new BigDecimal("293") | +| NUMBER_294 | new BigDecimal("294") | +| NUMBER_295 | new BigDecimal("295") | +| NUMBER_296 | new BigDecimal("296") | +| NUMBER_297 | new BigDecimal("297") | +| NUMBER_298 | new BigDecimal("298") | +| NUMBER_299 | new BigDecimal("299") | +| NUMBER_300 | new BigDecimal("300") | +| NUMBER_301 | new BigDecimal("301") | +| NUMBER_302 | new BigDecimal("302") | +| NUMBER_303 | new BigDecimal("303") | +| NUMBER_304 | new BigDecimal("304") | +| NUMBER_305 | new BigDecimal("305") | +| NUMBER_306 | new BigDecimal("306") | +| NUMBER_307 | new BigDecimal("307") | +| NUMBER_308 | new BigDecimal("308") | +| NUMBER_309 | new BigDecimal("309") | +| NUMBER_310 | new BigDecimal("310") | +| NUMBER_311 | new BigDecimal("311") | +| NUMBER_312 | new BigDecimal("312") | +| NUMBER_313 | new BigDecimal("313") | +| NUMBER_314 | new BigDecimal("314") | +| NUMBER_315 | new BigDecimal("315") | +| NUMBER_316 | new BigDecimal("316") | +| NUMBER_317 | new BigDecimal("317") | +| NUMBER_318 | new BigDecimal("318") | +| NUMBER_319 | new BigDecimal("319") | +| NUMBER_320 | new BigDecimal("320") | +| NUMBER_321 | new BigDecimal("321") | +| NUMBER_322 | new BigDecimal("322") | +| NUMBER_323 | new BigDecimal("323") | +| NUMBER_324 | new BigDecimal("324") | +| NUMBER_325 | new BigDecimal("325") | +| NUMBER_326 | new BigDecimal("326") | +| NUMBER_327 | new BigDecimal("327") | +| NUMBER_328 | new BigDecimal("328") | +| NUMBER_329 | new BigDecimal("329") | +| NUMBER_331 | new BigDecimal("331") | +| NUMBER_332 | new BigDecimal("332") | +| NUMBER_333 | new BigDecimal("333") | +| NUMBER_334 | new BigDecimal("334") | +| NUMBER_335 | new BigDecimal("335") | +| NUMBER_336 | new BigDecimal("336") | +| NUMBER_337 | new BigDecimal("337") | +| NUMBER_338 | new BigDecimal("338") | +| NUMBER_339 | new BigDecimal("339") | +| NUMBER_340 | new BigDecimal("340") | +| NUMBER_341 | new BigDecimal("341") | +| NUMBER_342 | new BigDecimal("342") | +| NUMBER_343 | new BigDecimal("343") | +| NUMBER_344 | new BigDecimal("344") | +| NUMBER_345 | new BigDecimal("345") | +| NUMBER_348 | new BigDecimal("348") | +| NUMBER_349 | new BigDecimal("349") | +| NUMBER_350 | new BigDecimal("350") | +| NUMBER_351 | new BigDecimal("351") | +| NUMBER_5000 | new BigDecimal("5000") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | +| NUMBER_5009 | new BigDecimal("5009") | +| NUMBER_5010 | new BigDecimal("5010") | +| NUMBER_5011 | new BigDecimal("5011") | +| NUMBER_5012 | new BigDecimal("5012") | +| NUMBER_5013 | new BigDecimal("5013") | +| NUMBER_5014 | new BigDecimal("5014") | +| NUMBER_5015 | new BigDecimal("5015") | +| NUMBER_5016 | new BigDecimal("5016") | +| NUMBER_5017 | new BigDecimal("5017") | +| NUMBER_5018 | new BigDecimal("5018") | +| NUMBER_5020 | new BigDecimal("5020") | +| NUMBER_5021 | new BigDecimal("5021") | +| NUMBER_5022 | new BigDecimal("5022") | +| NUMBER_5023 | new BigDecimal("5023") | +| NUMBER_5024 | new BigDecimal("5024") | +| NUMBER_5025 | new BigDecimal("5025") | +| NUMBER_5026 | new BigDecimal("5026") | +| NUMBER_5027 | new BigDecimal("5027") | +| NUMBER_5028 | new BigDecimal("5028") | +| NUMBER_5029 | new BigDecimal("5029") | +| NUMBER_5030 | new BigDecimal("5030") | +| NUMBER_5031 | new BigDecimal("5031") | +| NUMBER_5032 | new BigDecimal("5032") | +| NUMBER_5033 | new BigDecimal("5033") | +| NUMBER_5034 | new BigDecimal("5034") | +| NUMBER_5035 | new BigDecimal("5035") | +| NUMBER_5036 | new BigDecimal("5036") | +| NUMBER_5037 | new BigDecimal("5037") | +| NUMBER_5039 | new BigDecimal("5039") | +| NUMBER_5040 | new BigDecimal("5040") | +| NUMBER_5041 | new BigDecimal("5041") | +| NUMBER_5042 | new BigDecimal("5042") | +| NUMBER_5043 | new BigDecimal("5043") | +| NUMBER_5044 | new BigDecimal("5044") | +| NUMBER_5045 | new BigDecimal("5045") | +| NUMBER_5046 | new BigDecimal("5046") | +| NUMBER_5047 | new BigDecimal("5047") | +| NUMBER_5048 | new BigDecimal("5048") | +| NUMBER_5049 | new BigDecimal("5049") | +| NUMBER_5050 | new BigDecimal("5050") | +| NUMBER_5051 | new BigDecimal("5051") | +| NUMBER_5052 | new BigDecimal("5052") | +| NUMBER_5053 | new BigDecimal("5053") | +| NUMBER_5054 | new BigDecimal("5054") | +| NUMBER_5055 | new BigDecimal("5055") | +| NUMBER_5056 | new BigDecimal("5056") | +| NUMBER_5057 | new BigDecimal("5057") | +| NUMBER_5058 | new BigDecimal("5058") | +| NUMBER_5059 | new BigDecimal("5059") | +| NUMBER_5060 | new BigDecimal("5060") | +| NUMBER_5061 | new BigDecimal("5061") | +| NUMBER_5062 | new BigDecimal("5062") | +| NUMBER_5063 | new BigDecimal("5063") | +| NUMBER_5064 | new BigDecimal("5064") | +| NUMBER_5065 | new BigDecimal("5065") | +| NUMBER_5066 | new BigDecimal("5066") | +| NUMBER_5067 | new BigDecimal("5067") | +| NUMBER_5068 | new BigDecimal("5068") | +| NUMBER_5069 | new BigDecimal("5069") | +| NUMBER_5070 | new BigDecimal("5070") | +| NUMBER_5071 | new BigDecimal("5071") | +| NUMBER_5072 | new BigDecimal("5072") | +| NUMBER_5073 | new BigDecimal("5073") | +| NUMBER_5074 | new BigDecimal("5074") | +| NUMBER_5075 | new BigDecimal("5075") | +| NUMBER_5076 | new BigDecimal("5076") | +| NUMBER_5077 | new BigDecimal("5077") | +| NUMBER_5078 | new BigDecimal("5078") | +| NUMBER_5079 | new BigDecimal("5079") | +| NUMBER_5080 | new BigDecimal("5080") | +| NUMBER_5081 | new BigDecimal("5081") | +| NUMBER_5082 | new BigDecimal("5082") | +| NUMBER_5083 | new BigDecimal("5083") | +| NUMBER_5084 | new BigDecimal("5084") | +| NUMBER_5085 | new BigDecimal("5085") | +| NUMBER_5086 | new BigDecimal("5086") | +| NUMBER_5087 | new BigDecimal("5087") | +| NUMBER_5088 | new BigDecimal("5088") | +| NUMBER_5089 | new BigDecimal("5089") | +| NUMBER_5090 | new BigDecimal("5090") | +| NUMBER_5091 | new BigDecimal("5091") | +| NUMBER_5092 | new BigDecimal("5092") | +| NUMBER_5093 | new BigDecimal("5093") | +| NUMBER_5094 | new BigDecimal("5094") | +| NUMBER_5095 | new BigDecimal("5095") | +| NUMBER_5096 | new BigDecimal("5096") | +| NUMBER_5097 | new BigDecimal("5097") | +| NUMBER_5098 | new BigDecimal("5098") | +| NUMBER_5099 | new BigDecimal("5099") | +| NUMBER_5100 | new BigDecimal("5100") | +| NUMBER_5101 | new BigDecimal("5101") | +| NUMBER_5102 | new BigDecimal("5102") | +| NUMBER_5103 | new BigDecimal("5103") | +| NUMBER_5104 | new BigDecimal("5104") | +| NUMBER_5105 | new BigDecimal("5105") | +| NUMBER_5106 | new BigDecimal("5106") | +| NUMBER_5107 | new BigDecimal("5107") | +| NUMBER_5108 | new BigDecimal("5108") | +| NUMBER_5109 | new BigDecimal("5109") | +| NUMBER_5110 | new BigDecimal("5110") | +| NUMBER_5111 | new BigDecimal("5111") | +| NUMBER_5112 | new BigDecimal("5112") | +| NUMBER_5113 | new BigDecimal("5113") | +| NUMBER_5114 | new BigDecimal("5114") | +| NUMBER_5115 | new BigDecimal("5115") | +| NUMBER_5116 | new BigDecimal("5116") | +| NUMBER_5117 | new BigDecimal("5117") | +| NUMBER_5118 | new BigDecimal("5118") | +| NUMBER_5119 | new BigDecimal("5119") | +| NUMBER_5120 | new BigDecimal("5120") | +| NUMBER_5121 | new BigDecimal("5121") | +| NUMBER_5122 | new BigDecimal("5122") | +| NUMBER_5123 | new BigDecimal("5123") | +| NUMBER_5124 | new BigDecimal("5124") | +| NUMBER_5125 | new BigDecimal("5125") | +| NUMBER_5126 | new BigDecimal("5126") | +| NUMBER_5127 | new BigDecimal("5127") | +| NUMBER_5128 | new BigDecimal("5128") | +| NUMBER_5129 | new BigDecimal("5129") | +| NUMBER_5130 | new BigDecimal("5130") | +| NUMBER_5131 | new BigDecimal("5131") | +| NUMBER_5132 | new BigDecimal("5132") | +| NUMBER_5133 | new BigDecimal("5133") | +| NUMBER_5134 | new BigDecimal("5134") | +| NUMBER_5135 | new BigDecimal("5135") | +| NUMBER_5136 | new BigDecimal("5136") | +| NUMBER_5137 | new BigDecimal("5137") | +| NUMBER_5138 | new BigDecimal("5138") | +| NUMBER_5139 | new BigDecimal("5139") | +| NUMBER_5140 | new BigDecimal("5140") | +| NUMBER_5141 | new BigDecimal("5141") | +| NUMBER_5142 | new BigDecimal("5142") | +| NUMBER_5143 | new BigDecimal("5143") | +| NUMBER_5144 | new BigDecimal("5144") | +| NUMBER_5145 | new BigDecimal("5145") | +| NUMBER_5146 | new BigDecimal("5146") | +| NUMBER_5147 | new BigDecimal("5147") | +| NUMBER_5148 | new BigDecimal("5148") | +| NUMBER_5149 | new BigDecimal("5149") | +| NUMBER_5150 | new BigDecimal("5150") | +| NUMBER_5151 | new BigDecimal("5151") | +| NUMBER_5152 | new BigDecimal("5152") | +| NUMBER_5153 | new BigDecimal("5153") | +| NUMBER_5154 | new BigDecimal("5154") | +| NUMBER_5156 | new BigDecimal("5156") | +| NUMBER_5157 | new BigDecimal("5157") | +| NUMBER_5158 | new BigDecimal("5158") | +| NUMBER_5159 | new BigDecimal("5159") | +| NUMBER_5160 | new BigDecimal("5160") | +| NUMBER_5161 | new BigDecimal("5161") | +| NUMBER_5162 | new BigDecimal("5162") | +| NUMBER_5163 | new BigDecimal("5163") | +| NUMBER_5164 | new BigDecimal("5164") | +| NUMBER_5165 | new BigDecimal("5165") | +| NUMBER_5166 | new BigDecimal("5166") | +| NUMBER_5167 | new BigDecimal("5167") | +| NUMBER_5168 | new BigDecimal("5168") | +| NUMBER_5169 | new BigDecimal("5169") | +| NUMBER_5170 | new BigDecimal("5170") | +| NUMBER_5171 | new BigDecimal("5171") | +| NUMBER_5172 | new BigDecimal("5172") | +| NUMBER_5173 | new BigDecimal("5173") | +| NUMBER_5174 | new BigDecimal("5174") | +| NUMBER_5175 | new BigDecimal("5175") | +| NUMBER_5176 | new BigDecimal("5176") | +| NUMBER_5177 | new BigDecimal("5177") | +| NUMBER_5178 | new BigDecimal("5178") | +| NUMBER_6000 | new BigDecimal("6000") | +| NUMBER_6001 | new BigDecimal("6001") | +| NUMBER_90001 | new BigDecimal("90001") | + + + +## Enum: List<TypeListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_30 | new BigDecimal("30") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | +| NUMBER_34 | new BigDecimal("34") | +| NUMBER_35 | new BigDecimal("35") | +| NUMBER_36 | new BigDecimal("36") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_38 | new BigDecimal("38") | +| NUMBER_39 | new BigDecimal("39") | +| NUMBER_40 | new BigDecimal("40") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_44 | new BigDecimal("44") | +| NUMBER_45 | new BigDecimal("45") | +| NUMBER_46 | new BigDecimal("46") | +| NUMBER_47 | new BigDecimal("47") | +| NUMBER_48 | new BigDecimal("48") | +| NUMBER_49 | new BigDecimal("49") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_51 | new BigDecimal("51") | +| NUMBER_52 | new BigDecimal("52") | +| NUMBER_53 | new BigDecimal("53") | +| NUMBER_54 | new BigDecimal("54") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_56 | new BigDecimal("56") | +| NUMBER_57 | new BigDecimal("57") | +| NUMBER_58 | new BigDecimal("58") | +| NUMBER_59 | new BigDecimal("59") | +| NUMBER_60 | new BigDecimal("60") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_62 | new BigDecimal("62") | +| NUMBER_5000 | new BigDecimal("5000") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | +| NUMBER_5009 | new BigDecimal("5009") | + + + +## Enum: List<UnitTypeListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | + + + +## Enum: List<UnitAmenityListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_30 | new BigDecimal("30") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | +| NUMBER_34 | new BigDecimal("34") | +| NUMBER_35 | new BigDecimal("35") | +| NUMBER_36 | new BigDecimal("36") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_38 | new BigDecimal("38") | +| NUMBER_39 | new BigDecimal("39") | +| NUMBER_40 | new BigDecimal("40") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_44 | new BigDecimal("44") | +| NUMBER_45 | new BigDecimal("45") | +| NUMBER_46 | new BigDecimal("46") | +| NUMBER_47 | new BigDecimal("47") | +| NUMBER_48 | new BigDecimal("48") | +| NUMBER_49 | new BigDecimal("49") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_51 | new BigDecimal("51") | +| NUMBER_52 | new BigDecimal("52") | +| NUMBER_53 | new BigDecimal("53") | +| NUMBER_54 | new BigDecimal("54") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_56 | new BigDecimal("56") | +| NUMBER_57 | new BigDecimal("57") | +| NUMBER_58 | new BigDecimal("58") | +| NUMBER_59 | new BigDecimal("59") | +| NUMBER_60 | new BigDecimal("60") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_62 | new BigDecimal("62") | +| NUMBER_63 | new BigDecimal("63") | +| NUMBER_64 | new BigDecimal("64") | +| NUMBER_65 | new BigDecimal("65") | +| NUMBER_66 | new BigDecimal("66") | +| NUMBER_67 | new BigDecimal("67") | +| NUMBER_68 | new BigDecimal("68") | +| NUMBER_69 | new BigDecimal("69") | +| NUMBER_70 | new BigDecimal("70") | +| NUMBER_71 | new BigDecimal("71") | +| NUMBER_72 | new BigDecimal("72") | +| NUMBER_73 | new BigDecimal("73") | +| NUMBER_74 | new BigDecimal("74") | +| NUMBER_75 | new BigDecimal("75") | +| NUMBER_76 | new BigDecimal("76") | +| NUMBER_77 | new BigDecimal("77") | +| NUMBER_78 | new BigDecimal("78") | +| NUMBER_79 | new BigDecimal("79") | +| NUMBER_80 | new BigDecimal("80") | +| NUMBER_81 | new BigDecimal("81") | +| NUMBER_82 | new BigDecimal("82") | +| NUMBER_83 | new BigDecimal("83") | +| NUMBER_84 | new BigDecimal("84") | +| NUMBER_85 | new BigDecimal("85") | +| NUMBER_86 | new BigDecimal("86") | +| NUMBER_87 | new BigDecimal("87") | +| NUMBER_88 | new BigDecimal("88") | +| NUMBER_89 | new BigDecimal("89") | +| NUMBER_90 | new BigDecimal("90") | +| NUMBER_91 | new BigDecimal("91") | +| NUMBER_92 | new BigDecimal("92") | +| NUMBER_93 | new BigDecimal("93") | +| NUMBER_94 | new BigDecimal("94") | +| NUMBER_95 | new BigDecimal("95") | +| NUMBER_96 | new BigDecimal("96") | +| NUMBER_97 | new BigDecimal("97") | +| NUMBER_98 | new BigDecimal("98") | +| NUMBER_99 | new BigDecimal("99") | +| NUMBER_100 | new BigDecimal("100") | +| NUMBER_101 | new BigDecimal("101") | +| NUMBER_102 | new BigDecimal("102") | +| NUMBER_103 | new BigDecimal("103") | +| NUMBER_104 | new BigDecimal("104") | +| NUMBER_105 | new BigDecimal("105") | +| NUMBER_106 | new BigDecimal("106") | +| NUMBER_107 | new BigDecimal("107") | +| NUMBER_108 | new BigDecimal("108") | +| NUMBER_109 | new BigDecimal("109") | +| NUMBER_110 | new BigDecimal("110") | +| NUMBER_111 | new BigDecimal("111") | +| NUMBER_112 | new BigDecimal("112") | +| NUMBER_113 | new BigDecimal("113") | +| NUMBER_114 | new BigDecimal("114") | +| NUMBER_115 | new BigDecimal("115") | +| NUMBER_116 | new BigDecimal("116") | +| NUMBER_117 | new BigDecimal("117") | +| NUMBER_118 | new BigDecimal("118") | +| NUMBER_119 | new BigDecimal("119") | +| NUMBER_120 | new BigDecimal("120") | +| NUMBER_121 | new BigDecimal("121") | +| NUMBER_122 | new BigDecimal("122") | +| NUMBER_123 | new BigDecimal("123") | +| NUMBER_124 | new BigDecimal("124") | +| NUMBER_125 | new BigDecimal("125") | +| NUMBER_126 | new BigDecimal("126") | +| NUMBER_127 | new BigDecimal("127") | +| NUMBER_128 | new BigDecimal("128") | +| NUMBER_129 | new BigDecimal("129") | +| NUMBER_130 | new BigDecimal("130") | +| NUMBER_131 | new BigDecimal("131") | +| NUMBER_132 | new BigDecimal("132") | +| NUMBER_133 | new BigDecimal("133") | +| NUMBER_134 | new BigDecimal("134") | +| NUMBER_135 | new BigDecimal("135") | +| NUMBER_136 | new BigDecimal("136") | +| NUMBER_137 | new BigDecimal("137") | +| NUMBER_138 | new BigDecimal("138") | +| NUMBER_139 | new BigDecimal("139") | +| NUMBER_140 | new BigDecimal("140") | +| NUMBER_141 | new BigDecimal("141") | +| NUMBER_142 | new BigDecimal("142") | +| NUMBER_143 | new BigDecimal("143") | +| NUMBER_144 | new BigDecimal("144") | +| NUMBER_145 | new BigDecimal("145") | +| NUMBER_146 | new BigDecimal("146") | +| NUMBER_147 | new BigDecimal("147") | +| NUMBER_148 | new BigDecimal("148") | +| NUMBER_149 | new BigDecimal("149") | +| NUMBER_150 | new BigDecimal("150") | +| NUMBER_151 | new BigDecimal("151") | +| NUMBER_152 | new BigDecimal("152") | +| NUMBER_153 | new BigDecimal("153") | +| NUMBER_154 | new BigDecimal("154") | +| NUMBER_155 | new BigDecimal("155") | +| NUMBER_156 | new BigDecimal("156") | +| NUMBER_157 | new BigDecimal("157") | +| NUMBER_158 | new BigDecimal("158") | +| NUMBER_159 | new BigDecimal("159") | +| NUMBER_160 | new BigDecimal("160") | +| NUMBER_161 | new BigDecimal("161") | +| NUMBER_162 | new BigDecimal("162") | +| NUMBER_163 | new BigDecimal("163") | +| NUMBER_164 | new BigDecimal("164") | +| NUMBER_165 | new BigDecimal("165") | +| NUMBER_166 | new BigDecimal("166") | +| NUMBER_167 | new BigDecimal("167") | +| NUMBER_168 | new BigDecimal("168") | +| NUMBER_169 | new BigDecimal("169") | +| NUMBER_170 | new BigDecimal("170") | +| NUMBER_171 | new BigDecimal("171") | +| NUMBER_172 | new BigDecimal("172") | +| NUMBER_173 | new BigDecimal("173") | +| NUMBER_174 | new BigDecimal("174") | +| NUMBER_175 | new BigDecimal("175") | +| NUMBER_176 | new BigDecimal("176") | +| NUMBER_177 | new BigDecimal("177") | +| NUMBER_178 | new BigDecimal("178") | +| NUMBER_179 | new BigDecimal("179") | +| NUMBER_180 | new BigDecimal("180") | +| NUMBER_181 | new BigDecimal("181") | +| NUMBER_182 | new BigDecimal("182") | +| NUMBER_183 | new BigDecimal("183") | +| NUMBER_184 | new BigDecimal("184") | +| NUMBER_185 | new BigDecimal("185") | +| NUMBER_186 | new BigDecimal("186") | +| NUMBER_187 | new BigDecimal("187") | +| NUMBER_188 | new BigDecimal("188") | +| NUMBER_189 | new BigDecimal("189") | +| NUMBER_190 | new BigDecimal("190") | +| NUMBER_191 | new BigDecimal("191") | +| NUMBER_192 | new BigDecimal("192") | +| NUMBER_193 | new BigDecimal("193") | +| NUMBER_194 | new BigDecimal("194") | +| NUMBER_195 | new BigDecimal("195") | +| NUMBER_196 | new BigDecimal("196") | +| NUMBER_197 | new BigDecimal("197") | +| NUMBER_198 | new BigDecimal("198") | +| NUMBER_199 | new BigDecimal("199") | +| NUMBER_200 | new BigDecimal("200") | +| NUMBER_201 | new BigDecimal("201") | +| NUMBER_202 | new BigDecimal("202") | +| NUMBER_203 | new BigDecimal("203") | +| NUMBER_204 | new BigDecimal("204") | +| NUMBER_205 | new BigDecimal("205") | +| NUMBER_206 | new BigDecimal("206") | +| NUMBER_207 | new BigDecimal("207") | +| NUMBER_208 | new BigDecimal("208") | +| NUMBER_209 | new BigDecimal("209") | +| NUMBER_210 | new BigDecimal("210") | +| NUMBER_211 | new BigDecimal("211") | +| NUMBER_212 | new BigDecimal("212") | +| NUMBER_213 | new BigDecimal("213") | +| NUMBER_214 | new BigDecimal("214") | +| NUMBER_215 | new BigDecimal("215") | +| NUMBER_216 | new BigDecimal("216") | +| NUMBER_217 | new BigDecimal("217") | +| NUMBER_218 | new BigDecimal("218") | +| NUMBER_219 | new BigDecimal("219") | +| NUMBER_220 | new BigDecimal("220") | +| NUMBER_221 | new BigDecimal("221") | +| NUMBER_222 | new BigDecimal("222") | +| NUMBER_223 | new BigDecimal("223") | +| NUMBER_224 | new BigDecimal("224") | +| NUMBER_225 | new BigDecimal("225") | +| NUMBER_226 | new BigDecimal("226") | +| NUMBER_227 | new BigDecimal("227") | +| NUMBER_228 | new BigDecimal("228") | +| NUMBER_229 | new BigDecimal("229") | +| NUMBER_230 | new BigDecimal("230") | +| NUMBER_231 | new BigDecimal("231") | +| NUMBER_232 | new BigDecimal("232") | +| NUMBER_233 | new BigDecimal("233") | +| NUMBER_234 | new BigDecimal("234") | +| NUMBER_235 | new BigDecimal("235") | +| NUMBER_236 | new BigDecimal("236") | +| NUMBER_237 | new BigDecimal("237") | +| NUMBER_238 | new BigDecimal("238") | +| NUMBER_239 | new BigDecimal("239") | +| NUMBER_240 | new BigDecimal("240") | +| NUMBER_241 | new BigDecimal("241") | +| NUMBER_242 | new BigDecimal("242") | +| NUMBER_243 | new BigDecimal("243") | +| NUMBER_244 | new BigDecimal("244") | +| NUMBER_245 | new BigDecimal("245") | +| NUMBER_246 | new BigDecimal("246") | +| NUMBER_247 | new BigDecimal("247") | +| NUMBER_248 | new BigDecimal("248") | +| NUMBER_249 | new BigDecimal("249") | +| NUMBER_250 | new BigDecimal("250") | +| NUMBER_251 | new BigDecimal("251") | +| NUMBER_252 | new BigDecimal("252") | +| NUMBER_253 | new BigDecimal("253") | +| NUMBER_254 | new BigDecimal("254") | +| NUMBER_255 | new BigDecimal("255") | +| NUMBER_256 | new BigDecimal("256") | +| NUMBER_257 | new BigDecimal("257") | +| NUMBER_258 | new BigDecimal("258") | +| NUMBER_259 | new BigDecimal("259") | +| NUMBER_260 | new BigDecimal("260") | +| NUMBER_261 | new BigDecimal("261") | +| NUMBER_262 | new BigDecimal("262") | +| NUMBER_263 | new BigDecimal("263") | +| NUMBER_264 | new BigDecimal("264") | +| NUMBER_265 | new BigDecimal("265") | +| NUMBER_266 | new BigDecimal("266") | +| NUMBER_267 | new BigDecimal("267") | +| NUMBER_268 | new BigDecimal("268") | +| NUMBER_269 | new BigDecimal("269") | +| NUMBER_270 | new BigDecimal("270") | +| NUMBER_271 | new BigDecimal("271") | +| NUMBER_272 | new BigDecimal("272") | +| NUMBER_273 | new BigDecimal("273") | +| NUMBER_274 | new BigDecimal("274") | +| NUMBER_275 | new BigDecimal("275") | +| NUMBER_276 | new BigDecimal("276") | +| NUMBER_277 | new BigDecimal("277") | +| NUMBER_278 | new BigDecimal("278") | +| NUMBER_279 | new BigDecimal("279") | +| NUMBER_280 | new BigDecimal("280") | +| NUMBER_281 | new BigDecimal("281") | +| NUMBER_282 | new BigDecimal("282") | +| NUMBER_283 | new BigDecimal("283") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | +| NUMBER_5009 | new BigDecimal("5009") | +| NUMBER_5010 | new BigDecimal("5010") | +| NUMBER_5011 | new BigDecimal("5011") | +| NUMBER_5012 | new BigDecimal("5012") | +| NUMBER_5013 | new BigDecimal("5013") | +| NUMBER_5014 | new BigDecimal("5014") | +| NUMBER_5015 | new BigDecimal("5015") | +| NUMBER_5016 | new BigDecimal("5016") | +| NUMBER_5017 | new BigDecimal("5017") | +| NUMBER_5018 | new BigDecimal("5018") | +| NUMBER_5019 | new BigDecimal("5019") | +| NUMBER_5020 | new BigDecimal("5020") | +| NUMBER_5021 | new BigDecimal("5021") | +| NUMBER_5022 | new BigDecimal("5022") | +| NUMBER_5023 | new BigDecimal("5023") | +| NUMBER_5024 | new BigDecimal("5024") | +| NUMBER_5025 | new BigDecimal("5025") | +| NUMBER_5026 | new BigDecimal("5026") | +| NUMBER_5027 | new BigDecimal("5027") | +| NUMBER_5028 | new BigDecimal("5028") | +| NUMBER_5029 | new BigDecimal("5029") | +| NUMBER_5030 | new BigDecimal("5030") | +| NUMBER_5031 | new BigDecimal("5031") | +| NUMBER_5032 | new BigDecimal("5032") | +| NUMBER_5033 | new BigDecimal("5033") | +| NUMBER_5034 | new BigDecimal("5034") | +| NUMBER_5035 | new BigDecimal("5035") | +| NUMBER_5036 | new BigDecimal("5036") | +| NUMBER_5037 | new BigDecimal("5037") | +| NUMBER_5038 | new BigDecimal("5038") | +| NUMBER_5039 | new BigDecimal("5039") | +| NUMBER_5040 | new BigDecimal("5040") | +| NUMBER_5041 | new BigDecimal("5041") | +| NUMBER_5042 | new BigDecimal("5042") | +| NUMBER_5043 | new BigDecimal("5043") | +| NUMBER_5044 | new BigDecimal("5044") | +| NUMBER_5045 | new BigDecimal("5045") | +| NUMBER_5046 | new BigDecimal("5046") | +| NUMBER_5068 | new BigDecimal("5068") | +| NUMBER_5069 | new BigDecimal("5069") | +| NUMBER_5070 | new BigDecimal("5070") | +| NUMBER_5071 | new BigDecimal("5071") | +| NUMBER_5072 | new BigDecimal("5072") | +| NUMBER_5073 | new BigDecimal("5073") | +| NUMBER_5074 | new BigDecimal("5074") | +| NUMBER_5075 | new BigDecimal("5075") | +| NUMBER_5076 | new BigDecimal("5076") | +| NUMBER_5077 | new BigDecimal("5077") | +| NUMBER_5079 | new BigDecimal("5079") | +| NUMBER_5080 | new BigDecimal("5080") | +| NUMBER_5081 | new BigDecimal("5081") | +| NUMBER_5082 | new BigDecimal("5082") | +| NUMBER_5083 | new BigDecimal("5083") | +| NUMBER_5084 | new BigDecimal("5084") | +| NUMBER_5085 | new BigDecimal("5085") | +| NUMBER_5086 | new BigDecimal("5086") | +| NUMBER_5087 | new BigDecimal("5087") | +| NUMBER_5088 | new BigDecimal("5088") | +| NUMBER_5089 | new BigDecimal("5089") | +| NUMBER_5090 | new BigDecimal("5090") | +| NUMBER_5091 | new BigDecimal("5091") | +| NUMBER_5092 | new BigDecimal("5092") | +| NUMBER_5093 | new BigDecimal("5093") | +| NUMBER_5094 | new BigDecimal("5094") | +| NUMBER_5095 | new BigDecimal("5095") | +| NUMBER_5096 | new BigDecimal("5096") | +| NUMBER_5097 | new BigDecimal("5097") | +| NUMBER_5098 | new BigDecimal("5098") | +| NUMBER_5099 | new BigDecimal("5099") | +| NUMBER_5100 | new BigDecimal("5100") | +| NUMBER_5101 | new BigDecimal("5101") | +| NUMBER_5102 | new BigDecimal("5102") | +| NUMBER_5103 | new BigDecimal("5103") | +| NUMBER_5104 | new BigDecimal("5104") | +| NUMBER_5105 | new BigDecimal("5105") | +| NUMBER_5106 | new BigDecimal("5106") | +| NUMBER_5107 | new BigDecimal("5107") | +| NUMBER_5108 | new BigDecimal("5108") | +| NUMBER_5109 | new BigDecimal("5109") | +| NUMBER_5110 | new BigDecimal("5110") | +| NUMBER_5111 | new BigDecimal("5111") | +| NUMBER_5112 | new BigDecimal("5112") | +| NUMBER_5113 | new BigDecimal("5113") | +| NUMBER_5114 | new BigDecimal("5114") | +| NUMBER_5115 | new BigDecimal("5115") | +| NUMBER_5116 | new BigDecimal("5116") | +| NUMBER_5117 | new BigDecimal("5117") | +| NUMBER_5118 | new BigDecimal("5118") | +| NUMBER_5119 | new BigDecimal("5119") | +| NUMBER_5120 | new BigDecimal("5120") | +| NUMBER_5121 | new BigDecimal("5121") | +| NUMBER_5122 | new BigDecimal("5122") | +| NUMBER_5123 | new BigDecimal("5123") | +| NUMBER_5124 | new BigDecimal("5124") | +| NUMBER_5125 | new BigDecimal("5125") | +| NUMBER_5126 | new BigDecimal("5126") | +| NUMBER_5127 | new BigDecimal("5127") | +| NUMBER_5129 | new BigDecimal("5129") | +| NUMBER_5130 | new BigDecimal("5130") | +| NUMBER_5131 | new BigDecimal("5131") | +| NUMBER_5132 | new BigDecimal("5132") | +| NUMBER_5133 | new BigDecimal("5133") | +| NUMBER_5134 | new BigDecimal("5134") | +| NUMBER_5135 | new BigDecimal("5135") | +| NUMBER_5136 | new BigDecimal("5136") | +| NUMBER_5137 | new BigDecimal("5137") | +| NUMBER_5138 | new BigDecimal("5138") | +| NUMBER_5139 | new BigDecimal("5139") | +| NUMBER_5140 | new BigDecimal("5140") | +| NUMBER_5141 | new BigDecimal("5141") | +| NUMBER_5142 | new BigDecimal("5142") | +| NUMBER_5143 | new BigDecimal("5143") | +| NUMBER_5144 | new BigDecimal("5144") | +| NUMBER_5145 | new BigDecimal("5145") | +| NUMBER_5146 | new BigDecimal("5146") | +| NUMBER_5147 | new BigDecimal("5147") | +| NUMBER_5148 | new BigDecimal("5148") | +| NUMBER_5149 | new BigDecimal("5149") | +| NUMBER_5150 | new BigDecimal("5150") | +| NUMBER_5151 | new BigDecimal("5151") | +| NUMBER_5152 | new BigDecimal("5152") | +| NUMBER_5153 | new BigDecimal("5153") | +| NUMBER_5154 | new BigDecimal("5154") | +| NUMBER_5157 | new BigDecimal("5157") | +| NUMBER_5158 | new BigDecimal("5158") | +| NUMBER_5159 | new BigDecimal("5159") | +| NUMBER_5160 | new BigDecimal("5160") | +| NUMBER_5161 | new BigDecimal("5161") | +| NUMBER_5162 | new BigDecimal("5162") | +| NUMBER_5163 | new BigDecimal("5163") | +| NUMBER_5164 | new BigDecimal("5164") | +| NUMBER_5165 | new BigDecimal("5165") | +| NUMBER_5166 | new BigDecimal("5166") | +| NUMBER_5167 | new BigDecimal("5167") | +| NUMBER_5168 | new BigDecimal("5168") | +| NUMBER_5169 | new BigDecimal("5169") | +| NUMBER_5170 | new BigDecimal("5170") | +| NUMBER_5171 | new BigDecimal("5171") | +| NUMBER_5172 | new BigDecimal("5172") | +| NUMBER_5173 | new BigDecimal("5173") | +| NUMBER_5174 | new BigDecimal("5174") | +| NUMBER_5175 | new BigDecimal("5175") | +| NUMBER_5176 | new BigDecimal("5176") | +| NUMBER_5177 | new BigDecimal("5177") | +| NUMBER_5178 | new BigDecimal("5178") | +| NUMBER_5179 | new BigDecimal("5179") | +| NUMBER_5180 | new BigDecimal("5180") | +| NUMBER_5181 | new BigDecimal("5181") | +| NUMBER_5182 | new BigDecimal("5182") | +| NUMBER_5184 | new BigDecimal("5184") | +| NUMBER_5185 | new BigDecimal("5185") | +| NUMBER_5186 | new BigDecimal("5186") | +| NUMBER_5187 | new BigDecimal("5187") | +| NUMBER_5188 | new BigDecimal("5188") | +| NUMBER_5189 | new BigDecimal("5189") | +| NUMBER_5190 | new BigDecimal("5190") | +| NUMBER_5191 | new BigDecimal("5191") | +| NUMBER_5196 | new BigDecimal("5196") | +| NUMBER_5198 | new BigDecimal("5198") | +| NUMBER_5199 | new BigDecimal("5199") | +| NUMBER_5200 | new BigDecimal("5200") | +| NUMBER_5201 | new BigDecimal("5201") | +| NUMBER_5202 | new BigDecimal("5202") | +| NUMBER_5203 | new BigDecimal("5203") | +| NUMBER_5204 | new BigDecimal("5204") | +| NUMBER_5205 | new BigDecimal("5205") | +| NUMBER_5206 | new BigDecimal("5206") | +| NUMBER_5207 | new BigDecimal("5207") | +| NUMBER_5211 | new BigDecimal("5211") | +| NUMBER_5212 | new BigDecimal("5212") | +| NUMBER_90001 | new BigDecimal("90001") | +| NUMBER_90002 | new BigDecimal("90002") | +| NUMBER_90003 | new BigDecimal("90003") | +| NUMBER_90004 | new BigDecimal("90004") | +| NUMBER_90005 | new BigDecimal("90005") | +| NUMBER_90006 | new BigDecimal("90006") | +| NUMBER_90007 | new BigDecimal("90007") | +| NUMBER_90008 | new BigDecimal("90008") | +| NUMBER_90009 | new BigDecimal("90009") | +| NUMBER_90010 | new BigDecimal("90010") | +| NUMBER_90011 | new BigDecimal("90011") | + + + +## Enum: List<MealPlanListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_0 | new BigDecimal("0") | +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_90001 | new BigDecimal("90001") | + + + diff --git a/docs/AvailablePropertiesInner.md b/docs/AvailablePropertiesInner.md new file mode 100644 index 0000000..c35b9ce --- /dev/null +++ b/docs/AvailablePropertiesInner.md @@ -0,0 +1,102 @@ + + +# AvailablePropertiesInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | The name of the location. | | +|**currencyCode** | [**CurrencyCodeEnum**](#CurrencyCodeEnum) | The currency code of the currency of the lowest price. | | +|**lowestPrice** | **BigDecimal** | The lowest price available for this location. | | +|**type** | [**TypeEnum**](#TypeEnum) | The type of the found location.<p>See also <a href=\"#locationtypes\">in the appendix</a>.</p> | | + + + +## Enum: CurrencyCodeEnum + +| Name | Value | +|---- | -----| +| AED | "AED" | +| ARS | "ARS" | +| AUD | "AUD" | +| AZN | "AZN" | +| BGN | "BGN" | +| BHD | "BHD" | +| BRL | "BRL" | +| CAD | "CAD" | +| CHF | "CHF" | +| CLP | "CLP" | +| CNY | "CNY" | +| COP | "COP" | +| CZK | "CZK" | +| DKK | "DKK" | +| EGP | "EGP" | +| EUR | "EUR" | +| FJD | "FJD" | +| GBP | "GBP" | +| GEL | "GEL" | +| HKD | "HKD" | +| HUF | "HUF" | +| IDR | "IDR" | +| ILS | "ILS" | +| INR | "INR" | +| JOD | "JOD" | +| JPY | "JPY" | +| KRW | "KRW" | +| KWD | "KWD" | +| KZT | "KZT" | +| MDL | "MDL" | +| MXN | "MXN" | +| MYR | "MYR" | +| NAD | "NAD" | +| NOK | "NOK" | +| NZD | "NZD" | +| OMR | "OMR" | +| PLN | "PLN" | +| QAR | "QAR" | +| RON | "RON" | +| RUB | "RUB" | +| SAR | "SAR" | +| SEK | "SEK" | +| SGD | "SGD" | +| THB | "THB" | +| TRY | "TRY" | +| TWD | "TWD" | +| UAH | "UAH" | +| USD | "USD" | +| XOF | "XOF" | +| ZAR | "ZAR" | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| FORMATTED_ADDRESS | "formatted_address" | +| PLACE_ID | "place_id" | +| LOCALITY | "locality" | +| ADMINISTRATIVE_AREA_LEVEL_1 | "administrative_area_level_1" | +| ADMINISTRATIVE_AREA_LEVEL_2 | "administrative_area_level_2" | +| ADMINISTRATIVE_AREA_LEVEL_3 | "administrative_area_level_3" | +| ADMINISTRATIVE_AREA_LEVEL_4 | "administrative_area_level_4" | +| ADMINISTRATIVE_AREA_LEVEL_5 | "administrative_area_level_5" | +| STATE_CODE | "state_code" | +| COUNTRY | "country" | +| COUNTRY_CODE | "country_code" | +| POSTAL_CODE | "postal_code" | +| LANGUAGE | "language" | +| NATURAL_FEATURE | "natural_feature" | +| ESTABLISHMENT | "establishment" | +| SUBLOCALITY | "sublocality" | +| SUBLOCALITY_LEVEL_1 | "sublocality_level_1" | +| SUBLOCALITY_LEVEL_2 | "sublocality_level_2" | +| SUBLOCALITY_LEVEL_3 | "sublocality_level_3" | +| SUBLOCALITY_LEVEL_4 | "sublocality_level_4" | +| SUBLOCALITY_LEVEL_5 | "sublocality_level_5" | +| STREETNUMBER | "streetNumber" | + + + diff --git a/docs/AvailablePropertiesInner1.md b/docs/AvailablePropertiesInner1.md new file mode 100644 index 0000000..494b55f --- /dev/null +++ b/docs/AvailablePropertiesInner1.md @@ -0,0 +1,750 @@ + + +# AvailablePropertiesInner1 + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **String** | The properties unique code/ID. | | +|**languageCode** | [**LanguageCodeEnum**](#LanguageCodeEnum) | The language code of the language in which the property description is written.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> | | +|**currencyCode** | [**CurrencyCodeEnum**](#CurrencyCodeEnum) | The currency code for the currency in which prices are returned.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> | | +|**unitSystem** | [**UnitSystemEnum**](#UnitSystemEnum) | The unit system (either \"metric\" or \"imperial\") used for measurements. | | +|**name** | **String** | The name of the property. | | +|**uri** | **String** | A URI for the property. | | +|**serviceList** | [**List<ServiceListEnum>**](#List<ServiceListEnum>) | A list of service codes indicating the services and amenities the property has.<p>See also <a href=\"#servicecodes\">in the appendix</a>.</p> | | +|**categoryList** | [**List<CategoryListEnum>**](#List<CategoryListEnum>) | A list of property class type codes indicating the types of the property.<p>See also <a href=\"#propertyclass-type-codes\">in the appendix</a>.</p> | | +|**uriPath** | **String** | A URI path for the property. | | +|**text** | **String** | A description of the property. | | +|**geo** | [**AvailablePropertiesInner1Geo**](AvailablePropertiesInner1Geo.md) | | [optional] | +|**mediaList** | [**List<AvailablePropertiesInner1MediaListInner>**](AvailablePropertiesInner1MediaListInner.md) | A list of media objects for the property. | | +|**attractionList** | [**List<AvailablePropertiesInner1AttractionListInner>**](AvailablePropertiesInner1AttractionListInner.md) | A list of objects describing the attractions available at the property. | | +|**lowestPrice** | [**AvailablePropertiesInner1LowestPrice**](AvailablePropertiesInner1LowestPrice.md) | | | + + + +## Enum: LanguageCodeEnum + +| Name | Value | +|---- | -----| +| AF | "af" | +| AR | "ar" | +| BG | "bg" | +| CA | "ca" | +| CS | "cs" | +| DA | "da" | +| DE | "de" | +| EL | "el" | +| EN | "en" | +| ES | "es" | +| ET | "et" | +| FI | "fi" | +| FR | "fr" | +| HE | "he" | +| HI | "hi" | +| HR | "hr" | +| HU | "hu" | +| ID | "id" | +| IS | "is" | +| IT | "it" | +| JA | "ja" | +| KO | "ko" | +| LT | "lt" | +| LV | "lv" | +| NL | "nl" | +| NO | "no" | +| PL | "pl" | +| PT | "pt" | +| RO | "ro" | +| RU | "ru" | +| SK | "sk" | +| SL | "sl" | +| SR | "sr" | +| SV | "sv" | +| TH | "th" | +| TR | "tr" | +| VI | "vi" | +| ZH | "zh" | + + + +## Enum: CurrencyCodeEnum + +| Name | Value | +|---- | -----| +| AED | "AED" | +| ARS | "ARS" | +| AUD | "AUD" | +| AZN | "AZN" | +| BGN | "BGN" | +| BHD | "BHD" | +| BRL | "BRL" | +| CAD | "CAD" | +| CHF | "CHF" | +| CLP | "CLP" | +| CNY | "CNY" | +| COP | "COP" | +| CZK | "CZK" | +| DKK | "DKK" | +| EGP | "EGP" | +| EUR | "EUR" | +| FJD | "FJD" | +| GBP | "GBP" | +| GEL | "GEL" | +| HKD | "HKD" | +| HUF | "HUF" | +| IDR | "IDR" | +| ILS | "ILS" | +| INR | "INR" | +| JOD | "JOD" | +| JPY | "JPY" | +| KRW | "KRW" | +| KWD | "KWD" | +| KZT | "KZT" | +| MDL | "MDL" | +| MXN | "MXN" | +| MYR | "MYR" | +| NAD | "NAD" | +| NOK | "NOK" | +| NZD | "NZD" | +| OMR | "OMR" | +| PLN | "PLN" | +| QAR | "QAR" | +| RON | "RON" | +| RUB | "RUB" | +| SAR | "SAR" | +| SEK | "SEK" | +| SGD | "SGD" | +| THB | "THB" | +| TRY | "TRY" | +| TWD | "TWD" | +| UAH | "UAH" | +| USD | "USD" | +| XOF | "XOF" | +| ZAR | "ZAR" | + + + +## Enum: UnitSystemEnum + +| Name | Value | +|---- | -----| +| METRIC | "metric" | +| IMPERIAL | "imperial" | + + + +## Enum: List<ServiceListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_30 | new BigDecimal("30") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | +| NUMBER_34 | new BigDecimal("34") | +| NUMBER_35 | new BigDecimal("35") | +| NUMBER_36 | new BigDecimal("36") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_38 | new BigDecimal("38") | +| NUMBER_39 | new BigDecimal("39") | +| NUMBER_40 | new BigDecimal("40") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_44 | new BigDecimal("44") | +| NUMBER_45 | new BigDecimal("45") | +| NUMBER_46 | new BigDecimal("46") | +| NUMBER_47 | new BigDecimal("47") | +| NUMBER_48 | new BigDecimal("48") | +| NUMBER_49 | new BigDecimal("49") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_51 | new BigDecimal("51") | +| NUMBER_52 | new BigDecimal("52") | +| NUMBER_53 | new BigDecimal("53") | +| NUMBER_54 | new BigDecimal("54") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_56 | new BigDecimal("56") | +| NUMBER_57 | new BigDecimal("57") | +| NUMBER_58 | new BigDecimal("58") | +| NUMBER_59 | new BigDecimal("59") | +| NUMBER_60 | new BigDecimal("60") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_62 | new BigDecimal("62") | +| NUMBER_63 | new BigDecimal("63") | +| NUMBER_64 | new BigDecimal("64") | +| NUMBER_65 | new BigDecimal("65") | +| NUMBER_66 | new BigDecimal("66") | +| NUMBER_67 | new BigDecimal("67") | +| NUMBER_68 | new BigDecimal("68") | +| NUMBER_69 | new BigDecimal("69") | +| NUMBER_70 | new BigDecimal("70") | +| NUMBER_71 | new BigDecimal("71") | +| NUMBER_72 | new BigDecimal("72") | +| NUMBER_73 | new BigDecimal("73") | +| NUMBER_74 | new BigDecimal("74") | +| NUMBER_75 | new BigDecimal("75") | +| NUMBER_76 | new BigDecimal("76") | +| NUMBER_77 | new BigDecimal("77") | +| NUMBER_78 | new BigDecimal("78") | +| NUMBER_79 | new BigDecimal("79") | +| NUMBER_80 | new BigDecimal("80") | +| NUMBER_81 | new BigDecimal("81") | +| NUMBER_82 | new BigDecimal("82") | +| NUMBER_83 | new BigDecimal("83") | +| NUMBER_84 | new BigDecimal("84") | +| NUMBER_85 | new BigDecimal("85") | +| NUMBER_86 | new BigDecimal("86") | +| NUMBER_87 | new BigDecimal("87") | +| NUMBER_88 | new BigDecimal("88") | +| NUMBER_89 | new BigDecimal("89") | +| NUMBER_90 | new BigDecimal("90") | +| NUMBER_91 | new BigDecimal("91") | +| NUMBER_92 | new BigDecimal("92") | +| NUMBER_93 | new BigDecimal("93") | +| NUMBER_94 | new BigDecimal("94") | +| NUMBER_95 | new BigDecimal("95") | +| NUMBER_96 | new BigDecimal("96") | +| NUMBER_97 | new BigDecimal("97") | +| NUMBER_98 | new BigDecimal("98") | +| NUMBER_99 | new BigDecimal("99") | +| NUMBER_100 | new BigDecimal("100") | +| NUMBER_101 | new BigDecimal("101") | +| NUMBER_102 | new BigDecimal("102") | +| NUMBER_103 | new BigDecimal("103") | +| NUMBER_104 | new BigDecimal("104") | +| NUMBER_105 | new BigDecimal("105") | +| NUMBER_106 | new BigDecimal("106") | +| NUMBER_107 | new BigDecimal("107") | +| NUMBER_108 | new BigDecimal("108") | +| NUMBER_109 | new BigDecimal("109") | +| NUMBER_110 | new BigDecimal("110") | +| NUMBER_111 | new BigDecimal("111") | +| NUMBER_112 | new BigDecimal("112") | +| NUMBER_113 | new BigDecimal("113") | +| NUMBER_114 | new BigDecimal("114") | +| NUMBER_115 | new BigDecimal("115") | +| NUMBER_116 | new BigDecimal("116") | +| NUMBER_117 | new BigDecimal("117") | +| NUMBER_118 | new BigDecimal("118") | +| NUMBER_119 | new BigDecimal("119") | +| NUMBER_120 | new BigDecimal("120") | +| NUMBER_121 | new BigDecimal("121") | +| NUMBER_122 | new BigDecimal("122") | +| NUMBER_123 | new BigDecimal("123") | +| NUMBER_124 | new BigDecimal("124") | +| NUMBER_125 | new BigDecimal("125") | +| NUMBER_126 | new BigDecimal("126") | +| NUMBER_127 | new BigDecimal("127") | +| NUMBER_128 | new BigDecimal("128") | +| NUMBER_129 | new BigDecimal("129") | +| NUMBER_130 | new BigDecimal("130") | +| NUMBER_131 | new BigDecimal("131") | +| NUMBER_132 | new BigDecimal("132") | +| NUMBER_133 | new BigDecimal("133") | +| NUMBER_134 | new BigDecimal("134") | +| NUMBER_135 | new BigDecimal("135") | +| NUMBER_136 | new BigDecimal("136") | +| NUMBER_137 | new BigDecimal("137") | +| NUMBER_138 | new BigDecimal("138") | +| NUMBER_139 | new BigDecimal("139") | +| NUMBER_140 | new BigDecimal("140") | +| NUMBER_141 | new BigDecimal("141") | +| NUMBER_142 | new BigDecimal("142") | +| NUMBER_143 | new BigDecimal("143") | +| NUMBER_144 | new BigDecimal("144") | +| NUMBER_145 | new BigDecimal("145") | +| NUMBER_146 | new BigDecimal("146") | +| NUMBER_147 | new BigDecimal("147") | +| NUMBER_148 | new BigDecimal("148") | +| NUMBER_149 | new BigDecimal("149") | +| NUMBER_150 | new BigDecimal("150") | +| NUMBER_151 | new BigDecimal("151") | +| NUMBER_152 | new BigDecimal("152") | +| NUMBER_153 | new BigDecimal("153") | +| NUMBER_154 | new BigDecimal("154") | +| NUMBER_155 | new BigDecimal("155") | +| NUMBER_156 | new BigDecimal("156") | +| NUMBER_157 | new BigDecimal("157") | +| NUMBER_158 | new BigDecimal("158") | +| NUMBER_159 | new BigDecimal("159") | +| NUMBER_160 | new BigDecimal("160") | +| NUMBER_161 | new BigDecimal("161") | +| NUMBER_162 | new BigDecimal("162") | +| NUMBER_163 | new BigDecimal("163") | +| NUMBER_164 | new BigDecimal("164") | +| NUMBER_165 | new BigDecimal("165") | +| NUMBER_166 | new BigDecimal("166") | +| NUMBER_167 | new BigDecimal("167") | +| NUMBER_168 | new BigDecimal("168") | +| NUMBER_169 | new BigDecimal("169") | +| NUMBER_170 | new BigDecimal("170") | +| NUMBER_171 | new BigDecimal("171") | +| NUMBER_172 | new BigDecimal("172") | +| NUMBER_173 | new BigDecimal("173") | +| NUMBER_174 | new BigDecimal("174") | +| NUMBER_175 | new BigDecimal("175") | +| NUMBER_176 | new BigDecimal("176") | +| NUMBER_177 | new BigDecimal("177") | +| NUMBER_178 | new BigDecimal("178") | +| NUMBER_179 | new BigDecimal("179") | +| NUMBER_180 | new BigDecimal("180") | +| NUMBER_181 | new BigDecimal("181") | +| NUMBER_182 | new BigDecimal("182") | +| NUMBER_183 | new BigDecimal("183") | +| NUMBER_184 | new BigDecimal("184") | +| NUMBER_185 | new BigDecimal("185") | +| NUMBER_186 | new BigDecimal("186") | +| NUMBER_187 | new BigDecimal("187") | +| NUMBER_188 | new BigDecimal("188") | +| NUMBER_189 | new BigDecimal("189") | +| NUMBER_190 | new BigDecimal("190") | +| NUMBER_191 | new BigDecimal("191") | +| NUMBER_192 | new BigDecimal("192") | +| NUMBER_193 | new BigDecimal("193") | +| NUMBER_194 | new BigDecimal("194") | +| NUMBER_195 | new BigDecimal("195") | +| NUMBER_196 | new BigDecimal("196") | +| NUMBER_197 | new BigDecimal("197") | +| NUMBER_198 | new BigDecimal("198") | +| NUMBER_199 | new BigDecimal("199") | +| NUMBER_200 | new BigDecimal("200") | +| NUMBER_201 | new BigDecimal("201") | +| NUMBER_202 | new BigDecimal("202") | +| NUMBER_203 | new BigDecimal("203") | +| NUMBER_204 | new BigDecimal("204") | +| NUMBER_205 | new BigDecimal("205") | +| NUMBER_206 | new BigDecimal("206") | +| NUMBER_207 | new BigDecimal("207") | +| NUMBER_208 | new BigDecimal("208") | +| NUMBER_209 | new BigDecimal("209") | +| NUMBER_210 | new BigDecimal("210") | +| NUMBER_211 | new BigDecimal("211") | +| NUMBER_212 | new BigDecimal("212") | +| NUMBER_213 | new BigDecimal("213") | +| NUMBER_214 | new BigDecimal("214") | +| NUMBER_215 | new BigDecimal("215") | +| NUMBER_216 | new BigDecimal("216") | +| NUMBER_217 | new BigDecimal("217") | +| NUMBER_218 | new BigDecimal("218") | +| NUMBER_219 | new BigDecimal("219") | +| NUMBER_220 | new BigDecimal("220") | +| NUMBER_221 | new BigDecimal("221") | +| NUMBER_222 | new BigDecimal("222") | +| NUMBER_223 | new BigDecimal("223") | +| NUMBER_224 | new BigDecimal("224") | +| NUMBER_225 | new BigDecimal("225") | +| NUMBER_226 | new BigDecimal("226") | +| NUMBER_227 | new BigDecimal("227") | +| NUMBER_228 | new BigDecimal("228") | +| NUMBER_229 | new BigDecimal("229") | +| NUMBER_230 | new BigDecimal("230") | +| NUMBER_231 | new BigDecimal("231") | +| NUMBER_232 | new BigDecimal("232") | +| NUMBER_233 | new BigDecimal("233") | +| NUMBER_234 | new BigDecimal("234") | +| NUMBER_235 | new BigDecimal("235") | +| NUMBER_236 | new BigDecimal("236") | +| NUMBER_237 | new BigDecimal("237") | +| NUMBER_238 | new BigDecimal("238") | +| NUMBER_239 | new BigDecimal("239") | +| NUMBER_240 | new BigDecimal("240") | +| NUMBER_241 | new BigDecimal("241") | +| NUMBER_242 | new BigDecimal("242") | +| NUMBER_243 | new BigDecimal("243") | +| NUMBER_244 | new BigDecimal("244") | +| NUMBER_245 | new BigDecimal("245") | +| NUMBER_246 | new BigDecimal("246") | +| NUMBER_247 | new BigDecimal("247") | +| NUMBER_248 | new BigDecimal("248") | +| NUMBER_249 | new BigDecimal("249") | +| NUMBER_250 | new BigDecimal("250") | +| NUMBER_251 | new BigDecimal("251") | +| NUMBER_252 | new BigDecimal("252") | +| NUMBER_253 | new BigDecimal("253") | +| NUMBER_254 | new BigDecimal("254") | +| NUMBER_255 | new BigDecimal("255") | +| NUMBER_256 | new BigDecimal("256") | +| NUMBER_257 | new BigDecimal("257") | +| NUMBER_258 | new BigDecimal("258") | +| NUMBER_259 | new BigDecimal("259") | +| NUMBER_260 | new BigDecimal("260") | +| NUMBER_261 | new BigDecimal("261") | +| NUMBER_262 | new BigDecimal("262") | +| NUMBER_263 | new BigDecimal("263") | +| NUMBER_264 | new BigDecimal("264") | +| NUMBER_265 | new BigDecimal("265") | +| NUMBER_266 | new BigDecimal("266") | +| NUMBER_267 | new BigDecimal("267") | +| NUMBER_268 | new BigDecimal("268") | +| NUMBER_269 | new BigDecimal("269") | +| NUMBER_270 | new BigDecimal("270") | +| NUMBER_271 | new BigDecimal("271") | +| NUMBER_272 | new BigDecimal("272") | +| NUMBER_273 | new BigDecimal("273") | +| NUMBER_274 | new BigDecimal("274") | +| NUMBER_275 | new BigDecimal("275") | +| NUMBER_276 | new BigDecimal("276") | +| NUMBER_277 | new BigDecimal("277") | +| NUMBER_278 | new BigDecimal("278") | +| NUMBER_279 | new BigDecimal("279") | +| NUMBER_280 | new BigDecimal("280") | +| NUMBER_281 | new BigDecimal("281") | +| NUMBER_282 | new BigDecimal("282") | +| NUMBER_283 | new BigDecimal("283") | +| NUMBER_284 | new BigDecimal("284") | +| NUMBER_285 | new BigDecimal("285") | +| NUMBER_286 | new BigDecimal("286") | +| NUMBER_287 | new BigDecimal("287") | +| NUMBER_288 | new BigDecimal("288") | +| NUMBER_289 | new BigDecimal("289") | +| NUMBER_290 | new BigDecimal("290") | +| NUMBER_291 | new BigDecimal("291") | +| NUMBER_292 | new BigDecimal("292") | +| NUMBER_293 | new BigDecimal("293") | +| NUMBER_294 | new BigDecimal("294") | +| NUMBER_295 | new BigDecimal("295") | +| NUMBER_296 | new BigDecimal("296") | +| NUMBER_297 | new BigDecimal("297") | +| NUMBER_298 | new BigDecimal("298") | +| NUMBER_299 | new BigDecimal("299") | +| NUMBER_300 | new BigDecimal("300") | +| NUMBER_301 | new BigDecimal("301") | +| NUMBER_302 | new BigDecimal("302") | +| NUMBER_303 | new BigDecimal("303") | +| NUMBER_304 | new BigDecimal("304") | +| NUMBER_305 | new BigDecimal("305") | +| NUMBER_306 | new BigDecimal("306") | +| NUMBER_307 | new BigDecimal("307") | +| NUMBER_308 | new BigDecimal("308") | +| NUMBER_309 | new BigDecimal("309") | +| NUMBER_310 | new BigDecimal("310") | +| NUMBER_311 | new BigDecimal("311") | +| NUMBER_312 | new BigDecimal("312") | +| NUMBER_313 | new BigDecimal("313") | +| NUMBER_314 | new BigDecimal("314") | +| NUMBER_315 | new BigDecimal("315") | +| NUMBER_316 | new BigDecimal("316") | +| NUMBER_317 | new BigDecimal("317") | +| NUMBER_318 | new BigDecimal("318") | +| NUMBER_319 | new BigDecimal("319") | +| NUMBER_320 | new BigDecimal("320") | +| NUMBER_321 | new BigDecimal("321") | +| NUMBER_322 | new BigDecimal("322") | +| NUMBER_323 | new BigDecimal("323") | +| NUMBER_324 | new BigDecimal("324") | +| NUMBER_325 | new BigDecimal("325") | +| NUMBER_326 | new BigDecimal("326") | +| NUMBER_327 | new BigDecimal("327") | +| NUMBER_328 | new BigDecimal("328") | +| NUMBER_329 | new BigDecimal("329") | +| NUMBER_331 | new BigDecimal("331") | +| NUMBER_332 | new BigDecimal("332") | +| NUMBER_333 | new BigDecimal("333") | +| NUMBER_334 | new BigDecimal("334") | +| NUMBER_335 | new BigDecimal("335") | +| NUMBER_336 | new BigDecimal("336") | +| NUMBER_337 | new BigDecimal("337") | +| NUMBER_338 | new BigDecimal("338") | +| NUMBER_339 | new BigDecimal("339") | +| NUMBER_340 | new BigDecimal("340") | +| NUMBER_341 | new BigDecimal("341") | +| NUMBER_342 | new BigDecimal("342") | +| NUMBER_343 | new BigDecimal("343") | +| NUMBER_344 | new BigDecimal("344") | +| NUMBER_345 | new BigDecimal("345") | +| NUMBER_348 | new BigDecimal("348") | +| NUMBER_349 | new BigDecimal("349") | +| NUMBER_350 | new BigDecimal("350") | +| NUMBER_351 | new BigDecimal("351") | +| NUMBER_5000 | new BigDecimal("5000") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | +| NUMBER_5009 | new BigDecimal("5009") | +| NUMBER_5010 | new BigDecimal("5010") | +| NUMBER_5011 | new BigDecimal("5011") | +| NUMBER_5012 | new BigDecimal("5012") | +| NUMBER_5013 | new BigDecimal("5013") | +| NUMBER_5014 | new BigDecimal("5014") | +| NUMBER_5015 | new BigDecimal("5015") | +| NUMBER_5016 | new BigDecimal("5016") | +| NUMBER_5017 | new BigDecimal("5017") | +| NUMBER_5018 | new BigDecimal("5018") | +| NUMBER_5020 | new BigDecimal("5020") | +| NUMBER_5021 | new BigDecimal("5021") | +| NUMBER_5022 | new BigDecimal("5022") | +| NUMBER_5023 | new BigDecimal("5023") | +| NUMBER_5024 | new BigDecimal("5024") | +| NUMBER_5025 | new BigDecimal("5025") | +| NUMBER_5026 | new BigDecimal("5026") | +| NUMBER_5027 | new BigDecimal("5027") | +| NUMBER_5028 | new BigDecimal("5028") | +| NUMBER_5029 | new BigDecimal("5029") | +| NUMBER_5030 | new BigDecimal("5030") | +| NUMBER_5031 | new BigDecimal("5031") | +| NUMBER_5032 | new BigDecimal("5032") | +| NUMBER_5033 | new BigDecimal("5033") | +| NUMBER_5034 | new BigDecimal("5034") | +| NUMBER_5035 | new BigDecimal("5035") | +| NUMBER_5036 | new BigDecimal("5036") | +| NUMBER_5037 | new BigDecimal("5037") | +| NUMBER_5039 | new BigDecimal("5039") | +| NUMBER_5040 | new BigDecimal("5040") | +| NUMBER_5041 | new BigDecimal("5041") | +| NUMBER_5042 | new BigDecimal("5042") | +| NUMBER_5043 | new BigDecimal("5043") | +| NUMBER_5044 | new BigDecimal("5044") | +| NUMBER_5045 | new BigDecimal("5045") | +| NUMBER_5046 | new BigDecimal("5046") | +| NUMBER_5047 | new BigDecimal("5047") | +| NUMBER_5048 | new BigDecimal("5048") | +| NUMBER_5049 | new BigDecimal("5049") | +| NUMBER_5050 | new BigDecimal("5050") | +| NUMBER_5051 | new BigDecimal("5051") | +| NUMBER_5052 | new BigDecimal("5052") | +| NUMBER_5053 | new BigDecimal("5053") | +| NUMBER_5054 | new BigDecimal("5054") | +| NUMBER_5055 | new BigDecimal("5055") | +| NUMBER_5056 | new BigDecimal("5056") | +| NUMBER_5057 | new BigDecimal("5057") | +| NUMBER_5058 | new BigDecimal("5058") | +| NUMBER_5059 | new BigDecimal("5059") | +| NUMBER_5060 | new BigDecimal("5060") | +| NUMBER_5061 | new BigDecimal("5061") | +| NUMBER_5062 | new BigDecimal("5062") | +| NUMBER_5063 | new BigDecimal("5063") | +| NUMBER_5064 | new BigDecimal("5064") | +| NUMBER_5065 | new BigDecimal("5065") | +| NUMBER_5066 | new BigDecimal("5066") | +| NUMBER_5067 | new BigDecimal("5067") | +| NUMBER_5068 | new BigDecimal("5068") | +| NUMBER_5069 | new BigDecimal("5069") | +| NUMBER_5070 | new BigDecimal("5070") | +| NUMBER_5071 | new BigDecimal("5071") | +| NUMBER_5072 | new BigDecimal("5072") | +| NUMBER_5073 | new BigDecimal("5073") | +| NUMBER_5074 | new BigDecimal("5074") | +| NUMBER_5075 | new BigDecimal("5075") | +| NUMBER_5076 | new BigDecimal("5076") | +| NUMBER_5077 | new BigDecimal("5077") | +| NUMBER_5078 | new BigDecimal("5078") | +| NUMBER_5079 | new BigDecimal("5079") | +| NUMBER_5080 | new BigDecimal("5080") | +| NUMBER_5081 | new BigDecimal("5081") | +| NUMBER_5082 | new BigDecimal("5082") | +| NUMBER_5083 | new BigDecimal("5083") | +| NUMBER_5084 | new BigDecimal("5084") | +| NUMBER_5085 | new BigDecimal("5085") | +| NUMBER_5086 | new BigDecimal("5086") | +| NUMBER_5087 | new BigDecimal("5087") | +| NUMBER_5088 | new BigDecimal("5088") | +| NUMBER_5089 | new BigDecimal("5089") | +| NUMBER_5090 | new BigDecimal("5090") | +| NUMBER_5091 | new BigDecimal("5091") | +| NUMBER_5092 | new BigDecimal("5092") | +| NUMBER_5093 | new BigDecimal("5093") | +| NUMBER_5094 | new BigDecimal("5094") | +| NUMBER_5095 | new BigDecimal("5095") | +| NUMBER_5096 | new BigDecimal("5096") | +| NUMBER_5097 | new BigDecimal("5097") | +| NUMBER_5098 | new BigDecimal("5098") | +| NUMBER_5099 | new BigDecimal("5099") | +| NUMBER_5100 | new BigDecimal("5100") | +| NUMBER_5101 | new BigDecimal("5101") | +| NUMBER_5102 | new BigDecimal("5102") | +| NUMBER_5103 | new BigDecimal("5103") | +| NUMBER_5104 | new BigDecimal("5104") | +| NUMBER_5105 | new BigDecimal("5105") | +| NUMBER_5106 | new BigDecimal("5106") | +| NUMBER_5107 | new BigDecimal("5107") | +| NUMBER_5108 | new BigDecimal("5108") | +| NUMBER_5109 | new BigDecimal("5109") | +| NUMBER_5110 | new BigDecimal("5110") | +| NUMBER_5111 | new BigDecimal("5111") | +| NUMBER_5112 | new BigDecimal("5112") | +| NUMBER_5113 | new BigDecimal("5113") | +| NUMBER_5114 | new BigDecimal("5114") | +| NUMBER_5115 | new BigDecimal("5115") | +| NUMBER_5116 | new BigDecimal("5116") | +| NUMBER_5117 | new BigDecimal("5117") | +| NUMBER_5118 | new BigDecimal("5118") | +| NUMBER_5119 | new BigDecimal("5119") | +| NUMBER_5120 | new BigDecimal("5120") | +| NUMBER_5121 | new BigDecimal("5121") | +| NUMBER_5122 | new BigDecimal("5122") | +| NUMBER_5123 | new BigDecimal("5123") | +| NUMBER_5124 | new BigDecimal("5124") | +| NUMBER_5125 | new BigDecimal("5125") | +| NUMBER_5126 | new BigDecimal("5126") | +| NUMBER_5127 | new BigDecimal("5127") | +| NUMBER_5128 | new BigDecimal("5128") | +| NUMBER_5129 | new BigDecimal("5129") | +| NUMBER_5130 | new BigDecimal("5130") | +| NUMBER_5131 | new BigDecimal("5131") | +| NUMBER_5132 | new BigDecimal("5132") | +| NUMBER_5133 | new BigDecimal("5133") | +| NUMBER_5134 | new BigDecimal("5134") | +| NUMBER_5135 | new BigDecimal("5135") | +| NUMBER_5136 | new BigDecimal("5136") | +| NUMBER_5137 | new BigDecimal("5137") | +| NUMBER_5138 | new BigDecimal("5138") | +| NUMBER_5139 | new BigDecimal("5139") | +| NUMBER_5140 | new BigDecimal("5140") | +| NUMBER_5141 | new BigDecimal("5141") | +| NUMBER_5142 | new BigDecimal("5142") | +| NUMBER_5143 | new BigDecimal("5143") | +| NUMBER_5144 | new BigDecimal("5144") | +| NUMBER_5145 | new BigDecimal("5145") | +| NUMBER_5146 | new BigDecimal("5146") | +| NUMBER_5147 | new BigDecimal("5147") | +| NUMBER_5148 | new BigDecimal("5148") | +| NUMBER_5149 | new BigDecimal("5149") | +| NUMBER_5150 | new BigDecimal("5150") | +| NUMBER_5151 | new BigDecimal("5151") | +| NUMBER_5152 | new BigDecimal("5152") | +| NUMBER_5153 | new BigDecimal("5153") | +| NUMBER_5154 | new BigDecimal("5154") | +| NUMBER_5156 | new BigDecimal("5156") | +| NUMBER_5157 | new BigDecimal("5157") | +| NUMBER_5158 | new BigDecimal("5158") | +| NUMBER_5159 | new BigDecimal("5159") | +| NUMBER_5160 | new BigDecimal("5160") | +| NUMBER_5161 | new BigDecimal("5161") | +| NUMBER_5162 | new BigDecimal("5162") | +| NUMBER_5163 | new BigDecimal("5163") | +| NUMBER_5164 | new BigDecimal("5164") | +| NUMBER_5165 | new BigDecimal("5165") | +| NUMBER_5166 | new BigDecimal("5166") | +| NUMBER_5167 | new BigDecimal("5167") | +| NUMBER_5168 | new BigDecimal("5168") | +| NUMBER_5169 | new BigDecimal("5169") | +| NUMBER_5170 | new BigDecimal("5170") | +| NUMBER_5171 | new BigDecimal("5171") | +| NUMBER_5172 | new BigDecimal("5172") | +| NUMBER_5173 | new BigDecimal("5173") | +| NUMBER_5174 | new BigDecimal("5174") | +| NUMBER_5175 | new BigDecimal("5175") | +| NUMBER_5176 | new BigDecimal("5176") | +| NUMBER_5177 | new BigDecimal("5177") | +| NUMBER_5178 | new BigDecimal("5178") | +| NUMBER_6000 | new BigDecimal("6000") | +| NUMBER_6001 | new BigDecimal("6001") | +| NUMBER_90001 | new BigDecimal("90001") | + + + +## Enum: List<CategoryListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_30 | new BigDecimal("30") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | +| NUMBER_34 | new BigDecimal("34") | +| NUMBER_35 | new BigDecimal("35") | +| NUMBER_36 | new BigDecimal("36") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_38 | new BigDecimal("38") | +| NUMBER_39 | new BigDecimal("39") | +| NUMBER_40 | new BigDecimal("40") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_44 | new BigDecimal("44") | +| NUMBER_45 | new BigDecimal("45") | +| NUMBER_46 | new BigDecimal("46") | +| NUMBER_47 | new BigDecimal("47") | +| NUMBER_48 | new BigDecimal("48") | +| NUMBER_49 | new BigDecimal("49") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_51 | new BigDecimal("51") | +| NUMBER_52 | new BigDecimal("52") | +| NUMBER_53 | new BigDecimal("53") | +| NUMBER_54 | new BigDecimal("54") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_56 | new BigDecimal("56") | +| NUMBER_57 | new BigDecimal("57") | +| NUMBER_58 | new BigDecimal("58") | +| NUMBER_59 | new BigDecimal("59") | +| NUMBER_60 | new BigDecimal("60") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_62 | new BigDecimal("62") | +| NUMBER_5000 | new BigDecimal("5000") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | +| NUMBER_5009 | new BigDecimal("5009") | + + + diff --git a/docs/AvailablePropertiesInner1AttractionListInner.md b/docs/AvailablePropertiesInner1AttractionListInner.md new file mode 100644 index 0000000..05d49d8 --- /dev/null +++ b/docs/AvailablePropertiesInner1AttractionListInner.md @@ -0,0 +1,142 @@ + + +# AvailablePropertiesInner1AttractionListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**typeCode** | [**TypeCodeEnum**](#TypeCodeEnum) | The code for this attraction type.<p>See also <a href=\"#attractioncategory-codes\">in the appendix</a>.</p> | | +|**name** | **String** | The name of the attraction. Names are proper nouns and therefore not affected by the given language code. | | +|**distance** | [**AvailablePropertiesInner1AttractionListInnerDistance**](AvailablePropertiesInner1AttractionListInnerDistance.md) | | | + + + +## Enum: TypeCodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_30 | new BigDecimal("30") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | +| NUMBER_34 | new BigDecimal("34") | +| NUMBER_35 | new BigDecimal("35") | +| NUMBER_36 | new BigDecimal("36") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_38 | new BigDecimal("38") | +| NUMBER_39 | new BigDecimal("39") | +| NUMBER_40 | new BigDecimal("40") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_44 | new BigDecimal("44") | +| NUMBER_45 | new BigDecimal("45") | +| NUMBER_46 | new BigDecimal("46") | +| NUMBER_47 | new BigDecimal("47") | +| NUMBER_48 | new BigDecimal("48") | +| NUMBER_49 | new BigDecimal("49") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_51 | new BigDecimal("51") | +| NUMBER_52 | new BigDecimal("52") | +| NUMBER_53 | new BigDecimal("53") | +| NUMBER_54 | new BigDecimal("54") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_56 | new BigDecimal("56") | +| NUMBER_57 | new BigDecimal("57") | +| NUMBER_58 | new BigDecimal("58") | +| NUMBER_59 | new BigDecimal("59") | +| NUMBER_60 | new BigDecimal("60") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_62 | new BigDecimal("62") | +| NUMBER_63 | new BigDecimal("63") | +| NUMBER_64 | new BigDecimal("64") | +| NUMBER_65 | new BigDecimal("65") | +| NUMBER_66 | new BigDecimal("66") | +| NUMBER_67 | new BigDecimal("67") | +| NUMBER_68 | new BigDecimal("68") | +| NUMBER_69 | new BigDecimal("69") | +| NUMBER_70 | new BigDecimal("70") | +| NUMBER_71 | new BigDecimal("71") | +| NUMBER_72 | new BigDecimal("72") | +| NUMBER_73 | new BigDecimal("73") | +| NUMBER_74 | new BigDecimal("74") | +| NUMBER_75 | new BigDecimal("75") | +| NUMBER_76 | new BigDecimal("76") | +| NUMBER_77 | new BigDecimal("77") | +| NUMBER_78 | new BigDecimal("78") | +| NUMBER_79 | new BigDecimal("79") | +| NUMBER_80 | new BigDecimal("80") | +| NUMBER_81 | new BigDecimal("81") | +| NUMBER_82 | new BigDecimal("82") | +| NUMBER_83 | new BigDecimal("83") | +| NUMBER_84 | new BigDecimal("84") | +| NUMBER_85 | new BigDecimal("85") | +| NUMBER_86 | new BigDecimal("86") | +| NUMBER_87 | new BigDecimal("87") | +| NUMBER_88 | new BigDecimal("88") | +| NUMBER_89 | new BigDecimal("89") | +| NUMBER_90 | new BigDecimal("90") | +| NUMBER_91 | new BigDecimal("91") | +| NUMBER_92 | new BigDecimal("92") | +| NUMBER_93 | new BigDecimal("93") | +| NUMBER_94 | new BigDecimal("94") | +| NUMBER_95 | new BigDecimal("95") | +| NUMBER_96 | new BigDecimal("96") | +| NUMBER_97 | new BigDecimal("97") | +| NUMBER_98 | new BigDecimal("98") | +| NUMBER_99 | new BigDecimal("99") | +| NUMBER_100 | new BigDecimal("100") | +| NUMBER_101 | new BigDecimal("101") | +| NUMBER_102 | new BigDecimal("102") | +| NUMBER_103 | new BigDecimal("103") | +| NUMBER_104 | new BigDecimal("104") | +| NUMBER_105 | new BigDecimal("105") | +| NUMBER_106 | new BigDecimal("106") | +| NUMBER_107 | new BigDecimal("107") | +| NUMBER_108 | new BigDecimal("108") | +| NUMBER_109 | new BigDecimal("109") | +| NUMBER_110 | new BigDecimal("110") | +| NUMBER_90001 | new BigDecimal("90001") | +| NUMBER_90002 | new BigDecimal("90002") | +| NUMBER_90003 | new BigDecimal("90003") | +| NUMBER_90004 | new BigDecimal("90004") | +| NUMBER_90005 | new BigDecimal("90005") | +| NUMBER_90006 | new BigDecimal("90006") | +| NUMBER_90007 | new BigDecimal("90007") | +| NUMBER_90008 | new BigDecimal("90008") | +| NUMBER_90009 | new BigDecimal("90009") | +| NUMBER_90010 | new BigDecimal("90010") | + + + diff --git a/docs/AvailablePropertiesInner1AttractionListInnerDistance.md b/docs/AvailablePropertiesInner1AttractionListInnerDistance.md new file mode 100644 index 0000000..780fa4e --- /dev/null +++ b/docs/AvailablePropertiesInner1AttractionListInnerDistance.md @@ -0,0 +1,24 @@ + + +# AvailablePropertiesInner1AttractionListInnerDistance + +The distance from the property to this attraction. Whether this is road or air distance is not clearly defined as the values are entered by the tenants admins. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**value** | **BigDecimal** | The numeric value of the distance. | | +|**unit** | [**UnitEnum**](#UnitEnum) | The unit of the value of the distance. | | + + + +## Enum: UnitEnum + +| Name | Value | +|---- | -----| +| M | "m" | +| FT | "ft" | + + + diff --git a/docs/AvailablePropertiesInner1Geo.md b/docs/AvailablePropertiesInner1Geo.md new file mode 100644 index 0000000..45f713f --- /dev/null +++ b/docs/AvailablePropertiesInner1Geo.md @@ -0,0 +1,80 @@ + + +# AvailablePropertiesInner1Geo + +A geographical information set describing the location of this property.

See also in the appendix. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**language** | [**LanguageEnum**](#LanguageEnum) | The language of the localizable fields ot this geographical information set.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> | | +|**formattedAddress** | **String** | The formatted address in the local format of the properties location. | | +|**route** | **String** | The name of the route or street. | [optional] | +|**streetNumber** | **String** | The number of the street. | [optional] | +|**postalCode** | **String** | The postal code of the location. | [optional] | +|**locality** | **String** | A city or town. | [optional] | +|**sublocality** | **String** | A smaller area within a locality. | [optional] | +|**sublocalityLevel1** | **String** | A smaller area within a locality at level 1. | [optional] | +|**sublocalityLevel2** | **String** | A smaller area within a locality at level 2. | [optional] | +|**sublocalityLevel3** | **String** | A smaller area within a locality at level 3. | [optional] | +|**sublocalityLevel4** | **String** | A smaller area within a locality at level 4. | [optional] | +|**sublocalityLevel5** | **String** | A smaller area within a locality at level 5. | [optional] | +|**administrativeAreaLevel1** | **String** | A level 1 administrative area, such as a state or province. | [optional] | +|**administrativeAreaLevel2** | **String** | A level 2 administrative area. | [optional] | +|**administrativeAreaLevel3** | **String** | A level 3 administrative area | [optional] | +|**administrativeAreaLevel4** | **String** | A level 4 administrative area. | [optional] | +|**administrativeAreaLevel5** | **String** | A level 5 administrative area | [optional] | +|**stateCode** | **String** | The state or province code for the administrative area. | [optional] | +|**country** | **String** | The country of this geographical information set. | [optional] | +|**countryCode** | **String** | The country code for the country. | [optional] | +|**location** | [**AvailablePropertiesInner1GeoLocation**](AvailablePropertiesInner1GeoLocation.md) | | | +|**placeId** | **String** | Uniquely identifies a place in our database. | | + + + +## Enum: LanguageEnum + +| Name | Value | +|---- | -----| +| AF | "af" | +| AR | "ar" | +| BG | "bg" | +| CA | "ca" | +| CS | "cs" | +| DA | "da" | +| DE | "de" | +| EL | "el" | +| EN | "en" | +| ES | "es" | +| ET | "et" | +| FI | "fi" | +| FR | "fr" | +| HE | "he" | +| HI | "hi" | +| HR | "hr" | +| HU | "hu" | +| ID | "id" | +| IS | "is" | +| IT | "it" | +| JA | "ja" | +| KO | "ko" | +| LT | "lt" | +| LV | "lv" | +| NL | "nl" | +| NO | "no" | +| PL | "pl" | +| PT | "pt" | +| RO | "ro" | +| RU | "ru" | +| SK | "sk" | +| SL | "sl" | +| SR | "sr" | +| SV | "sv" | +| TH | "th" | +| TR | "tr" | +| VI | "vi" | +| ZH | "zh" | + + + diff --git a/docs/AvailablePropertiesInner1GeoLocation.md b/docs/AvailablePropertiesInner1GeoLocation.md new file mode 100644 index 0000000..c4d4676 --- /dev/null +++ b/docs/AvailablePropertiesInner1GeoLocation.md @@ -0,0 +1,14 @@ + + +# AvailablePropertiesInner1GeoLocation + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**lng** | **BigDecimal** | The longitude coordinate of the location. | | +|**lat** | **BigDecimal** | The location of the property as coordinates | | + + + diff --git a/docs/AvailablePropertiesInner1LowestPrice.md b/docs/AvailablePropertiesInner1LowestPrice.md new file mode 100644 index 0000000..bb80767 --- /dev/null +++ b/docs/AvailablePropertiesInner1LowestPrice.md @@ -0,0 +1,75 @@ + + +# AvailablePropertiesInner1LowestPrice + +An object outlining the stay with the lowest available price point for this property. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**amount** | **BigDecimal** | The amount of the lowest price. | | +|**currencyCode** | [**CurrencyCodeEnum**](#CurrencyCodeEnum) | The currency code for the given amount.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> | | +|**arrivalDate** | **BigDecimal** | Arrival date for the given price as unix timestamp (seconds). | | +|**returnDate** | **BigDecimal** | Departure date for the given price as unix timestamp (seconds). | | +|**lengthOfStay** | **BigDecimal** | The amount of nights of stay this price is for | | + + + +## Enum: CurrencyCodeEnum + +| Name | Value | +|---- | -----| +| AED | "AED" | +| ARS | "ARS" | +| AUD | "AUD" | +| AZN | "AZN" | +| BGN | "BGN" | +| BHD | "BHD" | +| BRL | "BRL" | +| CAD | "CAD" | +| CHF | "CHF" | +| CLP | "CLP" | +| CNY | "CNY" | +| COP | "COP" | +| CZK | "CZK" | +| DKK | "DKK" | +| EGP | "EGP" | +| EUR | "EUR" | +| FJD | "FJD" | +| GBP | "GBP" | +| GEL | "GEL" | +| HKD | "HKD" | +| HUF | "HUF" | +| IDR | "IDR" | +| ILS | "ILS" | +| INR | "INR" | +| JOD | "JOD" | +| JPY | "JPY" | +| KRW | "KRW" | +| KWD | "KWD" | +| KZT | "KZT" | +| MDL | "MDL" | +| MXN | "MXN" | +| MYR | "MYR" | +| NAD | "NAD" | +| NOK | "NOK" | +| NZD | "NZD" | +| OMR | "OMR" | +| PLN | "PLN" | +| QAR | "QAR" | +| RON | "RON" | +| RUB | "RUB" | +| SAR | "SAR" | +| SEK | "SEK" | +| SGD | "SGD" | +| THB | "THB" | +| TRY | "TRY" | +| TWD | "TWD" | +| UAH | "UAH" | +| USD | "USD" | +| XOF | "XOF" | +| ZAR | "ZAR" | + + + diff --git a/docs/AvailablePropertiesInner1MediaListInner.md b/docs/AvailablePropertiesInner1MediaListInner.md new file mode 100644 index 0000000..e9aabfc --- /dev/null +++ b/docs/AvailablePropertiesInner1MediaListInner.md @@ -0,0 +1,156 @@ + + +# AvailablePropertiesInner1MediaListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**tagList** | [**List<TagListEnum>**](#List<TagListEnum>) | A list of tag codes for the media.<p>See also <a href=\"#imagetype-codes\">in the appendix</a>.</p> | | +|**isMainImage** | **Boolean** | Whether the media is the main image for the property. | | +|**url** | **String** | The URL for the media. | | +|**sortOrder** | **BigDecimal** | The sort order for the media. | | + + + +## Enum: List<TagListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_70 | new BigDecimal("70") | +| NUMBER_74 | new BigDecimal("74") | +| NUMBER_81 | new BigDecimal("81") | +| NUMBER_82 | new BigDecimal("82") | +| NUMBER_87 | new BigDecimal("87") | +| NUMBER_89 | new BigDecimal("89") | +| NUMBER_90 | new BigDecimal("90") | +| NUMBER_94 | new BigDecimal("94") | +| NUMBER_95 | new BigDecimal("95") | +| NUMBER_96 | new BigDecimal("96") | +| NUMBER_97 | new BigDecimal("97") | +| NUMBER_100 | new BigDecimal("100") | +| NUMBER_102 | new BigDecimal("102") | +| NUMBER_103 | new BigDecimal("103") | +| NUMBER_104 | new BigDecimal("104") | +| NUMBER_106 | new BigDecimal("106") | +| NUMBER_107 | new BigDecimal("107") | +| NUMBER_108 | new BigDecimal("108") | +| NUMBER_112 | new BigDecimal("112") | +| NUMBER_113 | new BigDecimal("113") | +| NUMBER_114 | new BigDecimal("114") | +| NUMBER_115 | new BigDecimal("115") | +| NUMBER_116 | new BigDecimal("116") | +| NUMBER_124 | new BigDecimal("124") | +| NUMBER_125 | new BigDecimal("125") | +| NUMBER_128 | new BigDecimal("128") | +| NUMBER_131 | new BigDecimal("131") | +| NUMBER_133 | new BigDecimal("133") | +| NUMBER_134 | new BigDecimal("134") | +| NUMBER_137 | new BigDecimal("137") | +| NUMBER_141 | new BigDecimal("141") | +| NUMBER_143 | new BigDecimal("143") | +| NUMBER_153 | new BigDecimal("153") | +| NUMBER_154 | new BigDecimal("154") | +| NUMBER_155 | new BigDecimal("155") | +| NUMBER_156 | new BigDecimal("156") | +| NUMBER_157 | new BigDecimal("157") | +| NUMBER_158 | new BigDecimal("158") | +| NUMBER_159 | new BigDecimal("159") | +| NUMBER_160 | new BigDecimal("160") | +| NUMBER_161 | new BigDecimal("161") | +| NUMBER_164 | new BigDecimal("164") | +| NUMBER_165 | new BigDecimal("165") | +| NUMBER_167 | new BigDecimal("167") | +| NUMBER_172 | new BigDecimal("172") | +| NUMBER_173 | new BigDecimal("173") | +| NUMBER_177 | new BigDecimal("177") | +| NUMBER_178 | new BigDecimal("178") | +| NUMBER_179 | new BigDecimal("179") | +| NUMBER_182 | new BigDecimal("182") | +| NUMBER_183 | new BigDecimal("183") | +| NUMBER_184 | new BigDecimal("184") | +| NUMBER_185 | new BigDecimal("185") | +| NUMBER_186 | new BigDecimal("186") | +| NUMBER_187 | new BigDecimal("187") | +| NUMBER_188 | new BigDecimal("188") | +| NUMBER_189 | new BigDecimal("189") | +| NUMBER_190 | new BigDecimal("190") | +| NUMBER_191 | new BigDecimal("191") | +| NUMBER_192 | new BigDecimal("192") | +| NUMBER_193 | new BigDecimal("193") | +| NUMBER_194 | new BigDecimal("194") | +| NUMBER_197 | new BigDecimal("197") | +| NUMBER_198 | new BigDecimal("198") | +| NUMBER_199 | new BigDecimal("199") | +| NUMBER_204 | new BigDecimal("204") | +| NUMBER_205 | new BigDecimal("205") | +| NUMBER_240 | new BigDecimal("240") | +| NUMBER_241 | new BigDecimal("241") | +| NUMBER_242 | new BigDecimal("242") | +| NUMBER_245 | new BigDecimal("245") | +| NUMBER_246 | new BigDecimal("246") | +| NUMBER_247 | new BigDecimal("247") | +| NUMBER_248 | new BigDecimal("248") | +| NUMBER_249 | new BigDecimal("249") | +| NUMBER_250 | new BigDecimal("250") | +| NUMBER_251 | new BigDecimal("251") | +| NUMBER_252 | new BigDecimal("252") | +| NUMBER_253 | new BigDecimal("253") | +| NUMBER_254 | new BigDecimal("254") | +| NUMBER_255 | new BigDecimal("255") | +| NUMBER_256 | new BigDecimal("256") | +| NUMBER_257 | new BigDecimal("257") | +| NUMBER_258 | new BigDecimal("258") | +| NUMBER_259 | new BigDecimal("259") | +| NUMBER_260 | new BigDecimal("260") | +| NUMBER_261 | new BigDecimal("261") | +| NUMBER_262 | new BigDecimal("262") | +| NUMBER_263 | new BigDecimal("263") | +| NUMBER_264 | new BigDecimal("264") | +| NUMBER_265 | new BigDecimal("265") | +| NUMBER_266 | new BigDecimal("266") | +| NUMBER_267 | new BigDecimal("267") | +| NUMBER_268 | new BigDecimal("268") | +| NUMBER_269 | new BigDecimal("269") | +| NUMBER_270 | new BigDecimal("270") | +| NUMBER_271 | new BigDecimal("271") | +| NUMBER_272 | new BigDecimal("272") | +| NUMBER_273 | new BigDecimal("273") | +| NUMBER_276 | new BigDecimal("276") | +| NUMBER_277 | new BigDecimal("277") | +| NUMBER_278 | new BigDecimal("278") | +| NUMBER_279 | new BigDecimal("279") | +| NUMBER_280 | new BigDecimal("280") | +| NUMBER_281 | new BigDecimal("281") | +| NUMBER_282 | new BigDecimal("282") | +| NUMBER_283 | new BigDecimal("283") | +| NUMBER_284 | new BigDecimal("284") | +| NUMBER_285 | new BigDecimal("285") | +| NUMBER_286 | new BigDecimal("286") | +| NUMBER_287 | new BigDecimal("287") | +| NUMBER_289 | new BigDecimal("289") | +| NUMBER_290 | new BigDecimal("290") | +| NUMBER_291 | new BigDecimal("291") | + + + diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md new file mode 100644 index 0000000..a559de1 --- /dev/null +++ b/docs/DefaultApi.md @@ -0,0 +1,373 @@ +# DefaultApi + +All URIs are relative to *https://api.eu.lodgea.io/v1* + +| Method | HTTP request | Description | +|------------- | ------------- | -------------| +| [**availabilitySearchPost**](DefaultApi.md#availabilitySearchPost) | **POST** /availability/search | Search for availability | +| [**locationSearchPost**](DefaultApi.md#locationSearchPost) | **POST** /location/search | Search for location | +| [**propertiesGet**](DefaultApi.md#propertiesGet) | **GET** /properties | List (filtered) properties | +| [**propertiesPropertyIdAvailabilityGet**](DefaultApi.md#propertiesPropertyIdAvailabilityGet) | **GET** /properties/{propertyId}/availability | Get a properties availability | +| [**propertiesPropertyIdGet**](DefaultApi.md#propertiesPropertyIdGet) | **GET** /properties/{propertyId} | Get a properties details | + + + +# **availabilitySearchPost** +> AvailabilitySearchPost200Response availabilitySearchPost(availabilitySearchPostRequest) + +Search for availability + +Get availability information based on search criteria. + +### Example +```java +// Import classes: +import com.lodgea.ApiClient; +import com.lodgea.ApiException; +import com.lodgea.Configuration; +import com.lodgea.auth.*; +import com.lodgea.models.*; +import com.lodgea.controllers.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.eu.lodgea.io/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + AvailabilitySearchPostRequest availabilitySearchPostRequest = new AvailabilitySearchPostRequest(); // AvailabilitySearchPostRequest | + try { + AvailabilitySearchPost200Response result = apiInstance.availabilitySearchPost(availabilitySearchPostRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#availabilitySearchPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **availabilitySearchPostRequest** | [**AvailabilitySearchPostRequest**](AvailabilitySearchPostRequest.md)| | [optional] | + +### Return type + +[**AvailabilitySearchPost200Response**](AvailabilitySearchPost200Response.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful, a list of available properties matching the given criteria is returned. | - | +| **400** | We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. | - | +| **403** | Unauthorized, the api key in the \"apiKey\" header field is invalid. | - | + + +# **locationSearchPost** +> LocationSearchPost200Response locationSearchPost(locationSearchPostRequest) + +Search for location + +Get a list of locations and their lowest available rate related to a given keyword. + +### Example +```java +// Import classes: +import com.lodgea.ApiClient; +import com.lodgea.ApiException; +import com.lodgea.Configuration; +import com.lodgea.auth.*; +import com.lodgea.models.*; +import com.lodgea.controllers.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.eu.lodgea.io/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + LocationSearchPostRequest locationSearchPostRequest = new LocationSearchPostRequest(); // LocationSearchPostRequest | + try { + LocationSearchPost200Response result = apiInstance.locationSearchPost(locationSearchPostRequest); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#locationSearchPost"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **locationSearchPostRequest** | [**LocationSearchPostRequest**](LocationSearchPostRequest.md)| | [optional] | + +### Return type + +[**LocationSearchPost200Response**](LocationSearchPost200Response.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: application/json + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful, a list of locations matching the given location search text is returned. | - | +| **400** | We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. | - | +| **403** | Unauthorized, the api key in the \"apiKey\" header field is invalid. | - | + + +# **propertiesGet** +> PropertiesGet200Response propertiesGet(keyword, pageToken) + +List (filtered) properties + +List properties, optionally filtered by a keyword. + +### Example +```java +// Import classes: +import com.lodgea.ApiClient; +import com.lodgea.ApiException; +import com.lodgea.Configuration; +import com.lodgea.auth.*; +import com.lodgea.models.*; +import com.lodgea.controllers.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.eu.lodgea.io/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + String keyword = "Strandresidenz Sylt"; // String | + String pageToken = "eyJ0ZW5hbnRDb2RlIjoiZG1vLWRlbW8iLCJuYW1lIjoiTGFuZGhhdXMgVHJlc2tlcnNhbmQiLCJwcm9wZXJ0eUlkIjoibGFuZGhhdXMtdHJlc2tlcnNhbmQifQ=="; // String | + try { + PropertiesGet200Response result = apiInstance.propertiesGet(keyword, pageToken); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#propertiesGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **keyword** | **String**| | [optional] | +| **pageToken** | **String**| | [optional] | + +### Return type + +[**PropertiesGet200Response**](PropertiesGet200Response.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful, a list of properties matching the given keyword is returned. | - | +| **400** | We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. | - | +| **403** | Unauthorized, the api key in the \"apiKey\" header field is invalid. | - | + + +# **propertiesPropertyIdAvailabilityGet** +> PropertiesPropertyIdAvailabilityGet200Response propertiesPropertyIdAvailabilityGet(propertyId, currencyCode) + +Get a properties availability + +Get detailed availability information for a specific property. + +### Example +```java +// Import classes: +import com.lodgea.ApiClient; +import com.lodgea.ApiException; +import com.lodgea.Configuration; +import com.lodgea.auth.*; +import com.lodgea.models.*; +import com.lodgea.controllers.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.eu.lodgea.io/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + String propertyId = "strandresidenz-sylt"; // String | + String currencyCode = "AED"; // String | + try { + PropertiesPropertyIdAvailabilityGet200Response result = apiInstance.propertiesPropertyIdAvailabilityGet(propertyId, currencyCode); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#propertiesPropertyIdAvailabilityGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **propertyId** | **String**| | | +| **currencyCode** | **String**| | [enum: AED, ARS, AUD, AZN, BGN, BHD, BRL, CAD, CHF, CLP, CNY, COP, CZK, DKK, EGP, EUR, FJD, GBP, GEL, HKD, HUF, IDR, ILS, INR, JOD, JPY, KRW, KWD, KZT, MDL, MXN, MYR, NAD, NOK, NZD, OMR, PLN, QAR, RON, RUB, SAR, SEK, SGD, THB, TRY, TWD, UAH, USD, XOF, ZAR] | + +### Return type + +[**PropertiesPropertyIdAvailabilityGet200Response**](PropertiesPropertyIdAvailabilityGet200Response.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful, a list of properties matching the given keyword is returned. | - | +| **400** | We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. | - | +| **403** | Unauthorized, the api key in the \"apiKey\" header field is invalid. | - | + + +# **propertiesPropertyIdGet** +> PropertiesPropertyIdGet200Response propertiesPropertyIdGet(propertyId) + +Get a properties details + +Get all information about a specific property by its ID. + +### Example +```java +// Import classes: +import com.lodgea.ApiClient; +import com.lodgea.ApiException; +import com.lodgea.Configuration; +import com.lodgea.auth.*; +import com.lodgea.models.*; +import com.lodgea.controllers.DefaultApi; + +public class Example { + public static void main(String[] args) { + ApiClient defaultClient = Configuration.getDefaultApiClient(); + defaultClient.setBasePath("https://api.eu.lodgea.io/v1"); + + // Configure API key authorization: ApiKeyAuth + ApiKeyAuth ApiKeyAuth = (ApiKeyAuth) defaultClient.getAuthentication("ApiKeyAuth"); + ApiKeyAuth.setApiKey("YOUR API KEY"); + // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) + //ApiKeyAuth.setApiKeyPrefix("Token"); + + DefaultApi apiInstance = new DefaultApi(defaultClient); + String propertyId = "strandresidenz-sylt"; // String | + try { + PropertiesPropertyIdGet200Response result = apiInstance.propertiesPropertyIdGet(propertyId); + System.out.println(result); + } catch (ApiException e) { + System.err.println("Exception when calling DefaultApi#propertiesPropertyIdGet"); + System.err.println("Status code: " + e.getCode()); + System.err.println("Reason: " + e.getResponseBody()); + System.err.println("Response headers: " + e.getResponseHeaders()); + e.printStackTrace(); + } + } +} +``` + +### Parameters + +| Name | Type | Description | Notes | +|------------- | ------------- | ------------- | -------------| +| **propertyId** | **String**| | | + +### Return type + +[**PropertiesPropertyIdGet200Response**](PropertiesPropertyIdGet200Response.md) + +### Authorization + +[ApiKeyAuth](../README.md#ApiKeyAuth) + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +### HTTP response details +| Status code | Description | Response headers | +|-------------|-------------|------------------| +| **200** | Successful, property found, the whole property object is returned. | - | +| **400** | We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. | - | +| **403** | Unauthorized, the api key in the \"apiKey\" header field is invalid. | - | +| **404** | The requested resource was not found | - | + diff --git a/docs/LocationSearchPost200Response.md b/docs/LocationSearchPost200Response.md new file mode 100644 index 0000000..65c5abb --- /dev/null +++ b/docs/LocationSearchPost200Response.md @@ -0,0 +1,59 @@ + + +# LocationSearchPost200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**languageCode** | [**LanguageCodeEnum**](#LanguageCodeEnum) | The language code of the language in which the descriptive texts for each found location are returned.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> | | +|**_list** | [**List<AvailablePropertiesInner>**](AvailablePropertiesInner.md) | A list of available properties matching the given criteria. | | + + + +## Enum: LanguageCodeEnum + +| Name | Value | +|---- | -----| +| AF | "af" | +| AR | "ar" | +| BG | "bg" | +| CA | "ca" | +| CS | "cs" | +| DA | "da" | +| DE | "de" | +| EL | "el" | +| EN | "en" | +| ES | "es" | +| ET | "et" | +| FI | "fi" | +| FR | "fr" | +| HE | "he" | +| HI | "hi" | +| HR | "hr" | +| HU | "hu" | +| ID | "id" | +| IS | "is" | +| IT | "it" | +| JA | "ja" | +| KO | "ko" | +| LT | "lt" | +| LV | "lv" | +| NL | "nl" | +| NO | "no" | +| PL | "pl" | +| PT | "pt" | +| RO | "ro" | +| RU | "ru" | +| SK | "sk" | +| SL | "sl" | +| SR | "sr" | +| SV | "sv" | +| TH | "th" | +| TR | "tr" | +| VI | "vi" | +| ZH | "zh" | + + + diff --git a/docs/LocationSearchPost400Response.md b/docs/LocationSearchPost400Response.md new file mode 100644 index 0000000..cdfea6b --- /dev/null +++ b/docs/LocationSearchPost400Response.md @@ -0,0 +1,13 @@ + + +# LocationSearchPost400Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**validationErrors** | [**List<LocationSearchPost400ResponseValidationErrorsInner>**](LocationSearchPost400ResponseValidationErrorsInner.md) | | | + + + diff --git a/docs/LocationSearchPost400ResponseValidationErrorsInner.md b/docs/LocationSearchPost400ResponseValidationErrorsInner.md new file mode 100644 index 0000000..8c147c8 --- /dev/null +++ b/docs/LocationSearchPost400ResponseValidationErrorsInner.md @@ -0,0 +1,39 @@ + + +# LocationSearchPost400ResponseValidationErrorsInner + +A Zod issue. More fields can be present depending on the issue type. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | [**CodeEnum**](#CodeEnum) | The ZodIssueCode describing the issue. | | +|**message** | **String** | A message describing the error in a human readable way. | | +|**path** | **List<String>** | An array describing the position of the faulty property. The first segment will always be either \"body\", \"pathParameters\" or \"queryParameters\" indicating on which part of your request the error occurred. | | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| INVALID_TYPE | "invalid_type" | +| INVALID_LITERAL | "invalid_literal" | +| CUSTOM | "custom" | +| INVALID_UNION | "invalid_union" | +| INVALID_UNION_DISCRIMINATOR | "invalid_union_discriminator" | +| INVALID_ENUM_VALUE | "invalid_enum_value" | +| UNRECOGNIZED_KEYS | "unrecognized_keys" | +| INVALID_ARGUMENTS | "invalid_arguments" | +| INVALID_RETURN_TYPE | "invalid_return_type" | +| INVALID_DATE | "invalid_date" | +| INVALID_STRING | "invalid_string" | +| TOO_SMALL | "too_small" | +| TOO_BIG | "too_big" | +| INVALID_INTERSECTION_TYPES | "invalid_intersection_types" | +| NOT_MULTIPLE_OF | "not_multiple_of" | +| NOT_FINITE | "not_finite" | + + + diff --git a/docs/LocationSearchPostRequest.md b/docs/LocationSearchPostRequest.md new file mode 100644 index 0000000..013af7f --- /dev/null +++ b/docs/LocationSearchPostRequest.md @@ -0,0 +1,117 @@ + + +# LocationSearchPostRequest + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**searchText** | **String** | A search text in free form to search locations by. | | +|**currencyCode** | [**CurrencyCodeEnum**](#CurrencyCodeEnum) | The currency code of the currency in which the lowest price for each found location should be returned.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> | | +|**languageCode** | [**LanguageCodeEnum**](#LanguageCodeEnum) | The language code of the language in which the descriptive texts for each found location should be returned.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> | | + + + +## Enum: CurrencyCodeEnum + +| Name | Value | +|---- | -----| +| AED | "AED" | +| ARS | "ARS" | +| AUD | "AUD" | +| AZN | "AZN" | +| BGN | "BGN" | +| BHD | "BHD" | +| BRL | "BRL" | +| CAD | "CAD" | +| CHF | "CHF" | +| CLP | "CLP" | +| CNY | "CNY" | +| COP | "COP" | +| CZK | "CZK" | +| DKK | "DKK" | +| EGP | "EGP" | +| EUR | "EUR" | +| FJD | "FJD" | +| GBP | "GBP" | +| GEL | "GEL" | +| HKD | "HKD" | +| HUF | "HUF" | +| IDR | "IDR" | +| ILS | "ILS" | +| INR | "INR" | +| JOD | "JOD" | +| JPY | "JPY" | +| KRW | "KRW" | +| KWD | "KWD" | +| KZT | "KZT" | +| MDL | "MDL" | +| MXN | "MXN" | +| MYR | "MYR" | +| NAD | "NAD" | +| NOK | "NOK" | +| NZD | "NZD" | +| OMR | "OMR" | +| PLN | "PLN" | +| QAR | "QAR" | +| RON | "RON" | +| RUB | "RUB" | +| SAR | "SAR" | +| SEK | "SEK" | +| SGD | "SGD" | +| THB | "THB" | +| TRY | "TRY" | +| TWD | "TWD" | +| UAH | "UAH" | +| USD | "USD" | +| XOF | "XOF" | +| ZAR | "ZAR" | + + + +## Enum: LanguageCodeEnum + +| Name | Value | +|---- | -----| +| AF | "af" | +| AR | "ar" | +| BG | "bg" | +| CA | "ca" | +| CS | "cs" | +| DA | "da" | +| DE | "de" | +| EL | "el" | +| EN | "en" | +| ES | "es" | +| ET | "et" | +| FI | "fi" | +| FR | "fr" | +| HE | "he" | +| HI | "hi" | +| HR | "hr" | +| HU | "hu" | +| ID | "id" | +| IS | "is" | +| IT | "it" | +| JA | "ja" | +| KO | "ko" | +| LT | "lt" | +| LV | "lv" | +| NL | "nl" | +| NO | "no" | +| PL | "pl" | +| PT | "pt" | +| RO | "ro" | +| RU | "ru" | +| SK | "sk" | +| SL | "sl" | +| SR | "sr" | +| SV | "sv" | +| TH | "th" | +| TR | "tr" | +| VI | "vi" | +| ZH | "zh" | + + + diff --git a/docs/PropertiesGet200Response.md b/docs/PropertiesGet200Response.md new file mode 100644 index 0000000..c6fc9e9 --- /dev/null +++ b/docs/PropertiesGet200Response.md @@ -0,0 +1,14 @@ + + +# PropertiesGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**_list** | [**List<PropertiesGet200ResponseListInner>**](PropertiesGet200ResponseListInner.md) | | | +|**pageToken** | **String** | The page token to pass in the subsequent call to retrieve more results, only returned if more results are available. | [optional] | + + + diff --git a/docs/PropertiesGet200ResponseListInner.md b/docs/PropertiesGet200ResponseListInner.md new file mode 100644 index 0000000..6a40089 --- /dev/null +++ b/docs/PropertiesGet200ResponseListInner.md @@ -0,0 +1,18 @@ + + +# PropertiesGet200ResponseListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**published** | **Boolean** | Whether the property is in published state. | | +|**name** | **String** | The name of the property. | | +|**propertyId** | **String** | The unique identifier for the property. | | +|**image** | **String** | The file name of the image for the property. | | +|**address** | **String** | The address of the property. | | +|**lastUpdated** | **BigDecimal** | The timestamp of the last update to the property (Unix in ms). | | + + + diff --git a/docs/PropertiesPropertyIdAvailabilityGet200Response.md b/docs/PropertiesPropertyIdAvailabilityGet200Response.md new file mode 100644 index 0000000..d32312f --- /dev/null +++ b/docs/PropertiesPropertyIdAvailabilityGet200Response.md @@ -0,0 +1,13 @@ + + +# PropertiesPropertyIdAvailabilityGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**availabilityList** | [**List<PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner>**](PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.md) | An array of objects describing the available booking options. | | + + + diff --git a/docs/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.md b/docs/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.md new file mode 100644 index 0000000..34f17d3 --- /dev/null +++ b/docs/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.md @@ -0,0 +1,48 @@ + + +# PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**ratePlanList** | [**List<PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner>**](PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md) | A list of available rate plans. | | +|**name** | **String** | The name of the rate plan group. | | +|**mealPlanList** | [**List<MealPlanListEnum>**](#List<MealPlanListEnum>) | The available meal plans.<p>See also <a href=\"#mealplan-type-codes\">in the appendix</a>.</p> | | +|**roomTypeList** | **List<String>** | The rooms this availability is for. | | + + + +## Enum: List<MealPlanListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_0 | new BigDecimal("0") | +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_90001 | new BigDecimal("90001") | + + + diff --git a/docs/PropertiesPropertyIdGet200Response.md b/docs/PropertiesPropertyIdGet200Response.md new file mode 100644 index 0000000..e47d323 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200Response.md @@ -0,0 +1,14 @@ + + +# PropertiesPropertyIdGet200Response + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**property** | [**PropertiesPropertyIdGet200ResponseProperty**](PropertiesPropertyIdGet200ResponseProperty.md) | | | +|**productList** | [**List<PropertiesPropertyIdGet200ResponseProductListInner>**](PropertiesPropertyIdGet200ResponseProductListInner.md) | | | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponseProductListInner.md b/docs/PropertiesPropertyIdGet200ResponseProductListInner.md new file mode 100644 index 0000000..c06a1f6 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponseProductListInner.md @@ -0,0 +1,53 @@ + + +# PropertiesPropertyIdGet200ResponseProductListInner + +A list of available products for this property. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**propertyId** | **String** | The ID of the property. | | +|**name** | **String** | The name of the product. | | +|**mealPlanList** | [**List<MealPlanListEnum>**](#List<MealPlanListEnum>) | A list of meal type codes included in this product. | | +|**roomTypeList** | **List<String>** | An array of strings describing the room types included in this product. | | +|**isLOSPricing** | **Boolean** | Whether this product is length of stay pricing. | [optional] | +|**isOBPPricing** | **Boolean** | Whether this product is occupancy based pricing. | [optional] | +|**ratePlanList** | [**List<PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner>**](PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md) | The rate plans for this product. | | +|**policyInfo** | [**PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo**](PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.md) | | [optional] | + + + +## Enum: List<MealPlanListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_0 | new BigDecimal("0") | +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_90001 | new BigDecimal("90001") | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.md b/docs/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.md new file mode 100644 index 0000000..58c5a67 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.md @@ -0,0 +1,34 @@ + + +# PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo + +The policy info for this product. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**checkInTime** | **BigDecimal** | Check-in time (unix timestamp in ms). | | +|**checkOutTime** | **BigDecimal** | Check-out time (unix timestamp in ms). | | +|**totalGuestCount** | **BigDecimal** | The maximum number of guests allowed. | [optional] | +|**cancellationPolicyList** | [**List<PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner>**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md) | List of cancellation policies. | | +|**advanceBookingMin** | **BigDecimal** | The minimum number of days in advance a booking must be made | | +|**advanceBookingMax** | **BigDecimal** | The maximum number of days in advance a booking can be made | | +|**petsPolicy** | [**PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md) | | [optional] | +|**prepaymentPolicy** | [**PrepaymentPolicyEnum**](#PrepaymentPolicyEnum) | The type of the prepayment policy. | [optional] | +|**guaranteePolicy** | [**PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md) | | [optional] | +|**taxPolicyList** | [**List<PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner>**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md) | A list of taxes and their policies. | | +|**feePolicyList** | [**List<PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner>**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md) | A list of fees and their policies. | | +|**name** | **String** | The name of this policy. | [optional] | + + + +## Enum: PrepaymentPolicyEnum + +| Name | Value | +|---- | -----| +| CANCELLATION_FEE_BEGINS | "after_cancellation_fee_begins" | +| RESERVATION_IS_MADE | "after_reservation_is_made" | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md b/docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md new file mode 100644 index 0000000..5f89530 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md @@ -0,0 +1,16 @@ + + +# PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**active** | **Boolean** | Whether the rate plan is active. | | +|**name** | **String** | The name of the rate plan. | | +|**code** | **String** | The code identifying the rate plan. | | +|**pricingList** | [**List<PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner>**](PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.md) | | | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.md b/docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.md new file mode 100644 index 0000000..cd7d451 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.md @@ -0,0 +1,16 @@ + + +# PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**dateTime** | **BigDecimal** | The timestamp of the pricing information. | | +|**occupancy** | **BigDecimal** | The number of occupants for which the pricing applies. | | +|**priceList** | **Map<String, BigDecimal>** | A mapping of number of days of stay to prices. | | +|**currencyCode** | **String** | The currency code for the prices. | | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponseProperty.md b/docs/PropertiesPropertyIdGet200ResponseProperty.md new file mode 100644 index 0000000..9c97e77 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponseProperty.md @@ -0,0 +1,29 @@ + + +# PropertiesPropertyIdGet200ResponseProperty + +An object containing all available base data for the requested property. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | **String** | The properties unique identifier. | | +|**name** | **String** | The properties name. | | +|**recordCreated** | [**PropertiesPropertyIdGet200ResponsePropertyRecordCreated**](PropertiesPropertyIdGet200ResponsePropertyRecordCreated.md) | | | +|**recordModified** | [**PropertiesPropertyIdGet200ResponsePropertyRecordModified**](PropertiesPropertyIdGet200ResponsePropertyRecordModified.md) | | | +|**propertyInfo** | [**PropertiesPropertyIdGet200ResponsePropertyPropertyInfo**](PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.md) | | | +|**guestInfo** | [**PropertiesPropertyIdGet200ResponsePropertyGuestInfo**](PropertiesPropertyIdGet200ResponsePropertyGuestInfo.md) | | [optional] | +|**awardList** | [**List<PropertiesPropertyIdGet200ResponsePropertyAwardListInner>**](PropertiesPropertyIdGet200ResponsePropertyAwardListInner.md) | A list of the ratings available for this property. | | +|**contactList** | [**List<PropertiesPropertyIdGet200ResponsePropertyContactListInner>**](PropertiesPropertyIdGet200ResponsePropertyContactListInner.md) | A contact with a profile type and a list of addresses | | +|**facilityInfo** | [**PropertiesPropertyIdGet200ResponsePropertyFacilityInfo**](PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.md) | | [optional] | +|**mediaList** | [**List<PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner>**](PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md) | A list of media objects for the property. | | +|**geo** | [**Map<String, AvailablePropertiesInner1Geo>**](AvailablePropertiesInner1Geo.md) | An object containing language codes as keys and objects describing the properties geographical location as values. | [optional] | +|**published** | **Boolean** | Indicates whether the policy has been published or not. | | +|**policyList** | [**List<PropertiesPropertyIdGet200ResponsePropertyPolicyListInner>**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.md) | A list of policies associated with the property. | | +|**uri** | **String** | A unique identifier for the accommodation. | [optional] | +|**cancellationGracePeriod** | [**PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod**](PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.md) | | [optional] | +|**serviceList** | [**List<PropertiesPropertyIdGet200ResponsePropertyServiceListInner>**](PropertiesPropertyIdGet200ResponsePropertyServiceListInner.md) | A list of objects each describing an available service, its pricing and its availability. | | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.md new file mode 100644 index 0000000..c293d30 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.md @@ -0,0 +1,22 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyAwardListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**provider** | [**ProviderEnum**](#ProviderEnum) | The source of this rating. Currently only <code>star-rating</code> is possible. | | +|**rating** | **BigDecimal** | The value of this rating | | + + + +## Enum: ProviderEnum + +| Name | Value | +|---- | -----| +| STAR_RATING | "star-rating" | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.md b/docs/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.md new file mode 100644 index 0000000..b736d4c --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.md @@ -0,0 +1,15 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod + +An object describing the cancellation grace periods. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**hoursAfterBooking** | **BigDecimal** | The number of hours after booking that the cancellation grace period starts. | | +|**weeksBeforeCheckIn** | **BigDecimal** | The number of weeks before check-in that the cancellation grace period starts. | | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyContactListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyContactListInner.md new file mode 100644 index 0000000..1aa6231 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyContactListInner.md @@ -0,0 +1,31 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyContactListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**profileType** | [**ProfileTypeEnum**](#ProfileTypeEnum) | The type of profile this contact belongs to. | | +|**addressList** | [**List<PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner>**](PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.md) | A list of addresses for this contact | | + + + +## Enum: ProfileTypeEnum + +| Name | Value | +|---- | -----| +| GENERAL | "general" | +| CONTRACT | "contract" | +| RESERVATIONS | "reservations" | +| INVOICES | "invoices" | +| AVAILABILITY | "availability" | +| SITE_CONTENT | "site_content" | +| PARITY | "parity" | +| REQUESTS | "requests" | +| CENTRAL_RESERVATIONS | "central_reservations" | +| PHYSICALLOCATION | "physicallocation" | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.md new file mode 100644 index 0000000..54581ae --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.md @@ -0,0 +1,18 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**addressLine** | **String** | The first line of the address for this contact | | +|**propertyName** | **String** | The name of the property for this contact | [optional] | +|**cityName** | **String** | The city of this contact | | +|**postalCode** | **String** | The postal code of this contact | | +|**state** | **String** | The state/region of this contact | [optional] | +|**countryCode** | **String** | The country code of this contact | [optional] | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.md b/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.md new file mode 100644 index 0000000..454b4bf --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.md @@ -0,0 +1,14 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyFacilityInfo + +Further information regarding the facility. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**guestRoomList** | [**List<PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner>**](PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.md) | An array of objects representing a room in the property. | | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.md new file mode 100644 index 0000000..306babd --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.md @@ -0,0 +1,49 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner + +An object representing a room in the property. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**isActive** | **Boolean** | Indicates whether the room is active or not. | | +|**roomId** | **String** | The unique identifier for the room. | | +|**name** | **String** | The name of the room. | | +|**mediaList** | [**List<PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner>**](PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md) | A list of media objects for the room. | | +|**roomTypeCode** | [**RoomTypeCodeEnum**](#RoomTypeCodeEnum) | The unit and room type code.<p>See also <a href=\"#unitand-room-type-codes\">in the appendix</a>.</p> | | +|**isNonSmoking** | **Boolean** | Indicates whether the room is designated as non-smoking. | | +|**amenityList** | [**List<PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner>**](PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md) | A list of amenities provided in the room. | | +|**messageList** | [**List<PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner>**](PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md) | A list of messages associated with the room. | | +|**maxOccupancy** | **BigDecimal** | The maximum occupancy of the room. | | +|**maxAdultOccupancy** | **BigDecimal** | The maximum number of adults that can occupy the room. | | +|**maxChildOccupancy** | **BigDecimal** | The maximum number of children that can occupy the room. | | + + + +## Enum: RoomTypeCodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md new file mode 100644 index 0000000..8f5656c --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md @@ -0,0 +1,493 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | [**CodeEnum**](#CodeEnum) | The code indicating the room amenity type.<p>See also <a href=\"#unitand-room-amenity-type-codes\">in the appendix</a>.</p> | | +|**quantity** | **BigDecimal** | The quantity of this amenity type in this room. | | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_30 | new BigDecimal("30") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | +| NUMBER_34 | new BigDecimal("34") | +| NUMBER_35 | new BigDecimal("35") | +| NUMBER_36 | new BigDecimal("36") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_38 | new BigDecimal("38") | +| NUMBER_39 | new BigDecimal("39") | +| NUMBER_40 | new BigDecimal("40") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_44 | new BigDecimal("44") | +| NUMBER_45 | new BigDecimal("45") | +| NUMBER_46 | new BigDecimal("46") | +| NUMBER_47 | new BigDecimal("47") | +| NUMBER_48 | new BigDecimal("48") | +| NUMBER_49 | new BigDecimal("49") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_51 | new BigDecimal("51") | +| NUMBER_52 | new BigDecimal("52") | +| NUMBER_53 | new BigDecimal("53") | +| NUMBER_54 | new BigDecimal("54") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_56 | new BigDecimal("56") | +| NUMBER_57 | new BigDecimal("57") | +| NUMBER_58 | new BigDecimal("58") | +| NUMBER_59 | new BigDecimal("59") | +| NUMBER_60 | new BigDecimal("60") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_62 | new BigDecimal("62") | +| NUMBER_63 | new BigDecimal("63") | +| NUMBER_64 | new BigDecimal("64") | +| NUMBER_65 | new BigDecimal("65") | +| NUMBER_66 | new BigDecimal("66") | +| NUMBER_67 | new BigDecimal("67") | +| NUMBER_68 | new BigDecimal("68") | +| NUMBER_69 | new BigDecimal("69") | +| NUMBER_70 | new BigDecimal("70") | +| NUMBER_71 | new BigDecimal("71") | +| NUMBER_72 | new BigDecimal("72") | +| NUMBER_73 | new BigDecimal("73") | +| NUMBER_74 | new BigDecimal("74") | +| NUMBER_75 | new BigDecimal("75") | +| NUMBER_76 | new BigDecimal("76") | +| NUMBER_77 | new BigDecimal("77") | +| NUMBER_78 | new BigDecimal("78") | +| NUMBER_79 | new BigDecimal("79") | +| NUMBER_80 | new BigDecimal("80") | +| NUMBER_81 | new BigDecimal("81") | +| NUMBER_82 | new BigDecimal("82") | +| NUMBER_83 | new BigDecimal("83") | +| NUMBER_84 | new BigDecimal("84") | +| NUMBER_85 | new BigDecimal("85") | +| NUMBER_86 | new BigDecimal("86") | +| NUMBER_87 | new BigDecimal("87") | +| NUMBER_88 | new BigDecimal("88") | +| NUMBER_89 | new BigDecimal("89") | +| NUMBER_90 | new BigDecimal("90") | +| NUMBER_91 | new BigDecimal("91") | +| NUMBER_92 | new BigDecimal("92") | +| NUMBER_93 | new BigDecimal("93") | +| NUMBER_94 | new BigDecimal("94") | +| NUMBER_95 | new BigDecimal("95") | +| NUMBER_96 | new BigDecimal("96") | +| NUMBER_97 | new BigDecimal("97") | +| NUMBER_98 | new BigDecimal("98") | +| NUMBER_99 | new BigDecimal("99") | +| NUMBER_100 | new BigDecimal("100") | +| NUMBER_101 | new BigDecimal("101") | +| NUMBER_102 | new BigDecimal("102") | +| NUMBER_103 | new BigDecimal("103") | +| NUMBER_104 | new BigDecimal("104") | +| NUMBER_105 | new BigDecimal("105") | +| NUMBER_106 | new BigDecimal("106") | +| NUMBER_107 | new BigDecimal("107") | +| NUMBER_108 | new BigDecimal("108") | +| NUMBER_109 | new BigDecimal("109") | +| NUMBER_110 | new BigDecimal("110") | +| NUMBER_111 | new BigDecimal("111") | +| NUMBER_112 | new BigDecimal("112") | +| NUMBER_113 | new BigDecimal("113") | +| NUMBER_114 | new BigDecimal("114") | +| NUMBER_115 | new BigDecimal("115") | +| NUMBER_116 | new BigDecimal("116") | +| NUMBER_117 | new BigDecimal("117") | +| NUMBER_118 | new BigDecimal("118") | +| NUMBER_119 | new BigDecimal("119") | +| NUMBER_120 | new BigDecimal("120") | +| NUMBER_121 | new BigDecimal("121") | +| NUMBER_122 | new BigDecimal("122") | +| NUMBER_123 | new BigDecimal("123") | +| NUMBER_124 | new BigDecimal("124") | +| NUMBER_125 | new BigDecimal("125") | +| NUMBER_126 | new BigDecimal("126") | +| NUMBER_127 | new BigDecimal("127") | +| NUMBER_128 | new BigDecimal("128") | +| NUMBER_129 | new BigDecimal("129") | +| NUMBER_130 | new BigDecimal("130") | +| NUMBER_131 | new BigDecimal("131") | +| NUMBER_132 | new BigDecimal("132") | +| NUMBER_133 | new BigDecimal("133") | +| NUMBER_134 | new BigDecimal("134") | +| NUMBER_135 | new BigDecimal("135") | +| NUMBER_136 | new BigDecimal("136") | +| NUMBER_137 | new BigDecimal("137") | +| NUMBER_138 | new BigDecimal("138") | +| NUMBER_139 | new BigDecimal("139") | +| NUMBER_140 | new BigDecimal("140") | +| NUMBER_141 | new BigDecimal("141") | +| NUMBER_142 | new BigDecimal("142") | +| NUMBER_143 | new BigDecimal("143") | +| NUMBER_144 | new BigDecimal("144") | +| NUMBER_145 | new BigDecimal("145") | +| NUMBER_146 | new BigDecimal("146") | +| NUMBER_147 | new BigDecimal("147") | +| NUMBER_148 | new BigDecimal("148") | +| NUMBER_149 | new BigDecimal("149") | +| NUMBER_150 | new BigDecimal("150") | +| NUMBER_151 | new BigDecimal("151") | +| NUMBER_152 | new BigDecimal("152") | +| NUMBER_153 | new BigDecimal("153") | +| NUMBER_154 | new BigDecimal("154") | +| NUMBER_155 | new BigDecimal("155") | +| NUMBER_156 | new BigDecimal("156") | +| NUMBER_157 | new BigDecimal("157") | +| NUMBER_158 | new BigDecimal("158") | +| NUMBER_159 | new BigDecimal("159") | +| NUMBER_160 | new BigDecimal("160") | +| NUMBER_161 | new BigDecimal("161") | +| NUMBER_162 | new BigDecimal("162") | +| NUMBER_163 | new BigDecimal("163") | +| NUMBER_164 | new BigDecimal("164") | +| NUMBER_165 | new BigDecimal("165") | +| NUMBER_166 | new BigDecimal("166") | +| NUMBER_167 | new BigDecimal("167") | +| NUMBER_168 | new BigDecimal("168") | +| NUMBER_169 | new BigDecimal("169") | +| NUMBER_170 | new BigDecimal("170") | +| NUMBER_171 | new BigDecimal("171") | +| NUMBER_172 | new BigDecimal("172") | +| NUMBER_173 | new BigDecimal("173") | +| NUMBER_174 | new BigDecimal("174") | +| NUMBER_175 | new BigDecimal("175") | +| NUMBER_176 | new BigDecimal("176") | +| NUMBER_177 | new BigDecimal("177") | +| NUMBER_178 | new BigDecimal("178") | +| NUMBER_179 | new BigDecimal("179") | +| NUMBER_180 | new BigDecimal("180") | +| NUMBER_181 | new BigDecimal("181") | +| NUMBER_182 | new BigDecimal("182") | +| NUMBER_183 | new BigDecimal("183") | +| NUMBER_184 | new BigDecimal("184") | +| NUMBER_185 | new BigDecimal("185") | +| NUMBER_186 | new BigDecimal("186") | +| NUMBER_187 | new BigDecimal("187") | +| NUMBER_188 | new BigDecimal("188") | +| NUMBER_189 | new BigDecimal("189") | +| NUMBER_190 | new BigDecimal("190") | +| NUMBER_191 | new BigDecimal("191") | +| NUMBER_192 | new BigDecimal("192") | +| NUMBER_193 | new BigDecimal("193") | +| NUMBER_194 | new BigDecimal("194") | +| NUMBER_195 | new BigDecimal("195") | +| NUMBER_196 | new BigDecimal("196") | +| NUMBER_197 | new BigDecimal("197") | +| NUMBER_198 | new BigDecimal("198") | +| NUMBER_199 | new BigDecimal("199") | +| NUMBER_200 | new BigDecimal("200") | +| NUMBER_201 | new BigDecimal("201") | +| NUMBER_202 | new BigDecimal("202") | +| NUMBER_203 | new BigDecimal("203") | +| NUMBER_204 | new BigDecimal("204") | +| NUMBER_205 | new BigDecimal("205") | +| NUMBER_206 | new BigDecimal("206") | +| NUMBER_207 | new BigDecimal("207") | +| NUMBER_208 | new BigDecimal("208") | +| NUMBER_209 | new BigDecimal("209") | +| NUMBER_210 | new BigDecimal("210") | +| NUMBER_211 | new BigDecimal("211") | +| NUMBER_212 | new BigDecimal("212") | +| NUMBER_213 | new BigDecimal("213") | +| NUMBER_214 | new BigDecimal("214") | +| NUMBER_215 | new BigDecimal("215") | +| NUMBER_216 | new BigDecimal("216") | +| NUMBER_217 | new BigDecimal("217") | +| NUMBER_218 | new BigDecimal("218") | +| NUMBER_219 | new BigDecimal("219") | +| NUMBER_220 | new BigDecimal("220") | +| NUMBER_221 | new BigDecimal("221") | +| NUMBER_222 | new BigDecimal("222") | +| NUMBER_223 | new BigDecimal("223") | +| NUMBER_224 | new BigDecimal("224") | +| NUMBER_225 | new BigDecimal("225") | +| NUMBER_226 | new BigDecimal("226") | +| NUMBER_227 | new BigDecimal("227") | +| NUMBER_228 | new BigDecimal("228") | +| NUMBER_229 | new BigDecimal("229") | +| NUMBER_230 | new BigDecimal("230") | +| NUMBER_231 | new BigDecimal("231") | +| NUMBER_232 | new BigDecimal("232") | +| NUMBER_233 | new BigDecimal("233") | +| NUMBER_234 | new BigDecimal("234") | +| NUMBER_235 | new BigDecimal("235") | +| NUMBER_236 | new BigDecimal("236") | +| NUMBER_237 | new BigDecimal("237") | +| NUMBER_238 | new BigDecimal("238") | +| NUMBER_239 | new BigDecimal("239") | +| NUMBER_240 | new BigDecimal("240") | +| NUMBER_241 | new BigDecimal("241") | +| NUMBER_242 | new BigDecimal("242") | +| NUMBER_243 | new BigDecimal("243") | +| NUMBER_244 | new BigDecimal("244") | +| NUMBER_245 | new BigDecimal("245") | +| NUMBER_246 | new BigDecimal("246") | +| NUMBER_247 | new BigDecimal("247") | +| NUMBER_248 | new BigDecimal("248") | +| NUMBER_249 | new BigDecimal("249") | +| NUMBER_250 | new BigDecimal("250") | +| NUMBER_251 | new BigDecimal("251") | +| NUMBER_252 | new BigDecimal("252") | +| NUMBER_253 | new BigDecimal("253") | +| NUMBER_254 | new BigDecimal("254") | +| NUMBER_255 | new BigDecimal("255") | +| NUMBER_256 | new BigDecimal("256") | +| NUMBER_257 | new BigDecimal("257") | +| NUMBER_258 | new BigDecimal("258") | +| NUMBER_259 | new BigDecimal("259") | +| NUMBER_260 | new BigDecimal("260") | +| NUMBER_261 | new BigDecimal("261") | +| NUMBER_262 | new BigDecimal("262") | +| NUMBER_263 | new BigDecimal("263") | +| NUMBER_264 | new BigDecimal("264") | +| NUMBER_265 | new BigDecimal("265") | +| NUMBER_266 | new BigDecimal("266") | +| NUMBER_267 | new BigDecimal("267") | +| NUMBER_268 | new BigDecimal("268") | +| NUMBER_269 | new BigDecimal("269") | +| NUMBER_270 | new BigDecimal("270") | +| NUMBER_271 | new BigDecimal("271") | +| NUMBER_272 | new BigDecimal("272") | +| NUMBER_273 | new BigDecimal("273") | +| NUMBER_274 | new BigDecimal("274") | +| NUMBER_275 | new BigDecimal("275") | +| NUMBER_276 | new BigDecimal("276") | +| NUMBER_277 | new BigDecimal("277") | +| NUMBER_278 | new BigDecimal("278") | +| NUMBER_279 | new BigDecimal("279") | +| NUMBER_280 | new BigDecimal("280") | +| NUMBER_281 | new BigDecimal("281") | +| NUMBER_282 | new BigDecimal("282") | +| NUMBER_283 | new BigDecimal("283") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | +| NUMBER_5009 | new BigDecimal("5009") | +| NUMBER_5010 | new BigDecimal("5010") | +| NUMBER_5011 | new BigDecimal("5011") | +| NUMBER_5012 | new BigDecimal("5012") | +| NUMBER_5013 | new BigDecimal("5013") | +| NUMBER_5014 | new BigDecimal("5014") | +| NUMBER_5015 | new BigDecimal("5015") | +| NUMBER_5016 | new BigDecimal("5016") | +| NUMBER_5017 | new BigDecimal("5017") | +| NUMBER_5018 | new BigDecimal("5018") | +| NUMBER_5019 | new BigDecimal("5019") | +| NUMBER_5020 | new BigDecimal("5020") | +| NUMBER_5021 | new BigDecimal("5021") | +| NUMBER_5022 | new BigDecimal("5022") | +| NUMBER_5023 | new BigDecimal("5023") | +| NUMBER_5024 | new BigDecimal("5024") | +| NUMBER_5025 | new BigDecimal("5025") | +| NUMBER_5026 | new BigDecimal("5026") | +| NUMBER_5027 | new BigDecimal("5027") | +| NUMBER_5028 | new BigDecimal("5028") | +| NUMBER_5029 | new BigDecimal("5029") | +| NUMBER_5030 | new BigDecimal("5030") | +| NUMBER_5031 | new BigDecimal("5031") | +| NUMBER_5032 | new BigDecimal("5032") | +| NUMBER_5033 | new BigDecimal("5033") | +| NUMBER_5034 | new BigDecimal("5034") | +| NUMBER_5035 | new BigDecimal("5035") | +| NUMBER_5036 | new BigDecimal("5036") | +| NUMBER_5037 | new BigDecimal("5037") | +| NUMBER_5038 | new BigDecimal("5038") | +| NUMBER_5039 | new BigDecimal("5039") | +| NUMBER_5040 | new BigDecimal("5040") | +| NUMBER_5041 | new BigDecimal("5041") | +| NUMBER_5042 | new BigDecimal("5042") | +| NUMBER_5043 | new BigDecimal("5043") | +| NUMBER_5044 | new BigDecimal("5044") | +| NUMBER_5045 | new BigDecimal("5045") | +| NUMBER_5046 | new BigDecimal("5046") | +| NUMBER_5068 | new BigDecimal("5068") | +| NUMBER_5069 | new BigDecimal("5069") | +| NUMBER_5070 | new BigDecimal("5070") | +| NUMBER_5071 | new BigDecimal("5071") | +| NUMBER_5072 | new BigDecimal("5072") | +| NUMBER_5073 | new BigDecimal("5073") | +| NUMBER_5074 | new BigDecimal("5074") | +| NUMBER_5075 | new BigDecimal("5075") | +| NUMBER_5076 | new BigDecimal("5076") | +| NUMBER_5077 | new BigDecimal("5077") | +| NUMBER_5079 | new BigDecimal("5079") | +| NUMBER_5080 | new BigDecimal("5080") | +| NUMBER_5081 | new BigDecimal("5081") | +| NUMBER_5082 | new BigDecimal("5082") | +| NUMBER_5083 | new BigDecimal("5083") | +| NUMBER_5084 | new BigDecimal("5084") | +| NUMBER_5085 | new BigDecimal("5085") | +| NUMBER_5086 | new BigDecimal("5086") | +| NUMBER_5087 | new BigDecimal("5087") | +| NUMBER_5088 | new BigDecimal("5088") | +| NUMBER_5089 | new BigDecimal("5089") | +| NUMBER_5090 | new BigDecimal("5090") | +| NUMBER_5091 | new BigDecimal("5091") | +| NUMBER_5092 | new BigDecimal("5092") | +| NUMBER_5093 | new BigDecimal("5093") | +| NUMBER_5094 | new BigDecimal("5094") | +| NUMBER_5095 | new BigDecimal("5095") | +| NUMBER_5096 | new BigDecimal("5096") | +| NUMBER_5097 | new BigDecimal("5097") | +| NUMBER_5098 | new BigDecimal("5098") | +| NUMBER_5099 | new BigDecimal("5099") | +| NUMBER_5100 | new BigDecimal("5100") | +| NUMBER_5101 | new BigDecimal("5101") | +| NUMBER_5102 | new BigDecimal("5102") | +| NUMBER_5103 | new BigDecimal("5103") | +| NUMBER_5104 | new BigDecimal("5104") | +| NUMBER_5105 | new BigDecimal("5105") | +| NUMBER_5106 | new BigDecimal("5106") | +| NUMBER_5107 | new BigDecimal("5107") | +| NUMBER_5108 | new BigDecimal("5108") | +| NUMBER_5109 | new BigDecimal("5109") | +| NUMBER_5110 | new BigDecimal("5110") | +| NUMBER_5111 | new BigDecimal("5111") | +| NUMBER_5112 | new BigDecimal("5112") | +| NUMBER_5113 | new BigDecimal("5113") | +| NUMBER_5114 | new BigDecimal("5114") | +| NUMBER_5115 | new BigDecimal("5115") | +| NUMBER_5116 | new BigDecimal("5116") | +| NUMBER_5117 | new BigDecimal("5117") | +| NUMBER_5118 | new BigDecimal("5118") | +| NUMBER_5119 | new BigDecimal("5119") | +| NUMBER_5120 | new BigDecimal("5120") | +| NUMBER_5121 | new BigDecimal("5121") | +| NUMBER_5122 | new BigDecimal("5122") | +| NUMBER_5123 | new BigDecimal("5123") | +| NUMBER_5124 | new BigDecimal("5124") | +| NUMBER_5125 | new BigDecimal("5125") | +| NUMBER_5126 | new BigDecimal("5126") | +| NUMBER_5127 | new BigDecimal("5127") | +| NUMBER_5129 | new BigDecimal("5129") | +| NUMBER_5130 | new BigDecimal("5130") | +| NUMBER_5131 | new BigDecimal("5131") | +| NUMBER_5132 | new BigDecimal("5132") | +| NUMBER_5133 | new BigDecimal("5133") | +| NUMBER_5134 | new BigDecimal("5134") | +| NUMBER_5135 | new BigDecimal("5135") | +| NUMBER_5136 | new BigDecimal("5136") | +| NUMBER_5137 | new BigDecimal("5137") | +| NUMBER_5138 | new BigDecimal("5138") | +| NUMBER_5139 | new BigDecimal("5139") | +| NUMBER_5140 | new BigDecimal("5140") | +| NUMBER_5141 | new BigDecimal("5141") | +| NUMBER_5142 | new BigDecimal("5142") | +| NUMBER_5143 | new BigDecimal("5143") | +| NUMBER_5144 | new BigDecimal("5144") | +| NUMBER_5145 | new BigDecimal("5145") | +| NUMBER_5146 | new BigDecimal("5146") | +| NUMBER_5147 | new BigDecimal("5147") | +| NUMBER_5148 | new BigDecimal("5148") | +| NUMBER_5149 | new BigDecimal("5149") | +| NUMBER_5150 | new BigDecimal("5150") | +| NUMBER_5151 | new BigDecimal("5151") | +| NUMBER_5152 | new BigDecimal("5152") | +| NUMBER_5153 | new BigDecimal("5153") | +| NUMBER_5154 | new BigDecimal("5154") | +| NUMBER_5157 | new BigDecimal("5157") | +| NUMBER_5158 | new BigDecimal("5158") | +| NUMBER_5159 | new BigDecimal("5159") | +| NUMBER_5160 | new BigDecimal("5160") | +| NUMBER_5161 | new BigDecimal("5161") | +| NUMBER_5162 | new BigDecimal("5162") | +| NUMBER_5163 | new BigDecimal("5163") | +| NUMBER_5164 | new BigDecimal("5164") | +| NUMBER_5165 | new BigDecimal("5165") | +| NUMBER_5166 | new BigDecimal("5166") | +| NUMBER_5167 | new BigDecimal("5167") | +| NUMBER_5168 | new BigDecimal("5168") | +| NUMBER_5169 | new BigDecimal("5169") | +| NUMBER_5170 | new BigDecimal("5170") | +| NUMBER_5171 | new BigDecimal("5171") | +| NUMBER_5172 | new BigDecimal("5172") | +| NUMBER_5173 | new BigDecimal("5173") | +| NUMBER_5174 | new BigDecimal("5174") | +| NUMBER_5175 | new BigDecimal("5175") | +| NUMBER_5176 | new BigDecimal("5176") | +| NUMBER_5177 | new BigDecimal("5177") | +| NUMBER_5178 | new BigDecimal("5178") | +| NUMBER_5179 | new BigDecimal("5179") | +| NUMBER_5180 | new BigDecimal("5180") | +| NUMBER_5181 | new BigDecimal("5181") | +| NUMBER_5182 | new BigDecimal("5182") | +| NUMBER_5184 | new BigDecimal("5184") | +| NUMBER_5185 | new BigDecimal("5185") | +| NUMBER_5186 | new BigDecimal("5186") | +| NUMBER_5187 | new BigDecimal("5187") | +| NUMBER_5188 | new BigDecimal("5188") | +| NUMBER_5189 | new BigDecimal("5189") | +| NUMBER_5190 | new BigDecimal("5190") | +| NUMBER_5191 | new BigDecimal("5191") | +| NUMBER_5196 | new BigDecimal("5196") | +| NUMBER_5198 | new BigDecimal("5198") | +| NUMBER_5199 | new BigDecimal("5199") | +| NUMBER_5200 | new BigDecimal("5200") | +| NUMBER_5201 | new BigDecimal("5201") | +| NUMBER_5202 | new BigDecimal("5202") | +| NUMBER_5203 | new BigDecimal("5203") | +| NUMBER_5204 | new BigDecimal("5204") | +| NUMBER_5205 | new BigDecimal("5205") | +| NUMBER_5206 | new BigDecimal("5206") | +| NUMBER_5207 | new BigDecimal("5207") | +| NUMBER_5211 | new BigDecimal("5211") | +| NUMBER_5212 | new BigDecimal("5212") | +| NUMBER_90001 | new BigDecimal("90001") | +| NUMBER_90002 | new BigDecimal("90002") | +| NUMBER_90003 | new BigDecimal("90003") | +| NUMBER_90004 | new BigDecimal("90004") | +| NUMBER_90005 | new BigDecimal("90005") | +| NUMBER_90006 | new BigDecimal("90006") | +| NUMBER_90007 | new BigDecimal("90007") | +| NUMBER_90008 | new BigDecimal("90008") | +| NUMBER_90009 | new BigDecimal("90009") | +| NUMBER_90010 | new BigDecimal("90010") | +| NUMBER_90011 | new BigDecimal("90011") | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md new file mode 100644 index 0000000..910042f --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md @@ -0,0 +1,1173 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**isMainImage** | **Boolean** | Whether the media is the main image for the property. | | +|**url** | **String** | The URL for the media. | | +|**sortOrder** | **BigDecimal** | The sort order for the media. | | +|**tagList** | [**List<TagListEnum>**](#List<TagListEnum>) | A list of tag codes for the media.<p>See also <a href=\"#imagetype-codes\">in the appendix</a>.</p> | | +|**moderationLabelList** | **List<String>** | A list of detection labels for moderated content (e.g. containing alcoholic beverages) for the media from an AI based detection engine. | | +|**detectionLabelList** | **List<String>** | A list of detection labels for the media from an AI based detection engine. | [optional] | +|**propertyAmenityList** | [**List<PropertyAmenityListEnum>**](#List<PropertyAmenityListEnum>) | A list of property amenities available at the property that are visible in this media element. | | +|**roomAmenityList** | [**List<RoomAmenityListEnum>**](#List<RoomAmenityListEnum>) | A list of unit and room amenities available at the property (respectively unit type if applicable) that are visible in this media element. | [optional] | + + + +## Enum: List<TagListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_70 | new BigDecimal("70") | +| NUMBER_74 | new BigDecimal("74") | +| NUMBER_81 | new BigDecimal("81") | +| NUMBER_82 | new BigDecimal("82") | +| NUMBER_87 | new BigDecimal("87") | +| NUMBER_89 | new BigDecimal("89") | +| NUMBER_90 | new BigDecimal("90") | +| NUMBER_94 | new BigDecimal("94") | +| NUMBER_95 | new BigDecimal("95") | +| NUMBER_96 | new BigDecimal("96") | +| NUMBER_97 | new BigDecimal("97") | +| NUMBER_100 | new BigDecimal("100") | +| NUMBER_102 | new BigDecimal("102") | +| NUMBER_103 | new BigDecimal("103") | +| NUMBER_104 | new BigDecimal("104") | +| NUMBER_106 | new BigDecimal("106") | +| NUMBER_107 | new BigDecimal("107") | +| NUMBER_108 | new BigDecimal("108") | +| NUMBER_112 | new BigDecimal("112") | +| NUMBER_113 | new BigDecimal("113") | +| NUMBER_114 | new BigDecimal("114") | +| NUMBER_115 | new BigDecimal("115") | +| NUMBER_116 | new BigDecimal("116") | +| NUMBER_124 | new BigDecimal("124") | +| NUMBER_125 | new BigDecimal("125") | +| NUMBER_128 | new BigDecimal("128") | +| NUMBER_131 | new BigDecimal("131") | +| NUMBER_133 | new BigDecimal("133") | +| NUMBER_134 | new BigDecimal("134") | +| NUMBER_137 | new BigDecimal("137") | +| NUMBER_141 | new BigDecimal("141") | +| NUMBER_143 | new BigDecimal("143") | +| NUMBER_153 | new BigDecimal("153") | +| NUMBER_154 | new BigDecimal("154") | +| NUMBER_155 | new BigDecimal("155") | +| NUMBER_156 | new BigDecimal("156") | +| NUMBER_157 | new BigDecimal("157") | +| NUMBER_158 | new BigDecimal("158") | +| NUMBER_159 | new BigDecimal("159") | +| NUMBER_160 | new BigDecimal("160") | +| NUMBER_161 | new BigDecimal("161") | +| NUMBER_164 | new BigDecimal("164") | +| NUMBER_165 | new BigDecimal("165") | +| NUMBER_167 | new BigDecimal("167") | +| NUMBER_172 | new BigDecimal("172") | +| NUMBER_173 | new BigDecimal("173") | +| NUMBER_177 | new BigDecimal("177") | +| NUMBER_178 | new BigDecimal("178") | +| NUMBER_179 | new BigDecimal("179") | +| NUMBER_182 | new BigDecimal("182") | +| NUMBER_183 | new BigDecimal("183") | +| NUMBER_184 | new BigDecimal("184") | +| NUMBER_185 | new BigDecimal("185") | +| NUMBER_186 | new BigDecimal("186") | +| NUMBER_187 | new BigDecimal("187") | +| NUMBER_188 | new BigDecimal("188") | +| NUMBER_189 | new BigDecimal("189") | +| NUMBER_190 | new BigDecimal("190") | +| NUMBER_191 | new BigDecimal("191") | +| NUMBER_192 | new BigDecimal("192") | +| NUMBER_193 | new BigDecimal("193") | +| NUMBER_194 | new BigDecimal("194") | +| NUMBER_197 | new BigDecimal("197") | +| NUMBER_198 | new BigDecimal("198") | +| NUMBER_199 | new BigDecimal("199") | +| NUMBER_204 | new BigDecimal("204") | +| NUMBER_205 | new BigDecimal("205") | +| NUMBER_240 | new BigDecimal("240") | +| NUMBER_241 | new BigDecimal("241") | +| NUMBER_242 | new BigDecimal("242") | +| NUMBER_245 | new BigDecimal("245") | +| NUMBER_246 | new BigDecimal("246") | +| NUMBER_247 | new BigDecimal("247") | +| NUMBER_248 | new BigDecimal("248") | +| NUMBER_249 | new BigDecimal("249") | +| NUMBER_250 | new BigDecimal("250") | +| NUMBER_251 | new BigDecimal("251") | +| NUMBER_252 | new BigDecimal("252") | +| NUMBER_253 | new BigDecimal("253") | +| NUMBER_254 | new BigDecimal("254") | +| NUMBER_255 | new BigDecimal("255") | +| NUMBER_256 | new BigDecimal("256") | +| NUMBER_257 | new BigDecimal("257") | +| NUMBER_258 | new BigDecimal("258") | +| NUMBER_259 | new BigDecimal("259") | +| NUMBER_260 | new BigDecimal("260") | +| NUMBER_261 | new BigDecimal("261") | +| NUMBER_262 | new BigDecimal("262") | +| NUMBER_263 | new BigDecimal("263") | +| NUMBER_264 | new BigDecimal("264") | +| NUMBER_265 | new BigDecimal("265") | +| NUMBER_266 | new BigDecimal("266") | +| NUMBER_267 | new BigDecimal("267") | +| NUMBER_268 | new BigDecimal("268") | +| NUMBER_269 | new BigDecimal("269") | +| NUMBER_270 | new BigDecimal("270") | +| NUMBER_271 | new BigDecimal("271") | +| NUMBER_272 | new BigDecimal("272") | +| NUMBER_273 | new BigDecimal("273") | +| NUMBER_276 | new BigDecimal("276") | +| NUMBER_277 | new BigDecimal("277") | +| NUMBER_278 | new BigDecimal("278") | +| NUMBER_279 | new BigDecimal("279") | +| NUMBER_280 | new BigDecimal("280") | +| NUMBER_281 | new BigDecimal("281") | +| NUMBER_282 | new BigDecimal("282") | +| NUMBER_283 | new BigDecimal("283") | +| NUMBER_284 | new BigDecimal("284") | +| NUMBER_285 | new BigDecimal("285") | +| NUMBER_286 | new BigDecimal("286") | +| NUMBER_287 | new BigDecimal("287") | +| NUMBER_289 | new BigDecimal("289") | +| NUMBER_290 | new BigDecimal("290") | +| NUMBER_291 | new BigDecimal("291") | + + + +## Enum: List<PropertyAmenityListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_30 | new BigDecimal("30") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | +| NUMBER_34 | new BigDecimal("34") | +| NUMBER_35 | new BigDecimal("35") | +| NUMBER_36 | new BigDecimal("36") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_38 | new BigDecimal("38") | +| NUMBER_39 | new BigDecimal("39") | +| NUMBER_40 | new BigDecimal("40") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_44 | new BigDecimal("44") | +| NUMBER_45 | new BigDecimal("45") | +| NUMBER_46 | new BigDecimal("46") | +| NUMBER_47 | new BigDecimal("47") | +| NUMBER_48 | new BigDecimal("48") | +| NUMBER_49 | new BigDecimal("49") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_51 | new BigDecimal("51") | +| NUMBER_52 | new BigDecimal("52") | +| NUMBER_53 | new BigDecimal("53") | +| NUMBER_54 | new BigDecimal("54") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_56 | new BigDecimal("56") | +| NUMBER_57 | new BigDecimal("57") | +| NUMBER_58 | new BigDecimal("58") | +| NUMBER_59 | new BigDecimal("59") | +| NUMBER_60 | new BigDecimal("60") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_62 | new BigDecimal("62") | +| NUMBER_63 | new BigDecimal("63") | +| NUMBER_64 | new BigDecimal("64") | +| NUMBER_65 | new BigDecimal("65") | +| NUMBER_66 | new BigDecimal("66") | +| NUMBER_67 | new BigDecimal("67") | +| NUMBER_68 | new BigDecimal("68") | +| NUMBER_69 | new BigDecimal("69") | +| NUMBER_70 | new BigDecimal("70") | +| NUMBER_71 | new BigDecimal("71") | +| NUMBER_72 | new BigDecimal("72") | +| NUMBER_73 | new BigDecimal("73") | +| NUMBER_74 | new BigDecimal("74") | +| NUMBER_75 | new BigDecimal("75") | +| NUMBER_76 | new BigDecimal("76") | +| NUMBER_77 | new BigDecimal("77") | +| NUMBER_78 | new BigDecimal("78") | +| NUMBER_79 | new BigDecimal("79") | +| NUMBER_80 | new BigDecimal("80") | +| NUMBER_81 | new BigDecimal("81") | +| NUMBER_82 | new BigDecimal("82") | +| NUMBER_83 | new BigDecimal("83") | +| NUMBER_84 | new BigDecimal("84") | +| NUMBER_85 | new BigDecimal("85") | +| NUMBER_86 | new BigDecimal("86") | +| NUMBER_87 | new BigDecimal("87") | +| NUMBER_88 | new BigDecimal("88") | +| NUMBER_89 | new BigDecimal("89") | +| NUMBER_90 | new BigDecimal("90") | +| NUMBER_91 | new BigDecimal("91") | +| NUMBER_92 | new BigDecimal("92") | +| NUMBER_93 | new BigDecimal("93") | +| NUMBER_94 | new BigDecimal("94") | +| NUMBER_95 | new BigDecimal("95") | +| NUMBER_96 | new BigDecimal("96") | +| NUMBER_97 | new BigDecimal("97") | +| NUMBER_98 | new BigDecimal("98") | +| NUMBER_99 | new BigDecimal("99") | +| NUMBER_100 | new BigDecimal("100") | +| NUMBER_101 | new BigDecimal("101") | +| NUMBER_102 | new BigDecimal("102") | +| NUMBER_103 | new BigDecimal("103") | +| NUMBER_104 | new BigDecimal("104") | +| NUMBER_105 | new BigDecimal("105") | +| NUMBER_106 | new BigDecimal("106") | +| NUMBER_107 | new BigDecimal("107") | +| NUMBER_108 | new BigDecimal("108") | +| NUMBER_109 | new BigDecimal("109") | +| NUMBER_110 | new BigDecimal("110") | +| NUMBER_111 | new BigDecimal("111") | +| NUMBER_112 | new BigDecimal("112") | +| NUMBER_113 | new BigDecimal("113") | +| NUMBER_114 | new BigDecimal("114") | +| NUMBER_115 | new BigDecimal("115") | +| NUMBER_116 | new BigDecimal("116") | +| NUMBER_117 | new BigDecimal("117") | +| NUMBER_118 | new BigDecimal("118") | +| NUMBER_119 | new BigDecimal("119") | +| NUMBER_120 | new BigDecimal("120") | +| NUMBER_121 | new BigDecimal("121") | +| NUMBER_122 | new BigDecimal("122") | +| NUMBER_123 | new BigDecimal("123") | +| NUMBER_124 | new BigDecimal("124") | +| NUMBER_125 | new BigDecimal("125") | +| NUMBER_126 | new BigDecimal("126") | +| NUMBER_127 | new BigDecimal("127") | +| NUMBER_128 | new BigDecimal("128") | +| NUMBER_129 | new BigDecimal("129") | +| NUMBER_130 | new BigDecimal("130") | +| NUMBER_131 | new BigDecimal("131") | +| NUMBER_132 | new BigDecimal("132") | +| NUMBER_133 | new BigDecimal("133") | +| NUMBER_134 | new BigDecimal("134") | +| NUMBER_135 | new BigDecimal("135") | +| NUMBER_136 | new BigDecimal("136") | +| NUMBER_137 | new BigDecimal("137") | +| NUMBER_138 | new BigDecimal("138") | +| NUMBER_139 | new BigDecimal("139") | +| NUMBER_140 | new BigDecimal("140") | +| NUMBER_141 | new BigDecimal("141") | +| NUMBER_142 | new BigDecimal("142") | +| NUMBER_143 | new BigDecimal("143") | +| NUMBER_144 | new BigDecimal("144") | +| NUMBER_145 | new BigDecimal("145") | +| NUMBER_146 | new BigDecimal("146") | +| NUMBER_147 | new BigDecimal("147") | +| NUMBER_148 | new BigDecimal("148") | +| NUMBER_149 | new BigDecimal("149") | +| NUMBER_150 | new BigDecimal("150") | +| NUMBER_151 | new BigDecimal("151") | +| NUMBER_152 | new BigDecimal("152") | +| NUMBER_153 | new BigDecimal("153") | +| NUMBER_154 | new BigDecimal("154") | +| NUMBER_155 | new BigDecimal("155") | +| NUMBER_156 | new BigDecimal("156") | +| NUMBER_157 | new BigDecimal("157") | +| NUMBER_158 | new BigDecimal("158") | +| NUMBER_159 | new BigDecimal("159") | +| NUMBER_160 | new BigDecimal("160") | +| NUMBER_161 | new BigDecimal("161") | +| NUMBER_162 | new BigDecimal("162") | +| NUMBER_163 | new BigDecimal("163") | +| NUMBER_164 | new BigDecimal("164") | +| NUMBER_165 | new BigDecimal("165") | +| NUMBER_166 | new BigDecimal("166") | +| NUMBER_167 | new BigDecimal("167") | +| NUMBER_168 | new BigDecimal("168") | +| NUMBER_169 | new BigDecimal("169") | +| NUMBER_170 | new BigDecimal("170") | +| NUMBER_171 | new BigDecimal("171") | +| NUMBER_172 | new BigDecimal("172") | +| NUMBER_173 | new BigDecimal("173") | +| NUMBER_174 | new BigDecimal("174") | +| NUMBER_175 | new BigDecimal("175") | +| NUMBER_176 | new BigDecimal("176") | +| NUMBER_177 | new BigDecimal("177") | +| NUMBER_178 | new BigDecimal("178") | +| NUMBER_179 | new BigDecimal("179") | +| NUMBER_180 | new BigDecimal("180") | +| NUMBER_181 | new BigDecimal("181") | +| NUMBER_182 | new BigDecimal("182") | +| NUMBER_183 | new BigDecimal("183") | +| NUMBER_184 | new BigDecimal("184") | +| NUMBER_185 | new BigDecimal("185") | +| NUMBER_186 | new BigDecimal("186") | +| NUMBER_187 | new BigDecimal("187") | +| NUMBER_188 | new BigDecimal("188") | +| NUMBER_189 | new BigDecimal("189") | +| NUMBER_190 | new BigDecimal("190") | +| NUMBER_191 | new BigDecimal("191") | +| NUMBER_192 | new BigDecimal("192") | +| NUMBER_193 | new BigDecimal("193") | +| NUMBER_194 | new BigDecimal("194") | +| NUMBER_195 | new BigDecimal("195") | +| NUMBER_196 | new BigDecimal("196") | +| NUMBER_197 | new BigDecimal("197") | +| NUMBER_198 | new BigDecimal("198") | +| NUMBER_199 | new BigDecimal("199") | +| NUMBER_200 | new BigDecimal("200") | +| NUMBER_201 | new BigDecimal("201") | +| NUMBER_202 | new BigDecimal("202") | +| NUMBER_203 | new BigDecimal("203") | +| NUMBER_204 | new BigDecimal("204") | +| NUMBER_205 | new BigDecimal("205") | +| NUMBER_206 | new BigDecimal("206") | +| NUMBER_207 | new BigDecimal("207") | +| NUMBER_208 | new BigDecimal("208") | +| NUMBER_209 | new BigDecimal("209") | +| NUMBER_210 | new BigDecimal("210") | +| NUMBER_211 | new BigDecimal("211") | +| NUMBER_212 | new BigDecimal("212") | +| NUMBER_213 | new BigDecimal("213") | +| NUMBER_214 | new BigDecimal("214") | +| NUMBER_215 | new BigDecimal("215") | +| NUMBER_216 | new BigDecimal("216") | +| NUMBER_217 | new BigDecimal("217") | +| NUMBER_218 | new BigDecimal("218") | +| NUMBER_219 | new BigDecimal("219") | +| NUMBER_220 | new BigDecimal("220") | +| NUMBER_221 | new BigDecimal("221") | +| NUMBER_222 | new BigDecimal("222") | +| NUMBER_223 | new BigDecimal("223") | +| NUMBER_224 | new BigDecimal("224") | +| NUMBER_225 | new BigDecimal("225") | +| NUMBER_226 | new BigDecimal("226") | +| NUMBER_227 | new BigDecimal("227") | +| NUMBER_228 | new BigDecimal("228") | +| NUMBER_229 | new BigDecimal("229") | +| NUMBER_230 | new BigDecimal("230") | +| NUMBER_231 | new BigDecimal("231") | +| NUMBER_232 | new BigDecimal("232") | +| NUMBER_233 | new BigDecimal("233") | +| NUMBER_234 | new BigDecimal("234") | +| NUMBER_235 | new BigDecimal("235") | +| NUMBER_236 | new BigDecimal("236") | +| NUMBER_237 | new BigDecimal("237") | +| NUMBER_238 | new BigDecimal("238") | +| NUMBER_239 | new BigDecimal("239") | +| NUMBER_240 | new BigDecimal("240") | +| NUMBER_241 | new BigDecimal("241") | +| NUMBER_242 | new BigDecimal("242") | +| NUMBER_243 | new BigDecimal("243") | +| NUMBER_244 | new BigDecimal("244") | +| NUMBER_245 | new BigDecimal("245") | +| NUMBER_246 | new BigDecimal("246") | +| NUMBER_247 | new BigDecimal("247") | +| NUMBER_248 | new BigDecimal("248") | +| NUMBER_249 | new BigDecimal("249") | +| NUMBER_250 | new BigDecimal("250") | +| NUMBER_251 | new BigDecimal("251") | +| NUMBER_252 | new BigDecimal("252") | +| NUMBER_253 | new BigDecimal("253") | +| NUMBER_254 | new BigDecimal("254") | +| NUMBER_255 | new BigDecimal("255") | +| NUMBER_256 | new BigDecimal("256") | +| NUMBER_257 | new BigDecimal("257") | +| NUMBER_258 | new BigDecimal("258") | +| NUMBER_259 | new BigDecimal("259") | +| NUMBER_260 | new BigDecimal("260") | +| NUMBER_261 | new BigDecimal("261") | +| NUMBER_262 | new BigDecimal("262") | +| NUMBER_263 | new BigDecimal("263") | +| NUMBER_264 | new BigDecimal("264") | +| NUMBER_265 | new BigDecimal("265") | +| NUMBER_266 | new BigDecimal("266") | +| NUMBER_267 | new BigDecimal("267") | +| NUMBER_268 | new BigDecimal("268") | +| NUMBER_269 | new BigDecimal("269") | +| NUMBER_270 | new BigDecimal("270") | +| NUMBER_271 | new BigDecimal("271") | +| NUMBER_272 | new BigDecimal("272") | +| NUMBER_273 | new BigDecimal("273") | +| NUMBER_274 | new BigDecimal("274") | +| NUMBER_275 | new BigDecimal("275") | +| NUMBER_276 | new BigDecimal("276") | +| NUMBER_277 | new BigDecimal("277") | +| NUMBER_278 | new BigDecimal("278") | +| NUMBER_279 | new BigDecimal("279") | +| NUMBER_280 | new BigDecimal("280") | +| NUMBER_281 | new BigDecimal("281") | +| NUMBER_282 | new BigDecimal("282") | +| NUMBER_283 | new BigDecimal("283") | +| NUMBER_284 | new BigDecimal("284") | +| NUMBER_285 | new BigDecimal("285") | +| NUMBER_286 | new BigDecimal("286") | +| NUMBER_287 | new BigDecimal("287") | +| NUMBER_288 | new BigDecimal("288") | +| NUMBER_289 | new BigDecimal("289") | +| NUMBER_290 | new BigDecimal("290") | +| NUMBER_291 | new BigDecimal("291") | +| NUMBER_292 | new BigDecimal("292") | +| NUMBER_293 | new BigDecimal("293") | +| NUMBER_294 | new BigDecimal("294") | +| NUMBER_295 | new BigDecimal("295") | +| NUMBER_296 | new BigDecimal("296") | +| NUMBER_297 | new BigDecimal("297") | +| NUMBER_298 | new BigDecimal("298") | +| NUMBER_299 | new BigDecimal("299") | +| NUMBER_300 | new BigDecimal("300") | +| NUMBER_301 | new BigDecimal("301") | +| NUMBER_302 | new BigDecimal("302") | +| NUMBER_303 | new BigDecimal("303") | +| NUMBER_304 | new BigDecimal("304") | +| NUMBER_305 | new BigDecimal("305") | +| NUMBER_306 | new BigDecimal("306") | +| NUMBER_307 | new BigDecimal("307") | +| NUMBER_308 | new BigDecimal("308") | +| NUMBER_309 | new BigDecimal("309") | +| NUMBER_310 | new BigDecimal("310") | +| NUMBER_311 | new BigDecimal("311") | +| NUMBER_312 | new BigDecimal("312") | +| NUMBER_313 | new BigDecimal("313") | +| NUMBER_314 | new BigDecimal("314") | +| NUMBER_315 | new BigDecimal("315") | +| NUMBER_316 | new BigDecimal("316") | +| NUMBER_317 | new BigDecimal("317") | +| NUMBER_318 | new BigDecimal("318") | +| NUMBER_319 | new BigDecimal("319") | +| NUMBER_320 | new BigDecimal("320") | +| NUMBER_321 | new BigDecimal("321") | +| NUMBER_322 | new BigDecimal("322") | +| NUMBER_323 | new BigDecimal("323") | +| NUMBER_324 | new BigDecimal("324") | +| NUMBER_325 | new BigDecimal("325") | +| NUMBER_326 | new BigDecimal("326") | +| NUMBER_327 | new BigDecimal("327") | +| NUMBER_328 | new BigDecimal("328") | +| NUMBER_329 | new BigDecimal("329") | +| NUMBER_331 | new BigDecimal("331") | +| NUMBER_332 | new BigDecimal("332") | +| NUMBER_333 | new BigDecimal("333") | +| NUMBER_334 | new BigDecimal("334") | +| NUMBER_335 | new BigDecimal("335") | +| NUMBER_336 | new BigDecimal("336") | +| NUMBER_337 | new BigDecimal("337") | +| NUMBER_338 | new BigDecimal("338") | +| NUMBER_339 | new BigDecimal("339") | +| NUMBER_340 | new BigDecimal("340") | +| NUMBER_341 | new BigDecimal("341") | +| NUMBER_342 | new BigDecimal("342") | +| NUMBER_343 | new BigDecimal("343") | +| NUMBER_344 | new BigDecimal("344") | +| NUMBER_345 | new BigDecimal("345") | +| NUMBER_348 | new BigDecimal("348") | +| NUMBER_349 | new BigDecimal("349") | +| NUMBER_350 | new BigDecimal("350") | +| NUMBER_351 | new BigDecimal("351") | +| NUMBER_5000 | new BigDecimal("5000") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | +| NUMBER_5009 | new BigDecimal("5009") | +| NUMBER_5010 | new BigDecimal("5010") | +| NUMBER_5011 | new BigDecimal("5011") | +| NUMBER_5012 | new BigDecimal("5012") | +| NUMBER_5013 | new BigDecimal("5013") | +| NUMBER_5014 | new BigDecimal("5014") | +| NUMBER_5015 | new BigDecimal("5015") | +| NUMBER_5016 | new BigDecimal("5016") | +| NUMBER_5017 | new BigDecimal("5017") | +| NUMBER_5018 | new BigDecimal("5018") | +| NUMBER_5020 | new BigDecimal("5020") | +| NUMBER_5021 | new BigDecimal("5021") | +| NUMBER_5022 | new BigDecimal("5022") | +| NUMBER_5023 | new BigDecimal("5023") | +| NUMBER_5024 | new BigDecimal("5024") | +| NUMBER_5025 | new BigDecimal("5025") | +| NUMBER_5026 | new BigDecimal("5026") | +| NUMBER_5027 | new BigDecimal("5027") | +| NUMBER_5028 | new BigDecimal("5028") | +| NUMBER_5029 | new BigDecimal("5029") | +| NUMBER_5030 | new BigDecimal("5030") | +| NUMBER_5031 | new BigDecimal("5031") | +| NUMBER_5032 | new BigDecimal("5032") | +| NUMBER_5033 | new BigDecimal("5033") | +| NUMBER_5034 | new BigDecimal("5034") | +| NUMBER_5035 | new BigDecimal("5035") | +| NUMBER_5036 | new BigDecimal("5036") | +| NUMBER_5037 | new BigDecimal("5037") | +| NUMBER_5039 | new BigDecimal("5039") | +| NUMBER_5040 | new BigDecimal("5040") | +| NUMBER_5041 | new BigDecimal("5041") | +| NUMBER_5042 | new BigDecimal("5042") | +| NUMBER_5043 | new BigDecimal("5043") | +| NUMBER_5044 | new BigDecimal("5044") | +| NUMBER_5045 | new BigDecimal("5045") | +| NUMBER_5046 | new BigDecimal("5046") | +| NUMBER_5047 | new BigDecimal("5047") | +| NUMBER_5048 | new BigDecimal("5048") | +| NUMBER_5049 | new BigDecimal("5049") | +| NUMBER_5050 | new BigDecimal("5050") | +| NUMBER_5051 | new BigDecimal("5051") | +| NUMBER_5052 | new BigDecimal("5052") | +| NUMBER_5053 | new BigDecimal("5053") | +| NUMBER_5054 | new BigDecimal("5054") | +| NUMBER_5055 | new BigDecimal("5055") | +| NUMBER_5056 | new BigDecimal("5056") | +| NUMBER_5057 | new BigDecimal("5057") | +| NUMBER_5058 | new BigDecimal("5058") | +| NUMBER_5059 | new BigDecimal("5059") | +| NUMBER_5060 | new BigDecimal("5060") | +| NUMBER_5061 | new BigDecimal("5061") | +| NUMBER_5062 | new BigDecimal("5062") | +| NUMBER_5063 | new BigDecimal("5063") | +| NUMBER_5064 | new BigDecimal("5064") | +| NUMBER_5065 | new BigDecimal("5065") | +| NUMBER_5066 | new BigDecimal("5066") | +| NUMBER_5067 | new BigDecimal("5067") | +| NUMBER_5068 | new BigDecimal("5068") | +| NUMBER_5069 | new BigDecimal("5069") | +| NUMBER_5070 | new BigDecimal("5070") | +| NUMBER_5071 | new BigDecimal("5071") | +| NUMBER_5072 | new BigDecimal("5072") | +| NUMBER_5073 | new BigDecimal("5073") | +| NUMBER_5074 | new BigDecimal("5074") | +| NUMBER_5075 | new BigDecimal("5075") | +| NUMBER_5076 | new BigDecimal("5076") | +| NUMBER_5077 | new BigDecimal("5077") | +| NUMBER_5078 | new BigDecimal("5078") | +| NUMBER_5079 | new BigDecimal("5079") | +| NUMBER_5080 | new BigDecimal("5080") | +| NUMBER_5081 | new BigDecimal("5081") | +| NUMBER_5082 | new BigDecimal("5082") | +| NUMBER_5083 | new BigDecimal("5083") | +| NUMBER_5084 | new BigDecimal("5084") | +| NUMBER_5085 | new BigDecimal("5085") | +| NUMBER_5086 | new BigDecimal("5086") | +| NUMBER_5087 | new BigDecimal("5087") | +| NUMBER_5088 | new BigDecimal("5088") | +| NUMBER_5089 | new BigDecimal("5089") | +| NUMBER_5090 | new BigDecimal("5090") | +| NUMBER_5091 | new BigDecimal("5091") | +| NUMBER_5092 | new BigDecimal("5092") | +| NUMBER_5093 | new BigDecimal("5093") | +| NUMBER_5094 | new BigDecimal("5094") | +| NUMBER_5095 | new BigDecimal("5095") | +| NUMBER_5096 | new BigDecimal("5096") | +| NUMBER_5097 | new BigDecimal("5097") | +| NUMBER_5098 | new BigDecimal("5098") | +| NUMBER_5099 | new BigDecimal("5099") | +| NUMBER_5100 | new BigDecimal("5100") | +| NUMBER_5101 | new BigDecimal("5101") | +| NUMBER_5102 | new BigDecimal("5102") | +| NUMBER_5103 | new BigDecimal("5103") | +| NUMBER_5104 | new BigDecimal("5104") | +| NUMBER_5105 | new BigDecimal("5105") | +| NUMBER_5106 | new BigDecimal("5106") | +| NUMBER_5107 | new BigDecimal("5107") | +| NUMBER_5108 | new BigDecimal("5108") | +| NUMBER_5109 | new BigDecimal("5109") | +| NUMBER_5110 | new BigDecimal("5110") | +| NUMBER_5111 | new BigDecimal("5111") | +| NUMBER_5112 | new BigDecimal("5112") | +| NUMBER_5113 | new BigDecimal("5113") | +| NUMBER_5114 | new BigDecimal("5114") | +| NUMBER_5115 | new BigDecimal("5115") | +| NUMBER_5116 | new BigDecimal("5116") | +| NUMBER_5117 | new BigDecimal("5117") | +| NUMBER_5118 | new BigDecimal("5118") | +| NUMBER_5119 | new BigDecimal("5119") | +| NUMBER_5120 | new BigDecimal("5120") | +| NUMBER_5121 | new BigDecimal("5121") | +| NUMBER_5122 | new BigDecimal("5122") | +| NUMBER_5123 | new BigDecimal("5123") | +| NUMBER_5124 | new BigDecimal("5124") | +| NUMBER_5125 | new BigDecimal("5125") | +| NUMBER_5126 | new BigDecimal("5126") | +| NUMBER_5127 | new BigDecimal("5127") | +| NUMBER_5128 | new BigDecimal("5128") | +| NUMBER_5129 | new BigDecimal("5129") | +| NUMBER_5130 | new BigDecimal("5130") | +| NUMBER_5131 | new BigDecimal("5131") | +| NUMBER_5132 | new BigDecimal("5132") | +| NUMBER_5133 | new BigDecimal("5133") | +| NUMBER_5134 | new BigDecimal("5134") | +| NUMBER_5135 | new BigDecimal("5135") | +| NUMBER_5136 | new BigDecimal("5136") | +| NUMBER_5137 | new BigDecimal("5137") | +| NUMBER_5138 | new BigDecimal("5138") | +| NUMBER_5139 | new BigDecimal("5139") | +| NUMBER_5140 | new BigDecimal("5140") | +| NUMBER_5141 | new BigDecimal("5141") | +| NUMBER_5142 | new BigDecimal("5142") | +| NUMBER_5143 | new BigDecimal("5143") | +| NUMBER_5144 | new BigDecimal("5144") | +| NUMBER_5145 | new BigDecimal("5145") | +| NUMBER_5146 | new BigDecimal("5146") | +| NUMBER_5147 | new BigDecimal("5147") | +| NUMBER_5148 | new BigDecimal("5148") | +| NUMBER_5149 | new BigDecimal("5149") | +| NUMBER_5150 | new BigDecimal("5150") | +| NUMBER_5151 | new BigDecimal("5151") | +| NUMBER_5152 | new BigDecimal("5152") | +| NUMBER_5153 | new BigDecimal("5153") | +| NUMBER_5154 | new BigDecimal("5154") | +| NUMBER_5156 | new BigDecimal("5156") | +| NUMBER_5157 | new BigDecimal("5157") | +| NUMBER_5158 | new BigDecimal("5158") | +| NUMBER_5159 | new BigDecimal("5159") | +| NUMBER_5160 | new BigDecimal("5160") | +| NUMBER_5161 | new BigDecimal("5161") | +| NUMBER_5162 | new BigDecimal("5162") | +| NUMBER_5163 | new BigDecimal("5163") | +| NUMBER_5164 | new BigDecimal("5164") | +| NUMBER_5165 | new BigDecimal("5165") | +| NUMBER_5166 | new BigDecimal("5166") | +| NUMBER_5167 | new BigDecimal("5167") | +| NUMBER_5168 | new BigDecimal("5168") | +| NUMBER_5169 | new BigDecimal("5169") | +| NUMBER_5170 | new BigDecimal("5170") | +| NUMBER_5171 | new BigDecimal("5171") | +| NUMBER_5172 | new BigDecimal("5172") | +| NUMBER_5173 | new BigDecimal("5173") | +| NUMBER_5174 | new BigDecimal("5174") | +| NUMBER_5175 | new BigDecimal("5175") | +| NUMBER_5176 | new BigDecimal("5176") | +| NUMBER_5177 | new BigDecimal("5177") | +| NUMBER_5178 | new BigDecimal("5178") | +| NUMBER_6000 | new BigDecimal("6000") | +| NUMBER_6001 | new BigDecimal("6001") | +| NUMBER_90001 | new BigDecimal("90001") | + + + +## Enum: List<RoomAmenityListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_30 | new BigDecimal("30") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | +| NUMBER_34 | new BigDecimal("34") | +| NUMBER_35 | new BigDecimal("35") | +| NUMBER_36 | new BigDecimal("36") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_38 | new BigDecimal("38") | +| NUMBER_39 | new BigDecimal("39") | +| NUMBER_40 | new BigDecimal("40") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_44 | new BigDecimal("44") | +| NUMBER_45 | new BigDecimal("45") | +| NUMBER_46 | new BigDecimal("46") | +| NUMBER_47 | new BigDecimal("47") | +| NUMBER_48 | new BigDecimal("48") | +| NUMBER_49 | new BigDecimal("49") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_51 | new BigDecimal("51") | +| NUMBER_52 | new BigDecimal("52") | +| NUMBER_53 | new BigDecimal("53") | +| NUMBER_54 | new BigDecimal("54") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_56 | new BigDecimal("56") | +| NUMBER_57 | new BigDecimal("57") | +| NUMBER_58 | new BigDecimal("58") | +| NUMBER_59 | new BigDecimal("59") | +| NUMBER_60 | new BigDecimal("60") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_62 | new BigDecimal("62") | +| NUMBER_63 | new BigDecimal("63") | +| NUMBER_64 | new BigDecimal("64") | +| NUMBER_65 | new BigDecimal("65") | +| NUMBER_66 | new BigDecimal("66") | +| NUMBER_67 | new BigDecimal("67") | +| NUMBER_68 | new BigDecimal("68") | +| NUMBER_69 | new BigDecimal("69") | +| NUMBER_70 | new BigDecimal("70") | +| NUMBER_71 | new BigDecimal("71") | +| NUMBER_72 | new BigDecimal("72") | +| NUMBER_73 | new BigDecimal("73") | +| NUMBER_74 | new BigDecimal("74") | +| NUMBER_75 | new BigDecimal("75") | +| NUMBER_76 | new BigDecimal("76") | +| NUMBER_77 | new BigDecimal("77") | +| NUMBER_78 | new BigDecimal("78") | +| NUMBER_79 | new BigDecimal("79") | +| NUMBER_80 | new BigDecimal("80") | +| NUMBER_81 | new BigDecimal("81") | +| NUMBER_82 | new BigDecimal("82") | +| NUMBER_83 | new BigDecimal("83") | +| NUMBER_84 | new BigDecimal("84") | +| NUMBER_85 | new BigDecimal("85") | +| NUMBER_86 | new BigDecimal("86") | +| NUMBER_87 | new BigDecimal("87") | +| NUMBER_88 | new BigDecimal("88") | +| NUMBER_89 | new BigDecimal("89") | +| NUMBER_90 | new BigDecimal("90") | +| NUMBER_91 | new BigDecimal("91") | +| NUMBER_92 | new BigDecimal("92") | +| NUMBER_93 | new BigDecimal("93") | +| NUMBER_94 | new BigDecimal("94") | +| NUMBER_95 | new BigDecimal("95") | +| NUMBER_96 | new BigDecimal("96") | +| NUMBER_97 | new BigDecimal("97") | +| NUMBER_98 | new BigDecimal("98") | +| NUMBER_99 | new BigDecimal("99") | +| NUMBER_100 | new BigDecimal("100") | +| NUMBER_101 | new BigDecimal("101") | +| NUMBER_102 | new BigDecimal("102") | +| NUMBER_103 | new BigDecimal("103") | +| NUMBER_104 | new BigDecimal("104") | +| NUMBER_105 | new BigDecimal("105") | +| NUMBER_106 | new BigDecimal("106") | +| NUMBER_107 | new BigDecimal("107") | +| NUMBER_108 | new BigDecimal("108") | +| NUMBER_109 | new BigDecimal("109") | +| NUMBER_110 | new BigDecimal("110") | +| NUMBER_111 | new BigDecimal("111") | +| NUMBER_112 | new BigDecimal("112") | +| NUMBER_113 | new BigDecimal("113") | +| NUMBER_114 | new BigDecimal("114") | +| NUMBER_115 | new BigDecimal("115") | +| NUMBER_116 | new BigDecimal("116") | +| NUMBER_117 | new BigDecimal("117") | +| NUMBER_118 | new BigDecimal("118") | +| NUMBER_119 | new BigDecimal("119") | +| NUMBER_120 | new BigDecimal("120") | +| NUMBER_121 | new BigDecimal("121") | +| NUMBER_122 | new BigDecimal("122") | +| NUMBER_123 | new BigDecimal("123") | +| NUMBER_124 | new BigDecimal("124") | +| NUMBER_125 | new BigDecimal("125") | +| NUMBER_126 | new BigDecimal("126") | +| NUMBER_127 | new BigDecimal("127") | +| NUMBER_128 | new BigDecimal("128") | +| NUMBER_129 | new BigDecimal("129") | +| NUMBER_130 | new BigDecimal("130") | +| NUMBER_131 | new BigDecimal("131") | +| NUMBER_132 | new BigDecimal("132") | +| NUMBER_133 | new BigDecimal("133") | +| NUMBER_134 | new BigDecimal("134") | +| NUMBER_135 | new BigDecimal("135") | +| NUMBER_136 | new BigDecimal("136") | +| NUMBER_137 | new BigDecimal("137") | +| NUMBER_138 | new BigDecimal("138") | +| NUMBER_139 | new BigDecimal("139") | +| NUMBER_140 | new BigDecimal("140") | +| NUMBER_141 | new BigDecimal("141") | +| NUMBER_142 | new BigDecimal("142") | +| NUMBER_143 | new BigDecimal("143") | +| NUMBER_144 | new BigDecimal("144") | +| NUMBER_145 | new BigDecimal("145") | +| NUMBER_146 | new BigDecimal("146") | +| NUMBER_147 | new BigDecimal("147") | +| NUMBER_148 | new BigDecimal("148") | +| NUMBER_149 | new BigDecimal("149") | +| NUMBER_150 | new BigDecimal("150") | +| NUMBER_151 | new BigDecimal("151") | +| NUMBER_152 | new BigDecimal("152") | +| NUMBER_153 | new BigDecimal("153") | +| NUMBER_154 | new BigDecimal("154") | +| NUMBER_155 | new BigDecimal("155") | +| NUMBER_156 | new BigDecimal("156") | +| NUMBER_157 | new BigDecimal("157") | +| NUMBER_158 | new BigDecimal("158") | +| NUMBER_159 | new BigDecimal("159") | +| NUMBER_160 | new BigDecimal("160") | +| NUMBER_161 | new BigDecimal("161") | +| NUMBER_162 | new BigDecimal("162") | +| NUMBER_163 | new BigDecimal("163") | +| NUMBER_164 | new BigDecimal("164") | +| NUMBER_165 | new BigDecimal("165") | +| NUMBER_166 | new BigDecimal("166") | +| NUMBER_167 | new BigDecimal("167") | +| NUMBER_168 | new BigDecimal("168") | +| NUMBER_169 | new BigDecimal("169") | +| NUMBER_170 | new BigDecimal("170") | +| NUMBER_171 | new BigDecimal("171") | +| NUMBER_172 | new BigDecimal("172") | +| NUMBER_173 | new BigDecimal("173") | +| NUMBER_174 | new BigDecimal("174") | +| NUMBER_175 | new BigDecimal("175") | +| NUMBER_176 | new BigDecimal("176") | +| NUMBER_177 | new BigDecimal("177") | +| NUMBER_178 | new BigDecimal("178") | +| NUMBER_179 | new BigDecimal("179") | +| NUMBER_180 | new BigDecimal("180") | +| NUMBER_181 | new BigDecimal("181") | +| NUMBER_182 | new BigDecimal("182") | +| NUMBER_183 | new BigDecimal("183") | +| NUMBER_184 | new BigDecimal("184") | +| NUMBER_185 | new BigDecimal("185") | +| NUMBER_186 | new BigDecimal("186") | +| NUMBER_187 | new BigDecimal("187") | +| NUMBER_188 | new BigDecimal("188") | +| NUMBER_189 | new BigDecimal("189") | +| NUMBER_190 | new BigDecimal("190") | +| NUMBER_191 | new BigDecimal("191") | +| NUMBER_192 | new BigDecimal("192") | +| NUMBER_193 | new BigDecimal("193") | +| NUMBER_194 | new BigDecimal("194") | +| NUMBER_195 | new BigDecimal("195") | +| NUMBER_196 | new BigDecimal("196") | +| NUMBER_197 | new BigDecimal("197") | +| NUMBER_198 | new BigDecimal("198") | +| NUMBER_199 | new BigDecimal("199") | +| NUMBER_200 | new BigDecimal("200") | +| NUMBER_201 | new BigDecimal("201") | +| NUMBER_202 | new BigDecimal("202") | +| NUMBER_203 | new BigDecimal("203") | +| NUMBER_204 | new BigDecimal("204") | +| NUMBER_205 | new BigDecimal("205") | +| NUMBER_206 | new BigDecimal("206") | +| NUMBER_207 | new BigDecimal("207") | +| NUMBER_208 | new BigDecimal("208") | +| NUMBER_209 | new BigDecimal("209") | +| NUMBER_210 | new BigDecimal("210") | +| NUMBER_211 | new BigDecimal("211") | +| NUMBER_212 | new BigDecimal("212") | +| NUMBER_213 | new BigDecimal("213") | +| NUMBER_214 | new BigDecimal("214") | +| NUMBER_215 | new BigDecimal("215") | +| NUMBER_216 | new BigDecimal("216") | +| NUMBER_217 | new BigDecimal("217") | +| NUMBER_218 | new BigDecimal("218") | +| NUMBER_219 | new BigDecimal("219") | +| NUMBER_220 | new BigDecimal("220") | +| NUMBER_221 | new BigDecimal("221") | +| NUMBER_222 | new BigDecimal("222") | +| NUMBER_223 | new BigDecimal("223") | +| NUMBER_224 | new BigDecimal("224") | +| NUMBER_225 | new BigDecimal("225") | +| NUMBER_226 | new BigDecimal("226") | +| NUMBER_227 | new BigDecimal("227") | +| NUMBER_228 | new BigDecimal("228") | +| NUMBER_229 | new BigDecimal("229") | +| NUMBER_230 | new BigDecimal("230") | +| NUMBER_231 | new BigDecimal("231") | +| NUMBER_232 | new BigDecimal("232") | +| NUMBER_233 | new BigDecimal("233") | +| NUMBER_234 | new BigDecimal("234") | +| NUMBER_235 | new BigDecimal("235") | +| NUMBER_236 | new BigDecimal("236") | +| NUMBER_237 | new BigDecimal("237") | +| NUMBER_238 | new BigDecimal("238") | +| NUMBER_239 | new BigDecimal("239") | +| NUMBER_240 | new BigDecimal("240") | +| NUMBER_241 | new BigDecimal("241") | +| NUMBER_242 | new BigDecimal("242") | +| NUMBER_243 | new BigDecimal("243") | +| NUMBER_244 | new BigDecimal("244") | +| NUMBER_245 | new BigDecimal("245") | +| NUMBER_246 | new BigDecimal("246") | +| NUMBER_247 | new BigDecimal("247") | +| NUMBER_248 | new BigDecimal("248") | +| NUMBER_249 | new BigDecimal("249") | +| NUMBER_250 | new BigDecimal("250") | +| NUMBER_251 | new BigDecimal("251") | +| NUMBER_252 | new BigDecimal("252") | +| NUMBER_253 | new BigDecimal("253") | +| NUMBER_254 | new BigDecimal("254") | +| NUMBER_255 | new BigDecimal("255") | +| NUMBER_256 | new BigDecimal("256") | +| NUMBER_257 | new BigDecimal("257") | +| NUMBER_258 | new BigDecimal("258") | +| NUMBER_259 | new BigDecimal("259") | +| NUMBER_260 | new BigDecimal("260") | +| NUMBER_261 | new BigDecimal("261") | +| NUMBER_262 | new BigDecimal("262") | +| NUMBER_263 | new BigDecimal("263") | +| NUMBER_264 | new BigDecimal("264") | +| NUMBER_265 | new BigDecimal("265") | +| NUMBER_266 | new BigDecimal("266") | +| NUMBER_267 | new BigDecimal("267") | +| NUMBER_268 | new BigDecimal("268") | +| NUMBER_269 | new BigDecimal("269") | +| NUMBER_270 | new BigDecimal("270") | +| NUMBER_271 | new BigDecimal("271") | +| NUMBER_272 | new BigDecimal("272") | +| NUMBER_273 | new BigDecimal("273") | +| NUMBER_274 | new BigDecimal("274") | +| NUMBER_275 | new BigDecimal("275") | +| NUMBER_276 | new BigDecimal("276") | +| NUMBER_277 | new BigDecimal("277") | +| NUMBER_278 | new BigDecimal("278") | +| NUMBER_279 | new BigDecimal("279") | +| NUMBER_280 | new BigDecimal("280") | +| NUMBER_281 | new BigDecimal("281") | +| NUMBER_282 | new BigDecimal("282") | +| NUMBER_283 | new BigDecimal("283") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | +| NUMBER_5009 | new BigDecimal("5009") | +| NUMBER_5010 | new BigDecimal("5010") | +| NUMBER_5011 | new BigDecimal("5011") | +| NUMBER_5012 | new BigDecimal("5012") | +| NUMBER_5013 | new BigDecimal("5013") | +| NUMBER_5014 | new BigDecimal("5014") | +| NUMBER_5015 | new BigDecimal("5015") | +| NUMBER_5016 | new BigDecimal("5016") | +| NUMBER_5017 | new BigDecimal("5017") | +| NUMBER_5018 | new BigDecimal("5018") | +| NUMBER_5019 | new BigDecimal("5019") | +| NUMBER_5020 | new BigDecimal("5020") | +| NUMBER_5021 | new BigDecimal("5021") | +| NUMBER_5022 | new BigDecimal("5022") | +| NUMBER_5023 | new BigDecimal("5023") | +| NUMBER_5024 | new BigDecimal("5024") | +| NUMBER_5025 | new BigDecimal("5025") | +| NUMBER_5026 | new BigDecimal("5026") | +| NUMBER_5027 | new BigDecimal("5027") | +| NUMBER_5028 | new BigDecimal("5028") | +| NUMBER_5029 | new BigDecimal("5029") | +| NUMBER_5030 | new BigDecimal("5030") | +| NUMBER_5031 | new BigDecimal("5031") | +| NUMBER_5032 | new BigDecimal("5032") | +| NUMBER_5033 | new BigDecimal("5033") | +| NUMBER_5034 | new BigDecimal("5034") | +| NUMBER_5035 | new BigDecimal("5035") | +| NUMBER_5036 | new BigDecimal("5036") | +| NUMBER_5037 | new BigDecimal("5037") | +| NUMBER_5038 | new BigDecimal("5038") | +| NUMBER_5039 | new BigDecimal("5039") | +| NUMBER_5040 | new BigDecimal("5040") | +| NUMBER_5041 | new BigDecimal("5041") | +| NUMBER_5042 | new BigDecimal("5042") | +| NUMBER_5043 | new BigDecimal("5043") | +| NUMBER_5044 | new BigDecimal("5044") | +| NUMBER_5045 | new BigDecimal("5045") | +| NUMBER_5046 | new BigDecimal("5046") | +| NUMBER_5068 | new BigDecimal("5068") | +| NUMBER_5069 | new BigDecimal("5069") | +| NUMBER_5070 | new BigDecimal("5070") | +| NUMBER_5071 | new BigDecimal("5071") | +| NUMBER_5072 | new BigDecimal("5072") | +| NUMBER_5073 | new BigDecimal("5073") | +| NUMBER_5074 | new BigDecimal("5074") | +| NUMBER_5075 | new BigDecimal("5075") | +| NUMBER_5076 | new BigDecimal("5076") | +| NUMBER_5077 | new BigDecimal("5077") | +| NUMBER_5079 | new BigDecimal("5079") | +| NUMBER_5080 | new BigDecimal("5080") | +| NUMBER_5081 | new BigDecimal("5081") | +| NUMBER_5082 | new BigDecimal("5082") | +| NUMBER_5083 | new BigDecimal("5083") | +| NUMBER_5084 | new BigDecimal("5084") | +| NUMBER_5085 | new BigDecimal("5085") | +| NUMBER_5086 | new BigDecimal("5086") | +| NUMBER_5087 | new BigDecimal("5087") | +| NUMBER_5088 | new BigDecimal("5088") | +| NUMBER_5089 | new BigDecimal("5089") | +| NUMBER_5090 | new BigDecimal("5090") | +| NUMBER_5091 | new BigDecimal("5091") | +| NUMBER_5092 | new BigDecimal("5092") | +| NUMBER_5093 | new BigDecimal("5093") | +| NUMBER_5094 | new BigDecimal("5094") | +| NUMBER_5095 | new BigDecimal("5095") | +| NUMBER_5096 | new BigDecimal("5096") | +| NUMBER_5097 | new BigDecimal("5097") | +| NUMBER_5098 | new BigDecimal("5098") | +| NUMBER_5099 | new BigDecimal("5099") | +| NUMBER_5100 | new BigDecimal("5100") | +| NUMBER_5101 | new BigDecimal("5101") | +| NUMBER_5102 | new BigDecimal("5102") | +| NUMBER_5103 | new BigDecimal("5103") | +| NUMBER_5104 | new BigDecimal("5104") | +| NUMBER_5105 | new BigDecimal("5105") | +| NUMBER_5106 | new BigDecimal("5106") | +| NUMBER_5107 | new BigDecimal("5107") | +| NUMBER_5108 | new BigDecimal("5108") | +| NUMBER_5109 | new BigDecimal("5109") | +| NUMBER_5110 | new BigDecimal("5110") | +| NUMBER_5111 | new BigDecimal("5111") | +| NUMBER_5112 | new BigDecimal("5112") | +| NUMBER_5113 | new BigDecimal("5113") | +| NUMBER_5114 | new BigDecimal("5114") | +| NUMBER_5115 | new BigDecimal("5115") | +| NUMBER_5116 | new BigDecimal("5116") | +| NUMBER_5117 | new BigDecimal("5117") | +| NUMBER_5118 | new BigDecimal("5118") | +| NUMBER_5119 | new BigDecimal("5119") | +| NUMBER_5120 | new BigDecimal("5120") | +| NUMBER_5121 | new BigDecimal("5121") | +| NUMBER_5122 | new BigDecimal("5122") | +| NUMBER_5123 | new BigDecimal("5123") | +| NUMBER_5124 | new BigDecimal("5124") | +| NUMBER_5125 | new BigDecimal("5125") | +| NUMBER_5126 | new BigDecimal("5126") | +| NUMBER_5127 | new BigDecimal("5127") | +| NUMBER_5129 | new BigDecimal("5129") | +| NUMBER_5130 | new BigDecimal("5130") | +| NUMBER_5131 | new BigDecimal("5131") | +| NUMBER_5132 | new BigDecimal("5132") | +| NUMBER_5133 | new BigDecimal("5133") | +| NUMBER_5134 | new BigDecimal("5134") | +| NUMBER_5135 | new BigDecimal("5135") | +| NUMBER_5136 | new BigDecimal("5136") | +| NUMBER_5137 | new BigDecimal("5137") | +| NUMBER_5138 | new BigDecimal("5138") | +| NUMBER_5139 | new BigDecimal("5139") | +| NUMBER_5140 | new BigDecimal("5140") | +| NUMBER_5141 | new BigDecimal("5141") | +| NUMBER_5142 | new BigDecimal("5142") | +| NUMBER_5143 | new BigDecimal("5143") | +| NUMBER_5144 | new BigDecimal("5144") | +| NUMBER_5145 | new BigDecimal("5145") | +| NUMBER_5146 | new BigDecimal("5146") | +| NUMBER_5147 | new BigDecimal("5147") | +| NUMBER_5148 | new BigDecimal("5148") | +| NUMBER_5149 | new BigDecimal("5149") | +| NUMBER_5150 | new BigDecimal("5150") | +| NUMBER_5151 | new BigDecimal("5151") | +| NUMBER_5152 | new BigDecimal("5152") | +| NUMBER_5153 | new BigDecimal("5153") | +| NUMBER_5154 | new BigDecimal("5154") | +| NUMBER_5157 | new BigDecimal("5157") | +| NUMBER_5158 | new BigDecimal("5158") | +| NUMBER_5159 | new BigDecimal("5159") | +| NUMBER_5160 | new BigDecimal("5160") | +| NUMBER_5161 | new BigDecimal("5161") | +| NUMBER_5162 | new BigDecimal("5162") | +| NUMBER_5163 | new BigDecimal("5163") | +| NUMBER_5164 | new BigDecimal("5164") | +| NUMBER_5165 | new BigDecimal("5165") | +| NUMBER_5166 | new BigDecimal("5166") | +| NUMBER_5167 | new BigDecimal("5167") | +| NUMBER_5168 | new BigDecimal("5168") | +| NUMBER_5169 | new BigDecimal("5169") | +| NUMBER_5170 | new BigDecimal("5170") | +| NUMBER_5171 | new BigDecimal("5171") | +| NUMBER_5172 | new BigDecimal("5172") | +| NUMBER_5173 | new BigDecimal("5173") | +| NUMBER_5174 | new BigDecimal("5174") | +| NUMBER_5175 | new BigDecimal("5175") | +| NUMBER_5176 | new BigDecimal("5176") | +| NUMBER_5177 | new BigDecimal("5177") | +| NUMBER_5178 | new BigDecimal("5178") | +| NUMBER_5179 | new BigDecimal("5179") | +| NUMBER_5180 | new BigDecimal("5180") | +| NUMBER_5181 | new BigDecimal("5181") | +| NUMBER_5182 | new BigDecimal("5182") | +| NUMBER_5184 | new BigDecimal("5184") | +| NUMBER_5185 | new BigDecimal("5185") | +| NUMBER_5186 | new BigDecimal("5186") | +| NUMBER_5187 | new BigDecimal("5187") | +| NUMBER_5188 | new BigDecimal("5188") | +| NUMBER_5189 | new BigDecimal("5189") | +| NUMBER_5190 | new BigDecimal("5190") | +| NUMBER_5191 | new BigDecimal("5191") | +| NUMBER_5196 | new BigDecimal("5196") | +| NUMBER_5198 | new BigDecimal("5198") | +| NUMBER_5199 | new BigDecimal("5199") | +| NUMBER_5200 | new BigDecimal("5200") | +| NUMBER_5201 | new BigDecimal("5201") | +| NUMBER_5202 | new BigDecimal("5202") | +| NUMBER_5203 | new BigDecimal("5203") | +| NUMBER_5204 | new BigDecimal("5204") | +| NUMBER_5205 | new BigDecimal("5205") | +| NUMBER_5206 | new BigDecimal("5206") | +| NUMBER_5207 | new BigDecimal("5207") | +| NUMBER_5211 | new BigDecimal("5211") | +| NUMBER_5212 | new BigDecimal("5212") | +| NUMBER_90001 | new BigDecimal("90001") | +| NUMBER_90002 | new BigDecimal("90002") | +| NUMBER_90003 | new BigDecimal("90003") | +| NUMBER_90004 | new BigDecimal("90004") | +| NUMBER_90005 | new BigDecimal("90005") | +| NUMBER_90006 | new BigDecimal("90006") | +| NUMBER_90007 | new BigDecimal("90007") | +| NUMBER_90008 | new BigDecimal("90008") | +| NUMBER_90009 | new BigDecimal("90009") | +| NUMBER_90010 | new BigDecimal("90010") | +| NUMBER_90011 | new BigDecimal("90011") | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md new file mode 100644 index 0000000..4f5af94 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md @@ -0,0 +1,59 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**languageCode** | [**LanguageCodeEnum**](#LanguageCodeEnum) | The language code of the message.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> | | +|**text** | **String** | The message text. | | + + + +## Enum: LanguageCodeEnum + +| Name | Value | +|---- | -----| +| AF | "af" | +| AR | "ar" | +| BG | "bg" | +| CA | "ca" | +| CS | "cs" | +| DA | "da" | +| DE | "de" | +| EL | "el" | +| EN | "en" | +| ES | "es" | +| ET | "et" | +| FI | "fi" | +| FR | "fr" | +| HE | "he" | +| HI | "hi" | +| HR | "hr" | +| HU | "hu" | +| ID | "id" | +| IS | "is" | +| IT | "it" | +| JA | "ja" | +| KO | "ko" | +| LT | "lt" | +| LV | "lv" | +| NL | "nl" | +| NO | "no" | +| PL | "pl" | +| PT | "pt" | +| RO | "ro" | +| RU | "ru" | +| SK | "sk" | +| SL | "sl" | +| SR | "sr" | +| SV | "sv" | +| TH | "th" | +| TR | "tr" | +| VI | "vi" | +| ZH | "zh" | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.md b/docs/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.md new file mode 100644 index 0000000..cd3b394 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.md @@ -0,0 +1,16 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyGuestInfo + +Information regarding requirements towards guests. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**guestAddressRequired** | **Boolean** | Whether the address of the guest is required to book this property. | | +|**guestContactNumberRequired** | **Boolean** | Whether the phone number of the guest is required to book this property. | | +|**guestNameListRequired** | **Boolean** | Whether a list of the guests names is required to book this property. | | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.md new file mode 100644 index 0000000..302c836 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.md @@ -0,0 +1,33 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyPolicyListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**checkInTime** | **BigDecimal** | Check-in time (unix timestamp in ms). | | +|**checkOutTime** | **BigDecimal** | Check-out time (unix timestamp in ms). | | +|**totalGuestCount** | **BigDecimal** | The maximum number of guests allowed. | [optional] | +|**cancellationPolicyList** | [**List<PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner>**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md) | List of cancellation policies. | | +|**advanceBookingMin** | **BigDecimal** | The minimum number of days in advance a booking must be made | | +|**advanceBookingMax** | **BigDecimal** | The maximum number of days in advance a booking can be made | | +|**petsPolicy** | [**PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md) | | [optional] | +|**prepaymentPolicy** | [**PrepaymentPolicyEnum**](#PrepaymentPolicyEnum) | The type of the prepayment policy. | [optional] | +|**guaranteePolicy** | [**PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md) | | [optional] | +|**taxPolicyList** | [**List<PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner>**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md) | A list of taxes and their policies. | | +|**feePolicyList** | [**List<PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner>**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md) | A list of fees and their policies. | | +|**name** | **String** | The name of this policy. | [optional] | + + + +## Enum: PrepaymentPolicyEnum + +| Name | Value | +|---- | -----| +| CANCELLATION_FEE_BEGINS | "after_cancellation_fee_begins" | +| RESERVATION_IS_MADE | "after_reservation_is_made" | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md new file mode 100644 index 0000000..610c9cb --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md @@ -0,0 +1,19 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**percentAfterReservation** | **BigDecimal** | Percentage of refund after reservation. | | +|**nightsAfterReservation** | **BigDecimal** | Number of nights after reservation. | | +|**deadlineDays** | **BigDecimal** | Deadline in days. | | +|**deadlineHours** | **BigDecimal** | Deadline in hours. | | +|**percentAfterDeadline** | **BigDecimal** | Percentage of refund after deadline. | | +|**nightsAfterDeadline** | **BigDecimal** | Number of nights after deadline. | | +|**noShowPolicy** | **String** | No-show policy | | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md new file mode 100644 index 0000000..17e0566 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md @@ -0,0 +1,193 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**typeCode** | [**TypeCodeEnum**](#TypeCodeEnum) | The code that represents the type of fee.<p>See also <a href=\"#feetype-codes\">in the appendix</a>.</p> | | +|**percent** | **BigDecimal** | The charged percentage if applicable. | [optional] | +|**chargeType** | [**ChargeTypeEnum**](#ChargeTypeEnum) | The type of charge. | | +|**chargeFrequencyCode** | [**ChargeFrequencyCodeEnum**](#ChargeFrequencyCodeEnum) | The code that represents the frequency of charge.<p>See also <a href=\"#chargetype-codes\">in the appendix</a>.</p> | | +|**currencyCode** | [**CurrencyCodeEnum**](#CurrencyCodeEnum) | The currency code of the currency in that the charge is applied.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> | | +|**conditionList** | [**List<ConditionListEnum>**](#List<ConditionListEnum>) | A list of conditions for the tax. Is empty if <code>chargeType</code> is not <code>conditional</code>. | | + + + +## Enum: TypeCodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | +| NUMBER_34 | new BigDecimal("34") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_38 | new BigDecimal("38") | +| NUMBER_40 | new BigDecimal("40") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_44 | new BigDecimal("44") | +| NUMBER_45 | new BigDecimal("45") | +| NUMBER_47 | new BigDecimal("47") | +| NUMBER_51 | new BigDecimal("51") | +| NUMBER_52 | new BigDecimal("52") | +| NUMBER_53 | new BigDecimal("53") | +| NUMBER_54 | new BigDecimal("54") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_56 | new BigDecimal("56") | +| NUMBER_5000 | new BigDecimal("5000") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5009 | new BigDecimal("5009") | +| NUMBER_5010 | new BigDecimal("5010") | +| NUMBER_5011 | new BigDecimal("5011") | +| NUMBER_5012 | new BigDecimal("5012") | +| NUMBER_5013 | new BigDecimal("5013") | +| NUMBER_5014 | new BigDecimal("5014") | +| NUMBER_5015 | new BigDecimal("5015") | +| NUMBER_5016 | new BigDecimal("5016") | +| NUMBER_5017 | new BigDecimal("5017") | +| NUMBER_5018 | new BigDecimal("5018") | +| NUMBER_5019 | new BigDecimal("5019") | +| NUMBER_5020 | new BigDecimal("5020") | +| NUMBER_5021 | new BigDecimal("5021") | +| NUMBER_5022 | new BigDecimal("5022") | +| NUMBER_5023 | new BigDecimal("5023") | +| NUMBER_5024 | new BigDecimal("5024") | +| NUMBER_5025 | new BigDecimal("5025") | +| NUMBER_5026 | new BigDecimal("5026") | +| NUMBER_5027 | new BigDecimal("5027") | +| NUMBER_5028 | new BigDecimal("5028") | +| NUMBER_5029 | new BigDecimal("5029") | +| NUMBER_5030 | new BigDecimal("5030") | +| NUMBER_5031 | new BigDecimal("5031") | +| NUMBER_5032 | new BigDecimal("5032") | +| NUMBER_5033 | new BigDecimal("5033") | +| NUMBER_5035 | new BigDecimal("5035") | +| NUMBER_5036 | new BigDecimal("5036") | +| NUMBER_20001 | new BigDecimal("20001") | + + + +## Enum: ChargeTypeEnum + +| Name | Value | +|---- | -----| +| INCLUDED | "included" | +| EXCLUDED | "excluded" | +| CONDITIONAL | "conditional" | + + + +## Enum: ChargeFrequencyCodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_5000 | new BigDecimal("5000") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5010 | new BigDecimal("5010") | +| NUMBER_5011 | new BigDecimal("5011") | +| NUMBER_5012 | new BigDecimal("5012") | +| NUMBER_5013 | new BigDecimal("5013") | +| NUMBER_5014 | new BigDecimal("5014") | +| NUMBER_5015 | new BigDecimal("5015") | +| NUMBER_5016 | new BigDecimal("5016") | +| NUMBER_5017 | new BigDecimal("5017") | +| NUMBER_90010 | new BigDecimal("90010") | +| NUMBER_90011 | new BigDecimal("90011") | +| NUMBER_90012 | new BigDecimal("90012") | +| NUMBER_90013 | new BigDecimal("90013") | + + + +## Enum: CurrencyCodeEnum + +| Name | Value | +|---- | -----| +| AED | "AED" | +| ARS | "ARS" | +| AUD | "AUD" | +| AZN | "AZN" | +| BGN | "BGN" | +| BHD | "BHD" | +| BRL | "BRL" | +| CAD | "CAD" | +| CHF | "CHF" | +| CLP | "CLP" | +| CNY | "CNY" | +| COP | "COP" | +| CZK | "CZK" | +| DKK | "DKK" | +| EGP | "EGP" | +| EUR | "EUR" | +| FJD | "FJD" | +| GBP | "GBP" | +| GEL | "GEL" | +| HKD | "HKD" | +| HUF | "HUF" | +| IDR | "IDR" | +| ILS | "ILS" | +| INR | "INR" | +| JOD | "JOD" | +| JPY | "JPY" | +| KRW | "KRW" | +| KWD | "KWD" | +| KZT | "KZT" | +| MDL | "MDL" | +| MXN | "MXN" | +| MYR | "MYR" | +| NAD | "NAD" | +| NOK | "NOK" | +| NZD | "NZD" | +| OMR | "OMR" | +| PLN | "PLN" | +| QAR | "QAR" | +| RON | "RON" | +| RUB | "RUB" | +| SAR | "SAR" | +| SEK | "SEK" | +| SGD | "SGD" | +| THB | "THB" | +| TRY | "TRY" | +| TWD | "TWD" | +| UAH | "UAH" | +| USD | "USD" | +| XOF | "XOF" | +| ZAR | "ZAR" | + + + +## Enum: List<ConditionListEnum> + +| Name | Value | +|---- | -----| +| BRINGS_PET | "guest_brings_pet" | +| DOESNT_CLEAN_BEFORE_CHECKOUT | "guest_doesnt_clean_before_checkout" | +| SMOKES | "guest_smokes" | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md new file mode 100644 index 0000000..63101d8 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md @@ -0,0 +1,20 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy + +Defines the guarantee amount that has to be paid to the property. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**percentAfterReservation** | **BigDecimal** | Percentage of refund after reservation. | | +|**nightsAfterReservation** | **BigDecimal** | Number of nights after reservation. | | +|**deadlineDays** | **BigDecimal** | Deadline in days. | | +|**deadlineHours** | **BigDecimal** | Deadline in hours. | | +|**percentAfterDeadline** | **BigDecimal** | Percentage of refund after deadline. | | +|**nightsAfterDeadline** | **BigDecimal** | Number of nights after deadline. | | +|**noShowPolicy** | **String** | No-show policy | | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md new file mode 100644 index 0000000..8240bc5 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md @@ -0,0 +1,16 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy + +Contains information about the pets policy of the property + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**allowed** | **Boolean** | Indicates if pets are allowed in the property. | | +|**byArrangement** | **Boolean** | Indicates if pets are allowed by arrangement. | | +|**freeOfCharge** | **Boolean** | Indicates if pets are allowed without any additional charge. | | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md new file mode 100644 index 0000000..2b3effe --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md @@ -0,0 +1,160 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**typeCode** | [**TypeCodeEnum**](#TypeCodeEnum) | The code that represents the type of tax.<p>See also <a href=\"#taxtype-codes\">in the appendix</a>.</p> | | +|**percent** | **BigDecimal** | The charged percentage if applicable. | [optional] | +|**chargeType** | [**ChargeTypeEnum**](#ChargeTypeEnum) | The type of charge. | | +|**chargeFrequencyCode** | [**ChargeFrequencyCodeEnum**](#ChargeFrequencyCodeEnum) | The code that represents the frequency of charge.<p>See also <a href=\"#chargetype-codes\">in the appendix</a>.</p> | | +|**currencyCode** | [**CurrencyCodeEnum**](#CurrencyCodeEnum) | The currency code of the currency in that the charge is applied.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> | | +|**conditionList** | [**List<ConditionListEnum>**](#List<ConditionListEnum>) | A list of conditions for the tax. Is empty if <code>chargeType</code> is not <code>conditional</code>. | | + + + +## Enum: TypeCodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_30 | new BigDecimal("30") | +| NUMBER_35 | new BigDecimal("35") | +| NUMBER_36 | new BigDecimal("36") | +| NUMBER_39 | new BigDecimal("39") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_46 | new BigDecimal("46") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | + + + +## Enum: ChargeTypeEnum + +| Name | Value | +|---- | -----| +| INCLUDED | "included" | +| EXCLUDED | "excluded" | +| CONDITIONAL | "conditional" | + + + +## Enum: ChargeFrequencyCodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_5000 | new BigDecimal("5000") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5010 | new BigDecimal("5010") | +| NUMBER_5011 | new BigDecimal("5011") | +| NUMBER_5012 | new BigDecimal("5012") | +| NUMBER_5013 | new BigDecimal("5013") | +| NUMBER_5014 | new BigDecimal("5014") | +| NUMBER_5015 | new BigDecimal("5015") | +| NUMBER_5016 | new BigDecimal("5016") | +| NUMBER_5017 | new BigDecimal("5017") | +| NUMBER_90010 | new BigDecimal("90010") | +| NUMBER_90011 | new BigDecimal("90011") | +| NUMBER_90012 | new BigDecimal("90012") | +| NUMBER_90013 | new BigDecimal("90013") | + + + +## Enum: CurrencyCodeEnum + +| Name | Value | +|---- | -----| +| AED | "AED" | +| ARS | "ARS" | +| AUD | "AUD" | +| AZN | "AZN" | +| BGN | "BGN" | +| BHD | "BHD" | +| BRL | "BRL" | +| CAD | "CAD" | +| CHF | "CHF" | +| CLP | "CLP" | +| CNY | "CNY" | +| COP | "COP" | +| CZK | "CZK" | +| DKK | "DKK" | +| EGP | "EGP" | +| EUR | "EUR" | +| FJD | "FJD" | +| GBP | "GBP" | +| GEL | "GEL" | +| HKD | "HKD" | +| HUF | "HUF" | +| IDR | "IDR" | +| ILS | "ILS" | +| INR | "INR" | +| JOD | "JOD" | +| JPY | "JPY" | +| KRW | "KRW" | +| KWD | "KWD" | +| KZT | "KZT" | +| MDL | "MDL" | +| MXN | "MXN" | +| MYR | "MYR" | +| NAD | "NAD" | +| NOK | "NOK" | +| NZD | "NZD" | +| OMR | "OMR" | +| PLN | "PLN" | +| QAR | "QAR" | +| RON | "RON" | +| RUB | "RUB" | +| SAR | "SAR" | +| SEK | "SEK" | +| SGD | "SGD" | +| THB | "THB" | +| TRY | "TRY" | +| TWD | "TWD" | +| UAH | "UAH" | +| USD | "USD" | +| XOF | "XOF" | +| ZAR | "ZAR" | + + + +## Enum: List<ConditionListEnum> + +| Name | Value | +|---- | -----| +| BRINGS_PET | "guest_brings_pet" | +| DOESNT_CLEAN_BEFORE_CHECKOUT | "guest_doesnt_clean_before_checkout" | +| SMOKES | "guest_smokes" | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.md b/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.md new file mode 100644 index 0000000..f64a357 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.md @@ -0,0 +1,162 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyPropertyInfo + +General information regarding the property. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**unitCount** | **BigDecimal** | The amount of units the property has. | [optional] | +|**messageList** | [**List<PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner>**](PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.md) | Contains a descriptive message for this property in all supported languages. | | +|**categoryList** | [**List<CategoryListEnum>**](#List<CategoryListEnum>) | A list of code of the property class types that apply to the property. | | +|**languageList** | [**List<LanguageListEnum>**](#List<LanguageListEnum>) | The codes of languages the staff of this property can speak. Please note that these codes partially differ from the two character ISO language codes widely used throughout the API as they partially include country specific language code.<p>See also <a href=\"#languagecountry-code\">in the appendix</a>.</p> | | +|**location** | [**AvailablePropertiesInner1GeoLocation**](AvailablePropertiesInner1GeoLocation.md) | | [optional] | +|**acceptedPaymentList** | [**List<PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner>**](PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md) | A list of the accepted payment methods. Payment methods might subject to frequent change as payment providers come and go. You should always implement a way to handle new, unexpected payment methods.<p>See also <a href=\"#paymenttypes\">in the appendix</a>.</p> | | + + + +## Enum: List<CategoryListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_30 | new BigDecimal("30") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | +| NUMBER_34 | new BigDecimal("34") | +| NUMBER_35 | new BigDecimal("35") | +| NUMBER_36 | new BigDecimal("36") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_38 | new BigDecimal("38") | +| NUMBER_39 | new BigDecimal("39") | +| NUMBER_40 | new BigDecimal("40") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_44 | new BigDecimal("44") | +| NUMBER_45 | new BigDecimal("45") | +| NUMBER_46 | new BigDecimal("46") | +| NUMBER_47 | new BigDecimal("47") | +| NUMBER_48 | new BigDecimal("48") | +| NUMBER_49 | new BigDecimal("49") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_51 | new BigDecimal("51") | +| NUMBER_52 | new BigDecimal("52") | +| NUMBER_53 | new BigDecimal("53") | +| NUMBER_54 | new BigDecimal("54") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_56 | new BigDecimal("56") | +| NUMBER_57 | new BigDecimal("57") | +| NUMBER_58 | new BigDecimal("58") | +| NUMBER_59 | new BigDecimal("59") | +| NUMBER_60 | new BigDecimal("60") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_62 | new BigDecimal("62") | +| NUMBER_5000 | new BigDecimal("5000") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | +| NUMBER_5009 | new BigDecimal("5009") | + + + +## Enum: List<LanguageListEnum> + +| Name | Value | +|---- | -----| +| AF | "af" | +| AR | "ar" | +| AZ | "az" | +| BE | "be" | +| BG | "bg" | +| CA | "ca" | +| CS | "cs" | +| DA | "da" | +| DE | "de" | +| EL | "el" | +| EN | "en" | +| EN_GB | "en-gb" | +| EN_US | "en-us" | +| ES | "es" | +| ES_AR | "es-ar" | +| ET | "et" | +| FR | "fr" | +| FI | "fi" | +| HE | "he" | +| HI | "hi" | +| HR | "hr" | +| HU | "hu" | +| ID | "id" | +| IS | "is" | +| IT | "it" | +| JA | "ja" | +| KM | "km" | +| KO | "ko" | +| LO | "lo" | +| LT | "lt" | +| LV | "lv" | +| MS | "ms" | +| NL | "nl" | +| NO | "no" | +| PL | "pl" | +| PT | "pt" | +| PT_BR | "pt-br" | +| PT_PT | "pt-pt" | +| RO | "ro" | +| RU | "ru" | +| SK | "sk" | +| SL | "sl" | +| SR | "sr" | +| SV | "sv" | +| TL | "tl" | +| TH | "th" | +| TR | "tr" | +| UK | "uk" | +| VI | "vi" | +| XA | "xa" | +| XB | "xb" | +| XS | "xs" | +| XT | "xt" | +| XU | "xu" | +| ZH | "zh" | +| ZH_CN | "zh-cn" | +| ZH_TW | "zh-tw" | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md new file mode 100644 index 0000000..3ba7440 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md @@ -0,0 +1,57 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | [**CodeEnum**](#CodeEnum) | The code of the payment option. | | +|**type** | [**TypeEnum**](#TypeEnum) | The type of the payment option. | | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| AMEX | "amex" | +| VISA | "visa" | +| MASTERCARD | "mastercard" | +| DINERS | "diners" | +| JCB | "jcb" | +| MAESTRO | "maestro" | +| DISCOVER | "discover" | +| BANCONTACT | "bancontact" | +| CASHONLY | "cashonly" | +| BANKCARD | "bankcard" | +| CARTASI | "cartasi" | +| ARGENCARD | "argencard" | +| CABAL | "cabal" | +| REDCOMPRA | "redcompra" | +| OTHER | "other" | +| GREATWALL | "greatwall" | +| DRAGONPAY | "dragonpay" | +| EFTPOS | "eftpos" | +| HIPERCARD | "hipercard" | +| UNIONPAYDEBIT | "unionpaydebit" | +| ECCARD | "eccard" | +| BCCARD | "bccard" | +| MASTERCARDVIRTUAL | "mastercardvirtual" | +| MASTERCARDGOOGLE | "mastercardgoogle" | +| UNIONPAYCREDIT | "unionpaycredit" | + + + +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| CREDITCARD | "creditcard" | +| DEBITCARD | "debitcard" | +| PAYMENTSERVICE | "paymentservice" | +| CASH | "cash" | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.md new file mode 100644 index 0000000..b39351d --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.md @@ -0,0 +1,59 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**languageCode** | [**LanguageCodeEnum**](#LanguageCodeEnum) | The language of this message.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> | | +|**text** | **String** | The text of this message. | | + + + +## Enum: LanguageCodeEnum + +| Name | Value | +|---- | -----| +| AF | "af" | +| AR | "ar" | +| BG | "bg" | +| CA | "ca" | +| CS | "cs" | +| DA | "da" | +| DE | "de" | +| EL | "el" | +| EN | "en" | +| ES | "es" | +| ET | "et" | +| FI | "fi" | +| FR | "fr" | +| HE | "he" | +| HI | "hi" | +| HR | "hr" | +| HU | "hu" | +| ID | "id" | +| IS | "is" | +| IT | "it" | +| JA | "ja" | +| KO | "ko" | +| LT | "lt" | +| LV | "lv" | +| NL | "nl" | +| NO | "no" | +| PL | "pl" | +| PT | "pt" | +| RO | "ro" | +| RU | "ru" | +| SK | "sk" | +| SL | "sl" | +| SR | "sr" | +| SV | "sv" | +| TH | "th" | +| TR | "tr" | +| VI | "vi" | +| ZH | "zh" | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.md b/docs/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.md new file mode 100644 index 0000000..4888abe --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.md @@ -0,0 +1,17 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyRecordCreated + +Information regarding the creation of the property object. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**user** | **String** | The user that performed the edit action on the property. | | +|**tenant** | **String** | The tenant for which the user performed the edit action on the property. | | +|**role** | **String** | The role of the user that performed the edit action on the property. | [optional] | +|**time** | **BigDecimal** | The timestamp at which the edit action was performed. | | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyRecordModified.md b/docs/PropertiesPropertyIdGet200ResponsePropertyRecordModified.md new file mode 100644 index 0000000..5f683e7 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyRecordModified.md @@ -0,0 +1,17 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyRecordModified + +Information regarding the last modification of the property object. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**user** | **String** | The user that performed the edit action on the property. | | +|**tenant** | **String** | The tenant for which the user performed the edit action on the property. | | +|**role** | **String** | The role of the user that performed the edit action on the property. | [optional] | +|**time** | **BigDecimal** | The timestamp at which the edit action was performed. | | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.md new file mode 100644 index 0000000..aa879bd --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.md @@ -0,0 +1,671 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyServiceListInner + +An object describing the service, its pricing and its availability. + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**code** | [**CodeEnum**](#CodeEnum) | The code of this service<p>See also <a href=\"#servicecodes\">in the appendix</a>.</p> | | +|**price** | **BigDecimal** | The surcharge for this service. | | +|**exists** | **Boolean** | Whether this service is available. | | +|**included** | **Boolean** | Whether this service is complementary. | | +|**currencyCode** | [**CurrencyCodeEnum**](#CurrencyCodeEnum) | The currency of the surcharge for this service | | +|**featureList** | [**List<FeatureListEnum>**](#List<FeatureListEnum>) | A list of features. | | +|**typeList** | [**List<TypeListEnum>**](#List<TypeListEnum>) | A list of codes describing the available breakfast type.<p>See also <a href=\"#breakfasttype-codes\">in the appendix</a>.</p> | | +|**itemList** | [**List<ItemListEnum>**](#List<ItemListEnum>) | A list of codes describing the available breakfast items.<p>See also <a href=\"#breakfastitem-codes\">in the appendix</a>.</p> | | +|**operationTimeList** | [**List<PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner>**](PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.md) | A list of operation times, including start and end times, and the days of the week on which the operation is open. | | +|**name** | **String** | The name of this service. | | + + + +## Enum: CodeEnum + +| Name | Value | +|---- | -----| +| NUMBER_1 | new BigDecimal("1") | +| NUMBER_2 | new BigDecimal("2") | +| NUMBER_3 | new BigDecimal("3") | +| NUMBER_4 | new BigDecimal("4") | +| NUMBER_5 | new BigDecimal("5") | +| NUMBER_6 | new BigDecimal("6") | +| NUMBER_7 | new BigDecimal("7") | +| NUMBER_8 | new BigDecimal("8") | +| NUMBER_9 | new BigDecimal("9") | +| NUMBER_10 | new BigDecimal("10") | +| NUMBER_11 | new BigDecimal("11") | +| NUMBER_12 | new BigDecimal("12") | +| NUMBER_13 | new BigDecimal("13") | +| NUMBER_14 | new BigDecimal("14") | +| NUMBER_15 | new BigDecimal("15") | +| NUMBER_16 | new BigDecimal("16") | +| NUMBER_17 | new BigDecimal("17") | +| NUMBER_18 | new BigDecimal("18") | +| NUMBER_19 | new BigDecimal("19") | +| NUMBER_20 | new BigDecimal("20") | +| NUMBER_21 | new BigDecimal("21") | +| NUMBER_22 | new BigDecimal("22") | +| NUMBER_23 | new BigDecimal("23") | +| NUMBER_24 | new BigDecimal("24") | +| NUMBER_25 | new BigDecimal("25") | +| NUMBER_26 | new BigDecimal("26") | +| NUMBER_27 | new BigDecimal("27") | +| NUMBER_28 | new BigDecimal("28") | +| NUMBER_29 | new BigDecimal("29") | +| NUMBER_30 | new BigDecimal("30") | +| NUMBER_31 | new BigDecimal("31") | +| NUMBER_32 | new BigDecimal("32") | +| NUMBER_33 | new BigDecimal("33") | +| NUMBER_34 | new BigDecimal("34") | +| NUMBER_35 | new BigDecimal("35") | +| NUMBER_36 | new BigDecimal("36") | +| NUMBER_37 | new BigDecimal("37") | +| NUMBER_38 | new BigDecimal("38") | +| NUMBER_39 | new BigDecimal("39") | +| NUMBER_40 | new BigDecimal("40") | +| NUMBER_41 | new BigDecimal("41") | +| NUMBER_42 | new BigDecimal("42") | +| NUMBER_43 | new BigDecimal("43") | +| NUMBER_44 | new BigDecimal("44") | +| NUMBER_45 | new BigDecimal("45") | +| NUMBER_46 | new BigDecimal("46") | +| NUMBER_47 | new BigDecimal("47") | +| NUMBER_48 | new BigDecimal("48") | +| NUMBER_49 | new BigDecimal("49") | +| NUMBER_50 | new BigDecimal("50") | +| NUMBER_51 | new BigDecimal("51") | +| NUMBER_52 | new BigDecimal("52") | +| NUMBER_53 | new BigDecimal("53") | +| NUMBER_54 | new BigDecimal("54") | +| NUMBER_55 | new BigDecimal("55") | +| NUMBER_56 | new BigDecimal("56") | +| NUMBER_57 | new BigDecimal("57") | +| NUMBER_58 | new BigDecimal("58") | +| NUMBER_59 | new BigDecimal("59") | +| NUMBER_60 | new BigDecimal("60") | +| NUMBER_61 | new BigDecimal("61") | +| NUMBER_62 | new BigDecimal("62") | +| NUMBER_63 | new BigDecimal("63") | +| NUMBER_64 | new BigDecimal("64") | +| NUMBER_65 | new BigDecimal("65") | +| NUMBER_66 | new BigDecimal("66") | +| NUMBER_67 | new BigDecimal("67") | +| NUMBER_68 | new BigDecimal("68") | +| NUMBER_69 | new BigDecimal("69") | +| NUMBER_70 | new BigDecimal("70") | +| NUMBER_71 | new BigDecimal("71") | +| NUMBER_72 | new BigDecimal("72") | +| NUMBER_73 | new BigDecimal("73") | +| NUMBER_74 | new BigDecimal("74") | +| NUMBER_75 | new BigDecimal("75") | +| NUMBER_76 | new BigDecimal("76") | +| NUMBER_77 | new BigDecimal("77") | +| NUMBER_78 | new BigDecimal("78") | +| NUMBER_79 | new BigDecimal("79") | +| NUMBER_80 | new BigDecimal("80") | +| NUMBER_81 | new BigDecimal("81") | +| NUMBER_82 | new BigDecimal("82") | +| NUMBER_83 | new BigDecimal("83") | +| NUMBER_84 | new BigDecimal("84") | +| NUMBER_85 | new BigDecimal("85") | +| NUMBER_86 | new BigDecimal("86") | +| NUMBER_87 | new BigDecimal("87") | +| NUMBER_88 | new BigDecimal("88") | +| NUMBER_89 | new BigDecimal("89") | +| NUMBER_90 | new BigDecimal("90") | +| NUMBER_91 | new BigDecimal("91") | +| NUMBER_92 | new BigDecimal("92") | +| NUMBER_93 | new BigDecimal("93") | +| NUMBER_94 | new BigDecimal("94") | +| NUMBER_95 | new BigDecimal("95") | +| NUMBER_96 | new BigDecimal("96") | +| NUMBER_97 | new BigDecimal("97") | +| NUMBER_98 | new BigDecimal("98") | +| NUMBER_99 | new BigDecimal("99") | +| NUMBER_100 | new BigDecimal("100") | +| NUMBER_101 | new BigDecimal("101") | +| NUMBER_102 | new BigDecimal("102") | +| NUMBER_103 | new BigDecimal("103") | +| NUMBER_104 | new BigDecimal("104") | +| NUMBER_105 | new BigDecimal("105") | +| NUMBER_106 | new BigDecimal("106") | +| NUMBER_107 | new BigDecimal("107") | +| NUMBER_108 | new BigDecimal("108") | +| NUMBER_109 | new BigDecimal("109") | +| NUMBER_110 | new BigDecimal("110") | +| NUMBER_111 | new BigDecimal("111") | +| NUMBER_112 | new BigDecimal("112") | +| NUMBER_113 | new BigDecimal("113") | +| NUMBER_114 | new BigDecimal("114") | +| NUMBER_115 | new BigDecimal("115") | +| NUMBER_116 | new BigDecimal("116") | +| NUMBER_117 | new BigDecimal("117") | +| NUMBER_118 | new BigDecimal("118") | +| NUMBER_119 | new BigDecimal("119") | +| NUMBER_120 | new BigDecimal("120") | +| NUMBER_121 | new BigDecimal("121") | +| NUMBER_122 | new BigDecimal("122") | +| NUMBER_123 | new BigDecimal("123") | +| NUMBER_124 | new BigDecimal("124") | +| NUMBER_125 | new BigDecimal("125") | +| NUMBER_126 | new BigDecimal("126") | +| NUMBER_127 | new BigDecimal("127") | +| NUMBER_128 | new BigDecimal("128") | +| NUMBER_129 | new BigDecimal("129") | +| NUMBER_130 | new BigDecimal("130") | +| NUMBER_131 | new BigDecimal("131") | +| NUMBER_132 | new BigDecimal("132") | +| NUMBER_133 | new BigDecimal("133") | +| NUMBER_134 | new BigDecimal("134") | +| NUMBER_135 | new BigDecimal("135") | +| NUMBER_136 | new BigDecimal("136") | +| NUMBER_137 | new BigDecimal("137") | +| NUMBER_138 | new BigDecimal("138") | +| NUMBER_139 | new BigDecimal("139") | +| NUMBER_140 | new BigDecimal("140") | +| NUMBER_141 | new BigDecimal("141") | +| NUMBER_142 | new BigDecimal("142") | +| NUMBER_143 | new BigDecimal("143") | +| NUMBER_144 | new BigDecimal("144") | +| NUMBER_145 | new BigDecimal("145") | +| NUMBER_146 | new BigDecimal("146") | +| NUMBER_147 | new BigDecimal("147") | +| NUMBER_148 | new BigDecimal("148") | +| NUMBER_149 | new BigDecimal("149") | +| NUMBER_150 | new BigDecimal("150") | +| NUMBER_151 | new BigDecimal("151") | +| NUMBER_152 | new BigDecimal("152") | +| NUMBER_153 | new BigDecimal("153") | +| NUMBER_154 | new BigDecimal("154") | +| NUMBER_155 | new BigDecimal("155") | +| NUMBER_156 | new BigDecimal("156") | +| NUMBER_157 | new BigDecimal("157") | +| NUMBER_158 | new BigDecimal("158") | +| NUMBER_159 | new BigDecimal("159") | +| NUMBER_160 | new BigDecimal("160") | +| NUMBER_161 | new BigDecimal("161") | +| NUMBER_162 | new BigDecimal("162") | +| NUMBER_163 | new BigDecimal("163") | +| NUMBER_164 | new BigDecimal("164") | +| NUMBER_165 | new BigDecimal("165") | +| NUMBER_166 | new BigDecimal("166") | +| NUMBER_167 | new BigDecimal("167") | +| NUMBER_168 | new BigDecimal("168") | +| NUMBER_169 | new BigDecimal("169") | +| NUMBER_170 | new BigDecimal("170") | +| NUMBER_171 | new BigDecimal("171") | +| NUMBER_172 | new BigDecimal("172") | +| NUMBER_173 | new BigDecimal("173") | +| NUMBER_174 | new BigDecimal("174") | +| NUMBER_175 | new BigDecimal("175") | +| NUMBER_176 | new BigDecimal("176") | +| NUMBER_177 | new BigDecimal("177") | +| NUMBER_178 | new BigDecimal("178") | +| NUMBER_179 | new BigDecimal("179") | +| NUMBER_180 | new BigDecimal("180") | +| NUMBER_181 | new BigDecimal("181") | +| NUMBER_182 | new BigDecimal("182") | +| NUMBER_183 | new BigDecimal("183") | +| NUMBER_184 | new BigDecimal("184") | +| NUMBER_185 | new BigDecimal("185") | +| NUMBER_186 | new BigDecimal("186") | +| NUMBER_187 | new BigDecimal("187") | +| NUMBER_188 | new BigDecimal("188") | +| NUMBER_189 | new BigDecimal("189") | +| NUMBER_190 | new BigDecimal("190") | +| NUMBER_191 | new BigDecimal("191") | +| NUMBER_192 | new BigDecimal("192") | +| NUMBER_193 | new BigDecimal("193") | +| NUMBER_194 | new BigDecimal("194") | +| NUMBER_195 | new BigDecimal("195") | +| NUMBER_196 | new BigDecimal("196") | +| NUMBER_197 | new BigDecimal("197") | +| NUMBER_198 | new BigDecimal("198") | +| NUMBER_199 | new BigDecimal("199") | +| NUMBER_200 | new BigDecimal("200") | +| NUMBER_201 | new BigDecimal("201") | +| NUMBER_202 | new BigDecimal("202") | +| NUMBER_203 | new BigDecimal("203") | +| NUMBER_204 | new BigDecimal("204") | +| NUMBER_205 | new BigDecimal("205") | +| NUMBER_206 | new BigDecimal("206") | +| NUMBER_207 | new BigDecimal("207") | +| NUMBER_208 | new BigDecimal("208") | +| NUMBER_209 | new BigDecimal("209") | +| NUMBER_210 | new BigDecimal("210") | +| NUMBER_211 | new BigDecimal("211") | +| NUMBER_212 | new BigDecimal("212") | +| NUMBER_213 | new BigDecimal("213") | +| NUMBER_214 | new BigDecimal("214") | +| NUMBER_215 | new BigDecimal("215") | +| NUMBER_216 | new BigDecimal("216") | +| NUMBER_217 | new BigDecimal("217") | +| NUMBER_218 | new BigDecimal("218") | +| NUMBER_219 | new BigDecimal("219") | +| NUMBER_220 | new BigDecimal("220") | +| NUMBER_221 | new BigDecimal("221") | +| NUMBER_222 | new BigDecimal("222") | +| NUMBER_223 | new BigDecimal("223") | +| NUMBER_224 | new BigDecimal("224") | +| NUMBER_225 | new BigDecimal("225") | +| NUMBER_226 | new BigDecimal("226") | +| NUMBER_227 | new BigDecimal("227") | +| NUMBER_228 | new BigDecimal("228") | +| NUMBER_229 | new BigDecimal("229") | +| NUMBER_230 | new BigDecimal("230") | +| NUMBER_231 | new BigDecimal("231") | +| NUMBER_232 | new BigDecimal("232") | +| NUMBER_233 | new BigDecimal("233") | +| NUMBER_234 | new BigDecimal("234") | +| NUMBER_235 | new BigDecimal("235") | +| NUMBER_236 | new BigDecimal("236") | +| NUMBER_237 | new BigDecimal("237") | +| NUMBER_238 | new BigDecimal("238") | +| NUMBER_239 | new BigDecimal("239") | +| NUMBER_240 | new BigDecimal("240") | +| NUMBER_241 | new BigDecimal("241") | +| NUMBER_242 | new BigDecimal("242") | +| NUMBER_243 | new BigDecimal("243") | +| NUMBER_244 | new BigDecimal("244") | +| NUMBER_245 | new BigDecimal("245") | +| NUMBER_246 | new BigDecimal("246") | +| NUMBER_247 | new BigDecimal("247") | +| NUMBER_248 | new BigDecimal("248") | +| NUMBER_249 | new BigDecimal("249") | +| NUMBER_250 | new BigDecimal("250") | +| NUMBER_251 | new BigDecimal("251") | +| NUMBER_252 | new BigDecimal("252") | +| NUMBER_253 | new BigDecimal("253") | +| NUMBER_254 | new BigDecimal("254") | +| NUMBER_255 | new BigDecimal("255") | +| NUMBER_256 | new BigDecimal("256") | +| NUMBER_257 | new BigDecimal("257") | +| NUMBER_258 | new BigDecimal("258") | +| NUMBER_259 | new BigDecimal("259") | +| NUMBER_260 | new BigDecimal("260") | +| NUMBER_261 | new BigDecimal("261") | +| NUMBER_262 | new BigDecimal("262") | +| NUMBER_263 | new BigDecimal("263") | +| NUMBER_264 | new BigDecimal("264") | +| NUMBER_265 | new BigDecimal("265") | +| NUMBER_266 | new BigDecimal("266") | +| NUMBER_267 | new BigDecimal("267") | +| NUMBER_268 | new BigDecimal("268") | +| NUMBER_269 | new BigDecimal("269") | +| NUMBER_270 | new BigDecimal("270") | +| NUMBER_271 | new BigDecimal("271") | +| NUMBER_272 | new BigDecimal("272") | +| NUMBER_273 | new BigDecimal("273") | +| NUMBER_274 | new BigDecimal("274") | +| NUMBER_275 | new BigDecimal("275") | +| NUMBER_276 | new BigDecimal("276") | +| NUMBER_277 | new BigDecimal("277") | +| NUMBER_278 | new BigDecimal("278") | +| NUMBER_279 | new BigDecimal("279") | +| NUMBER_280 | new BigDecimal("280") | +| NUMBER_281 | new BigDecimal("281") | +| NUMBER_282 | new BigDecimal("282") | +| NUMBER_283 | new BigDecimal("283") | +| NUMBER_284 | new BigDecimal("284") | +| NUMBER_285 | new BigDecimal("285") | +| NUMBER_286 | new BigDecimal("286") | +| NUMBER_287 | new BigDecimal("287") | +| NUMBER_288 | new BigDecimal("288") | +| NUMBER_289 | new BigDecimal("289") | +| NUMBER_290 | new BigDecimal("290") | +| NUMBER_291 | new BigDecimal("291") | +| NUMBER_292 | new BigDecimal("292") | +| NUMBER_293 | new BigDecimal("293") | +| NUMBER_294 | new BigDecimal("294") | +| NUMBER_295 | new BigDecimal("295") | +| NUMBER_296 | new BigDecimal("296") | +| NUMBER_297 | new BigDecimal("297") | +| NUMBER_298 | new BigDecimal("298") | +| NUMBER_299 | new BigDecimal("299") | +| NUMBER_300 | new BigDecimal("300") | +| NUMBER_301 | new BigDecimal("301") | +| NUMBER_302 | new BigDecimal("302") | +| NUMBER_303 | new BigDecimal("303") | +| NUMBER_304 | new BigDecimal("304") | +| NUMBER_305 | new BigDecimal("305") | +| NUMBER_306 | new BigDecimal("306") | +| NUMBER_307 | new BigDecimal("307") | +| NUMBER_308 | new BigDecimal("308") | +| NUMBER_309 | new BigDecimal("309") | +| NUMBER_310 | new BigDecimal("310") | +| NUMBER_311 | new BigDecimal("311") | +| NUMBER_312 | new BigDecimal("312") | +| NUMBER_313 | new BigDecimal("313") | +| NUMBER_314 | new BigDecimal("314") | +| NUMBER_315 | new BigDecimal("315") | +| NUMBER_316 | new BigDecimal("316") | +| NUMBER_317 | new BigDecimal("317") | +| NUMBER_318 | new BigDecimal("318") | +| NUMBER_319 | new BigDecimal("319") | +| NUMBER_320 | new BigDecimal("320") | +| NUMBER_321 | new BigDecimal("321") | +| NUMBER_322 | new BigDecimal("322") | +| NUMBER_323 | new BigDecimal("323") | +| NUMBER_324 | new BigDecimal("324") | +| NUMBER_325 | new BigDecimal("325") | +| NUMBER_326 | new BigDecimal("326") | +| NUMBER_327 | new BigDecimal("327") | +| NUMBER_328 | new BigDecimal("328") | +| NUMBER_329 | new BigDecimal("329") | +| NUMBER_331 | new BigDecimal("331") | +| NUMBER_332 | new BigDecimal("332") | +| NUMBER_333 | new BigDecimal("333") | +| NUMBER_334 | new BigDecimal("334") | +| NUMBER_335 | new BigDecimal("335") | +| NUMBER_336 | new BigDecimal("336") | +| NUMBER_337 | new BigDecimal("337") | +| NUMBER_338 | new BigDecimal("338") | +| NUMBER_339 | new BigDecimal("339") | +| NUMBER_340 | new BigDecimal("340") | +| NUMBER_341 | new BigDecimal("341") | +| NUMBER_342 | new BigDecimal("342") | +| NUMBER_343 | new BigDecimal("343") | +| NUMBER_344 | new BigDecimal("344") | +| NUMBER_345 | new BigDecimal("345") | +| NUMBER_348 | new BigDecimal("348") | +| NUMBER_349 | new BigDecimal("349") | +| NUMBER_350 | new BigDecimal("350") | +| NUMBER_351 | new BigDecimal("351") | +| NUMBER_5000 | new BigDecimal("5000") | +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | +| NUMBER_5009 | new BigDecimal("5009") | +| NUMBER_5010 | new BigDecimal("5010") | +| NUMBER_5011 | new BigDecimal("5011") | +| NUMBER_5012 | new BigDecimal("5012") | +| NUMBER_5013 | new BigDecimal("5013") | +| NUMBER_5014 | new BigDecimal("5014") | +| NUMBER_5015 | new BigDecimal("5015") | +| NUMBER_5016 | new BigDecimal("5016") | +| NUMBER_5017 | new BigDecimal("5017") | +| NUMBER_5018 | new BigDecimal("5018") | +| NUMBER_5020 | new BigDecimal("5020") | +| NUMBER_5021 | new BigDecimal("5021") | +| NUMBER_5022 | new BigDecimal("5022") | +| NUMBER_5023 | new BigDecimal("5023") | +| NUMBER_5024 | new BigDecimal("5024") | +| NUMBER_5025 | new BigDecimal("5025") | +| NUMBER_5026 | new BigDecimal("5026") | +| NUMBER_5027 | new BigDecimal("5027") | +| NUMBER_5028 | new BigDecimal("5028") | +| NUMBER_5029 | new BigDecimal("5029") | +| NUMBER_5030 | new BigDecimal("5030") | +| NUMBER_5031 | new BigDecimal("5031") | +| NUMBER_5032 | new BigDecimal("5032") | +| NUMBER_5033 | new BigDecimal("5033") | +| NUMBER_5034 | new BigDecimal("5034") | +| NUMBER_5035 | new BigDecimal("5035") | +| NUMBER_5036 | new BigDecimal("5036") | +| NUMBER_5037 | new BigDecimal("5037") | +| NUMBER_5039 | new BigDecimal("5039") | +| NUMBER_5040 | new BigDecimal("5040") | +| NUMBER_5041 | new BigDecimal("5041") | +| NUMBER_5042 | new BigDecimal("5042") | +| NUMBER_5043 | new BigDecimal("5043") | +| NUMBER_5044 | new BigDecimal("5044") | +| NUMBER_5045 | new BigDecimal("5045") | +| NUMBER_5046 | new BigDecimal("5046") | +| NUMBER_5047 | new BigDecimal("5047") | +| NUMBER_5048 | new BigDecimal("5048") | +| NUMBER_5049 | new BigDecimal("5049") | +| NUMBER_5050 | new BigDecimal("5050") | +| NUMBER_5051 | new BigDecimal("5051") | +| NUMBER_5052 | new BigDecimal("5052") | +| NUMBER_5053 | new BigDecimal("5053") | +| NUMBER_5054 | new BigDecimal("5054") | +| NUMBER_5055 | new BigDecimal("5055") | +| NUMBER_5056 | new BigDecimal("5056") | +| NUMBER_5057 | new BigDecimal("5057") | +| NUMBER_5058 | new BigDecimal("5058") | +| NUMBER_5059 | new BigDecimal("5059") | +| NUMBER_5060 | new BigDecimal("5060") | +| NUMBER_5061 | new BigDecimal("5061") | +| NUMBER_5062 | new BigDecimal("5062") | +| NUMBER_5063 | new BigDecimal("5063") | +| NUMBER_5064 | new BigDecimal("5064") | +| NUMBER_5065 | new BigDecimal("5065") | +| NUMBER_5066 | new BigDecimal("5066") | +| NUMBER_5067 | new BigDecimal("5067") | +| NUMBER_5068 | new BigDecimal("5068") | +| NUMBER_5069 | new BigDecimal("5069") | +| NUMBER_5070 | new BigDecimal("5070") | +| NUMBER_5071 | new BigDecimal("5071") | +| NUMBER_5072 | new BigDecimal("5072") | +| NUMBER_5073 | new BigDecimal("5073") | +| NUMBER_5074 | new BigDecimal("5074") | +| NUMBER_5075 | new BigDecimal("5075") | +| NUMBER_5076 | new BigDecimal("5076") | +| NUMBER_5077 | new BigDecimal("5077") | +| NUMBER_5078 | new BigDecimal("5078") | +| NUMBER_5079 | new BigDecimal("5079") | +| NUMBER_5080 | new BigDecimal("5080") | +| NUMBER_5081 | new BigDecimal("5081") | +| NUMBER_5082 | new BigDecimal("5082") | +| NUMBER_5083 | new BigDecimal("5083") | +| NUMBER_5084 | new BigDecimal("5084") | +| NUMBER_5085 | new BigDecimal("5085") | +| NUMBER_5086 | new BigDecimal("5086") | +| NUMBER_5087 | new BigDecimal("5087") | +| NUMBER_5088 | new BigDecimal("5088") | +| NUMBER_5089 | new BigDecimal("5089") | +| NUMBER_5090 | new BigDecimal("5090") | +| NUMBER_5091 | new BigDecimal("5091") | +| NUMBER_5092 | new BigDecimal("5092") | +| NUMBER_5093 | new BigDecimal("5093") | +| NUMBER_5094 | new BigDecimal("5094") | +| NUMBER_5095 | new BigDecimal("5095") | +| NUMBER_5096 | new BigDecimal("5096") | +| NUMBER_5097 | new BigDecimal("5097") | +| NUMBER_5098 | new BigDecimal("5098") | +| NUMBER_5099 | new BigDecimal("5099") | +| NUMBER_5100 | new BigDecimal("5100") | +| NUMBER_5101 | new BigDecimal("5101") | +| NUMBER_5102 | new BigDecimal("5102") | +| NUMBER_5103 | new BigDecimal("5103") | +| NUMBER_5104 | new BigDecimal("5104") | +| NUMBER_5105 | new BigDecimal("5105") | +| NUMBER_5106 | new BigDecimal("5106") | +| NUMBER_5107 | new BigDecimal("5107") | +| NUMBER_5108 | new BigDecimal("5108") | +| NUMBER_5109 | new BigDecimal("5109") | +| NUMBER_5110 | new BigDecimal("5110") | +| NUMBER_5111 | new BigDecimal("5111") | +| NUMBER_5112 | new BigDecimal("5112") | +| NUMBER_5113 | new BigDecimal("5113") | +| NUMBER_5114 | new BigDecimal("5114") | +| NUMBER_5115 | new BigDecimal("5115") | +| NUMBER_5116 | new BigDecimal("5116") | +| NUMBER_5117 | new BigDecimal("5117") | +| NUMBER_5118 | new BigDecimal("5118") | +| NUMBER_5119 | new BigDecimal("5119") | +| NUMBER_5120 | new BigDecimal("5120") | +| NUMBER_5121 | new BigDecimal("5121") | +| NUMBER_5122 | new BigDecimal("5122") | +| NUMBER_5123 | new BigDecimal("5123") | +| NUMBER_5124 | new BigDecimal("5124") | +| NUMBER_5125 | new BigDecimal("5125") | +| NUMBER_5126 | new BigDecimal("5126") | +| NUMBER_5127 | new BigDecimal("5127") | +| NUMBER_5128 | new BigDecimal("5128") | +| NUMBER_5129 | new BigDecimal("5129") | +| NUMBER_5130 | new BigDecimal("5130") | +| NUMBER_5131 | new BigDecimal("5131") | +| NUMBER_5132 | new BigDecimal("5132") | +| NUMBER_5133 | new BigDecimal("5133") | +| NUMBER_5134 | new BigDecimal("5134") | +| NUMBER_5135 | new BigDecimal("5135") | +| NUMBER_5136 | new BigDecimal("5136") | +| NUMBER_5137 | new BigDecimal("5137") | +| NUMBER_5138 | new BigDecimal("5138") | +| NUMBER_5139 | new BigDecimal("5139") | +| NUMBER_5140 | new BigDecimal("5140") | +| NUMBER_5141 | new BigDecimal("5141") | +| NUMBER_5142 | new BigDecimal("5142") | +| NUMBER_5143 | new BigDecimal("5143") | +| NUMBER_5144 | new BigDecimal("5144") | +| NUMBER_5145 | new BigDecimal("5145") | +| NUMBER_5146 | new BigDecimal("5146") | +| NUMBER_5147 | new BigDecimal("5147") | +| NUMBER_5148 | new BigDecimal("5148") | +| NUMBER_5149 | new BigDecimal("5149") | +| NUMBER_5150 | new BigDecimal("5150") | +| NUMBER_5151 | new BigDecimal("5151") | +| NUMBER_5152 | new BigDecimal("5152") | +| NUMBER_5153 | new BigDecimal("5153") | +| NUMBER_5154 | new BigDecimal("5154") | +| NUMBER_5156 | new BigDecimal("5156") | +| NUMBER_5157 | new BigDecimal("5157") | +| NUMBER_5158 | new BigDecimal("5158") | +| NUMBER_5159 | new BigDecimal("5159") | +| NUMBER_5160 | new BigDecimal("5160") | +| NUMBER_5161 | new BigDecimal("5161") | +| NUMBER_5162 | new BigDecimal("5162") | +| NUMBER_5163 | new BigDecimal("5163") | +| NUMBER_5164 | new BigDecimal("5164") | +| NUMBER_5165 | new BigDecimal("5165") | +| NUMBER_5166 | new BigDecimal("5166") | +| NUMBER_5167 | new BigDecimal("5167") | +| NUMBER_5168 | new BigDecimal("5168") | +| NUMBER_5169 | new BigDecimal("5169") | +| NUMBER_5170 | new BigDecimal("5170") | +| NUMBER_5171 | new BigDecimal("5171") | +| NUMBER_5172 | new BigDecimal("5172") | +| NUMBER_5173 | new BigDecimal("5173") | +| NUMBER_5174 | new BigDecimal("5174") | +| NUMBER_5175 | new BigDecimal("5175") | +| NUMBER_5176 | new BigDecimal("5176") | +| NUMBER_5177 | new BigDecimal("5177") | +| NUMBER_5178 | new BigDecimal("5178") | +| NUMBER_6000 | new BigDecimal("6000") | +| NUMBER_6001 | new BigDecimal("6001") | +| NUMBER_90001 | new BigDecimal("90001") | + + + +## Enum: CurrencyCodeEnum + +| Name | Value | +|---- | -----| +| AED | "AED" | +| ARS | "ARS" | +| AUD | "AUD" | +| AZN | "AZN" | +| BGN | "BGN" | +| BHD | "BHD" | +| BRL | "BRL" | +| CAD | "CAD" | +| CHF | "CHF" | +| CLP | "CLP" | +| CNY | "CNY" | +| COP | "COP" | +| CZK | "CZK" | +| DKK | "DKK" | +| EGP | "EGP" | +| EUR | "EUR" | +| FJD | "FJD" | +| GBP | "GBP" | +| GEL | "GEL" | +| HKD | "HKD" | +| HUF | "HUF" | +| IDR | "IDR" | +| ILS | "ILS" | +| INR | "INR" | +| JOD | "JOD" | +| JPY | "JPY" | +| KRW | "KRW" | +| KWD | "KWD" | +| KZT | "KZT" | +| MDL | "MDL" | +| MXN | "MXN" | +| MYR | "MYR" | +| NAD | "NAD" | +| NOK | "NOK" | +| NZD | "NZD" | +| OMR | "OMR" | +| PLN | "PLN" | +| QAR | "QAR" | +| RON | "RON" | +| RUB | "RUB" | +| SAR | "SAR" | +| SEK | "SEK" | +| SGD | "SGD" | +| THB | "THB" | +| TRY | "TRY" | +| TWD | "TWD" | +| UAH | "UAH" | +| USD | "USD" | +| XOF | "XOF" | +| ZAR | "ZAR" | + + + +## Enum: List<FeatureListEnum> + +| Name | Value | +|---- | -----| +| A_LA_CARTE | "a_la_carte" | +| BUFFET | "buffet" | +| GUESTS_ONLY | "guests_only" | +| ACCEPTS_RESERVATIONS | "accepts_reservations" | +| OUTDOOR_SEATING | "outdoor_seating" | + + + +## Enum: List<TypeListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | +| NUMBER_5009 | new BigDecimal("5009") | +| NUMBER_5010 | new BigDecimal("5010") | +| NUMBER_5011 | new BigDecimal("5011") | +| NUMBER_5012 | new BigDecimal("5012") | + + + +## Enum: List<ItemListEnum> + +| Name | Value | +|---- | -----| +| NUMBER_5001 | new BigDecimal("5001") | +| NUMBER_5002 | new BigDecimal("5002") | +| NUMBER_5003 | new BigDecimal("5003") | +| NUMBER_5004 | new BigDecimal("5004") | +| NUMBER_5005 | new BigDecimal("5005") | +| NUMBER_5006 | new BigDecimal("5006") | +| NUMBER_5007 | new BigDecimal("5007") | +| NUMBER_5008 | new BigDecimal("5008") | +| NUMBER_5009 | new BigDecimal("5009") | +| NUMBER_5010 | new BigDecimal("5010") | +| NUMBER_5011 | new BigDecimal("5011") | +| NUMBER_5012 | new BigDecimal("5012") | +| NUMBER_5013 | new BigDecimal("5013") | +| NUMBER_5014 | new BigDecimal("5014") | +| NUMBER_5015 | new BigDecimal("5015") | +| NUMBER_5016 | new BigDecimal("5016") | +| NUMBER_5017 | new BigDecimal("5017") | +| NUMBER_5018 | new BigDecimal("5018") | +| NUMBER_5019 | new BigDecimal("5019") | + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.md new file mode 100644 index 0000000..4f82184 --- /dev/null +++ b/docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.md @@ -0,0 +1,21 @@ + + +# PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**start** | **BigDecimal** | The start time of operation in milliseconds. | | +|**end** | **BigDecimal** | The end time of operation in milliseconds. | | +|**monday** | **Boolean** | Indicates whether the operation is open on Monday. | | +|**tuesday** | **Boolean** | Indicates whether the operation is open on Tuesday. | | +|**wednesday** | **Boolean** | Indicates whether the operation is open on Wednesday. | | +|**thursday** | **Boolean** | Indicates whether the operation is open on Thursday. | | +|**friday** | **Boolean** | Indicates whether the operation is open on Friday. | | +|**saturday** | **Boolean** | Indicates whether the operation is open on Saturday. | | +|**sunday** | **Boolean** | Indicates whether the operation is open on Sunday. | | + + + diff --git a/pom.xml b/pom.xml index f032ad9..d0687a4 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ lodgea jar lodgea - 1.0.2 + https://github.com/openapitools/openapi-generator OpenAPI Java @@ -17,7 +17,7 @@ Unlicense - http://www.apache.org/licenses/LICENSE-2.0.html + http://unlicense.org repo diff --git a/src/main/java/com/lodgea/ApiCallback.java b/src/main/java/com/lodgea/ApiCallback.java index 4461dc6..dfe66b0 100644 --- a/src/main/java/com/lodgea/ApiCallback.java +++ b/src/main/java/com/lodgea/ApiCallback.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lodgea/ApiClient.java b/src/main/java/com/lodgea/ApiClient.java index 0107b63..ff5a942 100644 --- a/src/main/java/com/lodgea/ApiClient.java +++ b/src/main/java/com/lodgea/ApiClient.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -60,7 +60,7 @@ */ public class ApiClient { - private String basePath = "https://api.eu.lodgea.io"; + private String basePath = "https://api.eu.lodgea.io/v1"; private boolean debugging = false; private Map defaultHeaderMap = new HashMap(); private Map defaultCookieMap = new HashMap(); @@ -131,7 +131,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/1.0.2/java"); + setUserAgent("OpenAPI-Generator//java"); authentications = new HashMap(); } @@ -148,7 +148,7 @@ public String getBasePath() { /** * Set base path * - * @param basePath Base path of the URL (e.g https://api.eu.lodgea.io + * @param basePath Base path of the URL (e.g https://api.eu.lodgea.io/v1 * @return An instance of OkHttpClient */ public ApiClient setBasePath(String basePath) { diff --git a/src/main/java/com/lodgea/ApiException.java b/src/main/java/com/lodgea/ApiException.java index d4f08b2..246e455 100644 --- a/src/main/java/com/lodgea/ApiException.java +++ b/src/main/java/com/lodgea/ApiException.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-08T10:01:38.583514510Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/src/main/java/com/lodgea/ApiResponse.java b/src/main/java/com/lodgea/ApiResponse.java index 423d7ff..c1ab7a7 100644 --- a/src/main/java/com/lodgea/ApiResponse.java +++ b/src/main/java/com/lodgea/ApiResponse.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lodgea/Configuration.java b/src/main/java/com/lodgea/Configuration.java index 89f1ad6..004db86 100644 --- a/src/main/java/com/lodgea/Configuration.java +++ b/src/main/java/com/lodgea/Configuration.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package com.lodgea; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-08T10:01:38.583514510Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/src/main/java/com/lodgea/GzipRequestInterceptor.java b/src/main/java/com/lodgea/GzipRequestInterceptor.java index 79fcf07..6d21064 100644 --- a/src/main/java/com/lodgea/GzipRequestInterceptor.java +++ b/src/main/java/com/lodgea/GzipRequestInterceptor.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lodgea/JSON.java b/src/main/java/com/lodgea/JSON.java index f881248..f329ad5 100644 --- a/src/main/java/com/lodgea/JSON.java +++ b/src/main/java/com/lodgea/JSON.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -93,71 +93,53 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapter(OffsetDateTime.class, offsetDateTimeTypeAdapter); gsonBuilder.registerTypeAdapter(LocalDate.class, localDateTypeAdapter); gsonBuilder.registerTypeAdapter(byte[].class, byteArrayAdapter); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.AvailabilityGet.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.AvailabilitySearch.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.LocationSearch.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertyGet.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertyList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilityGetPost200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilityGetPost200ResponseRatePlanListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilityGetPost200ResponseRatePlanListInnerPricingListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilityGetPost200ResponseRatePlanListInnerPricingListInnerPriceList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilityGetPost200ResponseRoomTypeListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilitySearchPost200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilitySearchPost200ResponseListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilitySearchPost200ResponseListInnerAttractionListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilitySearchPost200ResponseListInnerAttractionListInnerDistance.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilitySearchPost200ResponseListInnerGeo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilitySearchPost200ResponseListInnerGeoLocation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilitySearchPost200ResponseListInnerLowestPrice.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1AvailabilitySearchPost200ResponseListInnerMediaListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1LocationSearchPost200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1LocationSearchPost200ResponseListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponseProductListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponseProductListInnerMealPlanListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponseProductListInnerPolicyInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponseProductListInnerPolicyInfoCancellationPolicyListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponseProductListInnerRatePlanListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponseProductListInnerRatePlanListInnerPricingListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponseProductListInnerRatePlanListInnerPricingListInnerPriceList.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponseProductListInnerRoomTypeListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponseProperty.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyAwardListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyCancellationGracePeriod.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyContactListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyContactListInnerAddressListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyFacilityInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerRoomAmenityListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerTagListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyGeo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyGeoDa.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyGeoDe.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyGeoDeLocation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyGeoEn.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyGeoNl.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyGuestInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyMediaListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyMediaListInnerTagListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyPolicyListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyPolicyListInnerPetsPolicy.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyPolicyListInnerTaxPolicyListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyPropertyInfo.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyPropertyInfoAcceptedPaymentListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyPropertyInfoCategoryListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyPropertyInfoLocation.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyPropertyInfoMessageListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyRecordCreated.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyRecordModified.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyServiceListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyTransaction.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyGetPost200ResponsePropertyTransactionExternalListInner.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyListPost200Response.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.V1PropertyListPost200ResponseListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.AvailabilitySearchPost200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.AvailabilitySearchPostRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.AvailablePropertiesInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.AvailablePropertiesInner1.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.AvailablePropertiesInner1AttractionListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.AvailablePropertiesInner1AttractionListInnerDistance.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.AvailablePropertiesInner1Geo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.AvailablePropertiesInner1GeoLocation.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.AvailablePropertiesInner1LowestPrice.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.AvailablePropertiesInner1MediaListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.LocationSearchPost200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.LocationSearchPost400Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.LocationSearchPost400ResponseValidationErrorsInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.LocationSearchPostRequest.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesGet200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesGet200ResponseListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdAvailabilityGet200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200Response.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponseProperty.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyAwardListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyContactListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyGuestInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyRecordCreated.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyRecordModified.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyServiceListInner.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.CustomTypeAdapterFactory()); gson = gsonBuilder.create(); } diff --git a/src/main/java/com/lodgea/Pair.java b/src/main/java/com/lodgea/Pair.java index b1a13eb..552bfbc 100644 --- a/src/main/java/com/lodgea/Pair.java +++ b/src/main/java/com/lodgea/Pair.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package com.lodgea; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-08T10:01:38.583514510Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/src/main/java/com/lodgea/ProgressRequestBody.java b/src/main/java/com/lodgea/ProgressRequestBody.java index 2d5a270..175273d 100644 --- a/src/main/java/com/lodgea/ProgressRequestBody.java +++ b/src/main/java/com/lodgea/ProgressRequestBody.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lodgea/ProgressResponseBody.java b/src/main/java/com/lodgea/ProgressResponseBody.java index 41a4761..6ef2c81 100644 --- a/src/main/java/com/lodgea/ProgressResponseBody.java +++ b/src/main/java/com/lodgea/ProgressResponseBody.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lodgea/StringUtil.java b/src/main/java/com/lodgea/StringUtil.java index 0e0743e..ca9375c 100644 --- a/src/main/java/com/lodgea/StringUtil.java +++ b/src/main/java/com/lodgea/StringUtil.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-08T10:01:38.583514510Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/src/main/java/com/lodgea/auth/ApiKeyAuth.java b/src/main/java/com/lodgea/auth/ApiKeyAuth.java index a384562..9bd12b2 100644 --- a/src/main/java/com/lodgea/auth/ApiKeyAuth.java +++ b/src/main/java/com/lodgea/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-08T10:01:38.583514510Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/src/main/java/com/lodgea/auth/Authentication.java b/src/main/java/com/lodgea/auth/Authentication.java index a6c7a95..083505e 100644 --- a/src/main/java/com/lodgea/auth/Authentication.java +++ b/src/main/java/com/lodgea/auth/Authentication.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lodgea/auth/HttpBasicAuth.java b/src/main/java/com/lodgea/auth/HttpBasicAuth.java index c8fa01c..07e5e88 100644 --- a/src/main/java/com/lodgea/auth/HttpBasicAuth.java +++ b/src/main/java/com/lodgea/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/src/main/java/com/lodgea/auth/HttpBearerAuth.java b/src/main/java/com/lodgea/auth/HttpBearerAuth.java index 4aa75b5..305de7e 100644 --- a/src/main/java/com/lodgea/auth/HttpBearerAuth.java +++ b/src/main/java/com/lodgea/auth/HttpBearerAuth.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-08T10:01:38.583514510Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/src/main/java/com/lodgea/controllers/DefaultApi.java b/src/main/java/com/lodgea/controllers/DefaultApi.java new file mode 100644 index 0000000..c0b3493 --- /dev/null +++ b/src/main/java/com/lodgea/controllers/DefaultApi.java @@ -0,0 +1,769 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.controllers; + +import com.lodgea.ApiCallback; +import com.lodgea.ApiClient; +import com.lodgea.ApiException; +import com.lodgea.ApiResponse; +import com.lodgea.Configuration; +import com.lodgea.Pair; +import com.lodgea.ProgressRequestBody; +import com.lodgea.ProgressResponseBody; + +import com.google.gson.reflect.TypeToken; + +import java.io.IOException; + + +import com.lodgea.model.AvailabilitySearchPost200Response; +import com.lodgea.model.AvailabilitySearchPostRequest; +import com.lodgea.model.LocationSearchPost200Response; +import com.lodgea.model.LocationSearchPost400Response; +import com.lodgea.model.LocationSearchPostRequest; +import com.lodgea.model.PropertiesGet200Response; +import com.lodgea.model.PropertiesPropertyIdAvailabilityGet200Response; +import com.lodgea.model.PropertiesPropertyIdGet200Response; + +import java.lang.reflect.Type; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.ws.rs.core.GenericType; + +public class DefaultApi { + private ApiClient localVarApiClient; + private int localHostIndex; + private String localCustomBaseUrl; + + public DefaultApi() { + this(Configuration.getDefaultApiClient()); + } + + public DefaultApi(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public ApiClient getApiClient() { + return localVarApiClient; + } + + public void setApiClient(ApiClient apiClient) { + this.localVarApiClient = apiClient; + } + + public int getHostIndex() { + return localHostIndex; + } + + public void setHostIndex(int hostIndex) { + this.localHostIndex = hostIndex; + } + + public String getCustomBaseUrl() { + return localCustomBaseUrl; + } + + public void setCustomBaseUrl(String customBaseUrl) { + this.localCustomBaseUrl = customBaseUrl; + } + + /** + * Build call for availabilitySearchPost + * @param availabilitySearchPostRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of available properties matching the given criteria is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public okhttp3.Call availabilitySearchPostCall(AvailabilitySearchPostRequest availabilitySearchPostRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = availabilitySearchPostRequest; + + // create path and map variables + String localVarPath = "/availability/search"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call availabilitySearchPostValidateBeforeCall(AvailabilitySearchPostRequest availabilitySearchPostRequest, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = availabilitySearchPostCall(availabilitySearchPostRequest, _callback); + return localVarCall; + + } + + /** + * Search for availability + * Get availability information based on search criteria. + * @param availabilitySearchPostRequest (optional) + * @return AvailabilitySearchPost200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of available properties matching the given criteria is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public AvailabilitySearchPost200Response availabilitySearchPost(AvailabilitySearchPostRequest availabilitySearchPostRequest) throws ApiException { + ApiResponse localVarResp = availabilitySearchPostWithHttpInfo(availabilitySearchPostRequest); + return localVarResp.getData(); + } + + /** + * Search for availability + * Get availability information based on search criteria. + * @param availabilitySearchPostRequest (optional) + * @return ApiResponse<AvailabilitySearchPost200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of available properties matching the given criteria is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public ApiResponse availabilitySearchPostWithHttpInfo(AvailabilitySearchPostRequest availabilitySearchPostRequest) throws ApiException { + okhttp3.Call localVarCall = availabilitySearchPostValidateBeforeCall(availabilitySearchPostRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Search for availability (asynchronously) + * Get availability information based on search criteria. + * @param availabilitySearchPostRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of available properties matching the given criteria is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public okhttp3.Call availabilitySearchPostAsync(AvailabilitySearchPostRequest availabilitySearchPostRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = availabilitySearchPostValidateBeforeCall(availabilitySearchPostRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for locationSearchPost + * @param locationSearchPostRequest (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of locations matching the given location search text is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public okhttp3.Call locationSearchPostCall(LocationSearchPostRequest locationSearchPostRequest, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = locationSearchPostRequest; + + // create path and map variables + String localVarPath = "/location/search"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + "application/json" + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "POST", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call locationSearchPostValidateBeforeCall(LocationSearchPostRequest locationSearchPostRequest, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = locationSearchPostCall(locationSearchPostRequest, _callback); + return localVarCall; + + } + + /** + * Search for location + * Get a list of locations and their lowest available rate related to a given keyword. + * @param locationSearchPostRequest (optional) + * @return LocationSearchPost200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of locations matching the given location search text is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public LocationSearchPost200Response locationSearchPost(LocationSearchPostRequest locationSearchPostRequest) throws ApiException { + ApiResponse localVarResp = locationSearchPostWithHttpInfo(locationSearchPostRequest); + return localVarResp.getData(); + } + + /** + * Search for location + * Get a list of locations and their lowest available rate related to a given keyword. + * @param locationSearchPostRequest (optional) + * @return ApiResponse<LocationSearchPost200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of locations matching the given location search text is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public ApiResponse locationSearchPostWithHttpInfo(LocationSearchPostRequest locationSearchPostRequest) throws ApiException { + okhttp3.Call localVarCall = locationSearchPostValidateBeforeCall(locationSearchPostRequest, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Search for location (asynchronously) + * Get a list of locations and their lowest available rate related to a given keyword. + * @param locationSearchPostRequest (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of locations matching the given location search text is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public okhttp3.Call locationSearchPostAsync(LocationSearchPostRequest locationSearchPostRequest, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = locationSearchPostValidateBeforeCall(locationSearchPostRequest, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for propertiesGet + * @param keyword (optional) + * @param pageToken (optional) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of properties matching the given keyword is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public okhttp3.Call propertiesGetCall(String keyword, String pageToken, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/properties"; + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (keyword != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("keyword", keyword)); + } + + if (pageToken != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("pageToken", pageToken)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call propertiesGetValidateBeforeCall(String keyword, String pageToken, final ApiCallback _callback) throws ApiException { + + + okhttp3.Call localVarCall = propertiesGetCall(keyword, pageToken, _callback); + return localVarCall; + + } + + /** + * List (filtered) properties + * List properties, optionally filtered by a keyword. + * @param keyword (optional) + * @param pageToken (optional) + * @return PropertiesGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of properties matching the given keyword is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public PropertiesGet200Response propertiesGet(String keyword, String pageToken) throws ApiException { + ApiResponse localVarResp = propertiesGetWithHttpInfo(keyword, pageToken); + return localVarResp.getData(); + } + + /** + * List (filtered) properties + * List properties, optionally filtered by a keyword. + * @param keyword (optional) + * @param pageToken (optional) + * @return ApiResponse<PropertiesGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of properties matching the given keyword is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public ApiResponse propertiesGetWithHttpInfo(String keyword, String pageToken) throws ApiException { + okhttp3.Call localVarCall = propertiesGetValidateBeforeCall(keyword, pageToken, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * List (filtered) properties (asynchronously) + * List properties, optionally filtered by a keyword. + * @param keyword (optional) + * @param pageToken (optional) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of properties matching the given keyword is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public okhttp3.Call propertiesGetAsync(String keyword, String pageToken, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = propertiesGetValidateBeforeCall(keyword, pageToken, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for propertiesPropertyIdAvailabilityGet + * @param propertyId (required) + * @param currencyCode (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of properties matching the given keyword is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public okhttp3.Call propertiesPropertyIdAvailabilityGetCall(String propertyId, String currencyCode, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/properties/{propertyId}/availability" + .replaceAll("\\{" + "propertyId" + "\\}", localVarApiClient.escapeString(propertyId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + if (currencyCode != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("currencyCode", currencyCode)); + } + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call propertiesPropertyIdAvailabilityGetValidateBeforeCall(String propertyId, String currencyCode, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'propertyId' is set + if (propertyId == null) { + throw new ApiException("Missing the required parameter 'propertyId' when calling propertiesPropertyIdAvailabilityGet(Async)"); + } + + // verify the required parameter 'currencyCode' is set + if (currencyCode == null) { + throw new ApiException("Missing the required parameter 'currencyCode' when calling propertiesPropertyIdAvailabilityGet(Async)"); + } + + + okhttp3.Call localVarCall = propertiesPropertyIdAvailabilityGetCall(propertyId, currencyCode, _callback); + return localVarCall; + + } + + /** + * Get a properties availability + * Get detailed availability information for a specific property. + * @param propertyId (required) + * @param currencyCode (required) + * @return PropertiesPropertyIdAvailabilityGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of properties matching the given keyword is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public PropertiesPropertyIdAvailabilityGet200Response propertiesPropertyIdAvailabilityGet(String propertyId, String currencyCode) throws ApiException { + ApiResponse localVarResp = propertiesPropertyIdAvailabilityGetWithHttpInfo(propertyId, currencyCode); + return localVarResp.getData(); + } + + /** + * Get a properties availability + * Get detailed availability information for a specific property. + * @param propertyId (required) + * @param currencyCode (required) + * @return ApiResponse<PropertiesPropertyIdAvailabilityGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of properties matching the given keyword is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public ApiResponse propertiesPropertyIdAvailabilityGetWithHttpInfo(String propertyId, String currencyCode) throws ApiException { + okhttp3.Call localVarCall = propertiesPropertyIdAvailabilityGetValidateBeforeCall(propertyId, currencyCode, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get a properties availability (asynchronously) + * Get detailed availability information for a specific property. + * @param propertyId (required) + * @param currencyCode (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + +
Status Code Description Response Headers
200 Successful, a list of properties matching the given keyword is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
+ */ + public okhttp3.Call propertiesPropertyIdAvailabilityGetAsync(String propertyId, String currencyCode, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = propertiesPropertyIdAvailabilityGetValidateBeforeCall(propertyId, currencyCode, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } + /** + * Build call for propertiesPropertyIdGet + * @param propertyId (required) + * @param _callback Callback for upload/download progress + * @return Call to execute + * @throws ApiException If fail to serialize the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Successful, property found, the whole property object is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
404 The requested resource was not found -
+ */ + public okhttp3.Call propertiesPropertyIdGetCall(String propertyId, final ApiCallback _callback) throws ApiException { + String basePath = null; + // Operation Servers + String[] localBasePaths = new String[] { }; + + // Determine Base Path to Use + if (localCustomBaseUrl != null){ + basePath = localCustomBaseUrl; + } else if ( localBasePaths.length > 0 ) { + basePath = localBasePaths[localHostIndex]; + } else { + basePath = null; + } + + Object localVarPostBody = null; + + // create path and map variables + String localVarPath = "/properties/{propertyId}" + .replaceAll("\\{" + "propertyId" + "\\}", localVarApiClient.escapeString(propertyId.toString())); + + List localVarQueryParams = new ArrayList(); + List localVarCollectionQueryParams = new ArrayList(); + Map localVarHeaderParams = new HashMap(); + Map localVarCookieParams = new HashMap(); + Map localVarFormParams = new HashMap(); + + final String[] localVarAccepts = { + "application/json" + }; + final String localVarAccept = localVarApiClient.selectHeaderAccept(localVarAccepts); + if (localVarAccept != null) { + localVarHeaderParams.put("Accept", localVarAccept); + } + + final String[] localVarContentTypes = { + + }; + final String localVarContentType = localVarApiClient.selectHeaderContentType(localVarContentTypes); + if (localVarContentType != null) { + localVarHeaderParams.put("Content-Type", localVarContentType); + } + + String[] localVarAuthNames = new String[] { "ApiKeyAuth" }; + return localVarApiClient.buildCall(basePath, localVarPath, "GET", localVarQueryParams, localVarCollectionQueryParams, localVarPostBody, localVarHeaderParams, localVarCookieParams, localVarFormParams, localVarAuthNames, _callback); + } + + @SuppressWarnings("rawtypes") + private okhttp3.Call propertiesPropertyIdGetValidateBeforeCall(String propertyId, final ApiCallback _callback) throws ApiException { + + // verify the required parameter 'propertyId' is set + if (propertyId == null) { + throw new ApiException("Missing the required parameter 'propertyId' when calling propertiesPropertyIdGet(Async)"); + } + + + okhttp3.Call localVarCall = propertiesPropertyIdGetCall(propertyId, _callback); + return localVarCall; + + } + + /** + * Get a properties details + * Get all information about a specific property by its ID. + * @param propertyId (required) + * @return PropertiesPropertyIdGet200Response + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Successful, property found, the whole property object is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
404 The requested resource was not found -
+ */ + public PropertiesPropertyIdGet200Response propertiesPropertyIdGet(String propertyId) throws ApiException { + ApiResponse localVarResp = propertiesPropertyIdGetWithHttpInfo(propertyId); + return localVarResp.getData(); + } + + /** + * Get a properties details + * Get all information about a specific property by its ID. + * @param propertyId (required) + * @return ApiResponse<PropertiesPropertyIdGet200Response> + * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Successful, property found, the whole property object is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
404 The requested resource was not found -
+ */ + public ApiResponse propertiesPropertyIdGetWithHttpInfo(String propertyId) throws ApiException { + okhttp3.Call localVarCall = propertiesPropertyIdGetValidateBeforeCall(propertyId, null); + Type localVarReturnType = new TypeToken(){}.getType(); + return localVarApiClient.execute(localVarCall, localVarReturnType); + } + + /** + * Get a properties details (asynchronously) + * Get all information about a specific property by its ID. + * @param propertyId (required) + * @param _callback The callback to be executed when the API call finishes + * @return The request call + * @throws ApiException If fail to process the API call, e.g. serializing the request body object + * @http.response.details + + + + + + +
Status Code Description Response Headers
200 Successful, property found, the whole property object is returned. -
400 We validate all calls to our API in a strict manner using Zod. In case of any validation errors, we send back a 400 response with a list of all validation errors. For more info see https://github.com/colinhacks/zod/blob/master/ERROR_HANDLING.md. -
403 Unauthorized, the api key in the \"apiKey\" header field is invalid. -
404 The requested resource was not found -
+ */ + public okhttp3.Call propertiesPropertyIdGetAsync(String propertyId, final ApiCallback _callback) throws ApiException { + + okhttp3.Call localVarCall = propertiesPropertyIdGetValidateBeforeCall(propertyId, _callback); + Type localVarReturnType = new TypeToken(){}.getType(); + localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); + return localVarCall; + } +} diff --git a/src/main/java/com/lodgea/model/AbstractOpenApiSchema.java b/src/main/java/com/lodgea/model/AbstractOpenApiSchema.java index b390270..6426347 100644 --- a/src/main/java/com/lodgea/model/AbstractOpenApiSchema.java +++ b/src/main/java/com/lodgea/model/AbstractOpenApiSchema.java @@ -2,7 +2,7 @@ * lodgea-java * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.0.2 + * The version of the OpenAPI document: 1.1.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-08T10:01:38.583514510Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/src/main/java/com/lodgea/model/AvailabilitySearchPost200Response.java b/src/main/java/com/lodgea/model/AvailabilitySearchPost200Response.java new file mode 100644 index 0000000..ac6803c --- /dev/null +++ b/src/main/java/com/lodgea/model/AvailabilitySearchPost200Response.java @@ -0,0 +1,387 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * AvailabilitySearchPost200Response + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class AvailabilitySearchPost200Response { + /** + * The language code of the language in which the descriptive texts for each found property are returned.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(LanguageCodeEnum.Adapter.class) + public enum LanguageCodeEnum { + AF("af"), + + AR("ar"), + + BG("bg"), + + CA("ca"), + + CS("cs"), + + DA("da"), + + DE("de"), + + EL("el"), + + EN("en"), + + ES("es"), + + ET("et"), + + FI("fi"), + + FR("fr"), + + HE("he"), + + HI("hi"), + + HR("hr"), + + HU("hu"), + + ID("id"), + + IS("is"), + + IT("it"), + + JA("ja"), + + KO("ko"), + + LT("lt"), + + LV("lv"), + + NL("nl"), + + NO("no"), + + PL("pl"), + + PT("pt"), + + RO("ro"), + + RU("ru"), + + SK("sk"), + + SL("sl"), + + SR("sr"), + + SV("sv"), + + TH("th"), + + TR("tr"), + + VI("vi"), + + ZH("zh"); + + private String value; + + LanguageCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LanguageCodeEnum fromValue(String value) { + for (LanguageCodeEnum b : LanguageCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LanguageCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LanguageCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LanguageCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_LANGUAGE_CODE = "languageCode"; + @SerializedName(SERIALIZED_NAME_LANGUAGE_CODE) + private LanguageCodeEnum languageCode; + + public static final String SERIALIZED_NAME_LIST = "list"; + @SerializedName(SERIALIZED_NAME_LIST) + private List _list = new ArrayList<>(); + + public AvailabilitySearchPost200Response() { + } + + public AvailabilitySearchPost200Response languageCode(LanguageCodeEnum languageCode) { + + this.languageCode = languageCode; + return this; + } + + /** + * The language code of the language in which the descriptive texts for each found property are returned.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + * @return languageCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The language code of the language in which the descriptive texts for each found property are returned.

Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.

See also in the appendix.

") + + public LanguageCodeEnum getLanguageCode() { + return languageCode; + } + + + public void setLanguageCode(LanguageCodeEnum languageCode) { + this.languageCode = languageCode; + } + + + public AvailabilitySearchPost200Response _list(List _list) { + + this._list = _list; + return this; + } + + public AvailabilitySearchPost200Response addListItem(AvailablePropertiesInner1 _listItem) { + this._list.add(_listItem); + return this; + } + + /** + * A list of available properties matching the given criteria. + * @return _list + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of available properties matching the given criteria.") + + public List getList() { + return _list; + } + + + public void setList(List _list) { + this._list = _list; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AvailabilitySearchPost200Response availabilitySearchPost200Response = (AvailabilitySearchPost200Response) o; + return Objects.equals(this.languageCode, availabilitySearchPost200Response.languageCode) && + Objects.equals(this._list, availabilitySearchPost200Response._list); + } + + @Override + public int hashCode() { + return Objects.hash(languageCode, _list); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AvailabilitySearchPost200Response {\n"); + sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n"); + sb.append(" _list: ").append(toIndentedString(_list)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("languageCode"); + openapiFields.add("list"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("languageCode"); + openapiRequiredFields.add("list"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AvailabilitySearchPost200Response + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AvailabilitySearchPost200Response.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AvailabilitySearchPost200Response is not found in the empty JSON string", AvailabilitySearchPost200Response.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AvailabilitySearchPost200Response.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AvailabilitySearchPost200Response` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AvailabilitySearchPost200Response.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("languageCode") != null && !jsonObj.get("languageCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `languageCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("languageCode").toString())); + } + JsonArray jsonArray_list = jsonObj.getAsJsonArray("list"); + if (jsonArray_list != null) { + // ensure the json data is an array + if (!jsonObj.get("list").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `list` to be an array in the JSON string but got `%s`", jsonObj.get("list").toString())); + } + + // validate the optional field `list` (array) + for (int i = 0; i < jsonArray_list.size(); i++) { + AvailablePropertiesInner1.validateJsonObject(jsonArray_list.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AvailabilitySearchPost200Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AvailabilitySearchPost200Response' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AvailabilitySearchPost200Response.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AvailabilitySearchPost200Response value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AvailabilitySearchPost200Response read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AvailabilitySearchPost200Response given an JSON string + * + * @param jsonString JSON string + * @return An instance of AvailabilitySearchPost200Response + * @throws IOException if the JSON string is invalid with respect to AvailabilitySearchPost200Response + */ + public static AvailabilitySearchPost200Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AvailabilitySearchPost200Response.class); + } + + /** + * Convert an instance of AvailabilitySearchPost200Response to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/AvailabilitySearchPostRequest.java b/src/main/java/com/lodgea/model/AvailabilitySearchPostRequest.java new file mode 100644 index 0000000..b059473 --- /dev/null +++ b/src/main/java/com/lodgea/model/AvailabilitySearchPostRequest.java @@ -0,0 +1,3716 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * AvailabilitySearchPostRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class AvailabilitySearchPostRequest { + public static final String SERIALIZED_NAME_ADULT_COUNT = "adultCount"; + @SerializedName(SERIALIZED_NAME_ADULT_COUNT) + private Integer adultCount = 2; + + public static final String SERIALIZED_NAME_CHILD_COUNT = "childCount"; + @SerializedName(SERIALIZED_NAME_CHILD_COUNT) + private Integer childCount; + + public static final String SERIALIZED_NAME_CHILD_AGE_LIST = "childAgeList"; + @SerializedName(SERIALIZED_NAME_CHILD_AGE_LIST) + private List childAgeList = null; + + /** + * The currency code of the currency in which the lowest price for each found location should be returned.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> + */ + @JsonAdapter(CurrencyCodeEnum.Adapter.class) + public enum CurrencyCodeEnum { + AED("AED"), + + ARS("ARS"), + + AUD("AUD"), + + AZN("AZN"), + + BGN("BGN"), + + BHD("BHD"), + + BRL("BRL"), + + CAD("CAD"), + + CHF("CHF"), + + CLP("CLP"), + + CNY("CNY"), + + COP("COP"), + + CZK("CZK"), + + DKK("DKK"), + + EGP("EGP"), + + EUR("EUR"), + + FJD("FJD"), + + GBP("GBP"), + + GEL("GEL"), + + HKD("HKD"), + + HUF("HUF"), + + IDR("IDR"), + + ILS("ILS"), + + INR("INR"), + + JOD("JOD"), + + JPY("JPY"), + + KRW("KRW"), + + KWD("KWD"), + + KZT("KZT"), + + MDL("MDL"), + + MXN("MXN"), + + MYR("MYR"), + + NAD("NAD"), + + NOK("NOK"), + + NZD("NZD"), + + OMR("OMR"), + + PLN("PLN"), + + QAR("QAR"), + + RON("RON"), + + RUB("RUB"), + + SAR("SAR"), + + SEK("SEK"), + + SGD("SGD"), + + THB("THB"), + + TRY("TRY"), + + TWD("TWD"), + + UAH("UAH"), + + USD("USD"), + + XOF("XOF"), + + ZAR("ZAR"); + + private String value; + + CurrencyCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CurrencyCodeEnum fromValue(String value) { + for (CurrencyCodeEnum b : CurrencyCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CurrencyCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CurrencyCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CurrencyCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CURRENCY_CODE = "currencyCode"; + @SerializedName(SERIALIZED_NAME_CURRENCY_CODE) + private CurrencyCodeEnum currencyCode; + + /** + * The language code of the language in which the descriptive texts for each found property should be returned.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(LanguageCodeEnum.Adapter.class) + public enum LanguageCodeEnum { + AF("af"), + + AR("ar"), + + BG("bg"), + + CA("ca"), + + CS("cs"), + + DA("da"), + + DE("de"), + + EL("el"), + + EN("en"), + + ES("es"), + + ET("et"), + + FI("fi"), + + FR("fr"), + + HE("he"), + + HI("hi"), + + HR("hr"), + + HU("hu"), + + ID("id"), + + IS("is"), + + IT("it"), + + JA("ja"), + + KO("ko"), + + LT("lt"), + + LV("lv"), + + NL("nl"), + + NO("no"), + + PL("pl"), + + PT("pt"), + + RO("ro"), + + RU("ru"), + + SK("sk"), + + SL("sl"), + + SR("sr"), + + SV("sv"), + + TH("th"), + + TR("tr"), + + VI("vi"), + + ZH("zh"); + + private String value; + + LanguageCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LanguageCodeEnum fromValue(String value) { + for (LanguageCodeEnum b : LanguageCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LanguageCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LanguageCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LanguageCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_LANGUAGE_CODE = "languageCode"; + @SerializedName(SERIALIZED_NAME_LANGUAGE_CODE) + private LanguageCodeEnum languageCode; + + /** + * The unit system to use in the result. + */ + @JsonAdapter(UnitSystemEnum.Adapter.class) + public enum UnitSystemEnum { + METRIC("metric"), + + IMPERIAL("imperial"); + + private String value; + + UnitSystemEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static UnitSystemEnum fromValue(String value) { + for (UnitSystemEnum b : UnitSystemEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final UnitSystemEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public UnitSystemEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return UnitSystemEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_UNIT_SYSTEM = "unitSystem"; + @SerializedName(SERIALIZED_NAME_UNIT_SYSTEM) + private UnitSystemEnum unitSystem = UnitSystemEnum.METRIC; + + public static final String SERIALIZED_NAME_MIN_LENGTH_OF_STAY = "minLengthOfStay"; + @SerializedName(SERIALIZED_NAME_MIN_LENGTH_OF_STAY) + private Integer minLengthOfStay; + + public static final String SERIALIZED_NAME_MAX_LENGTH_OF_STAY = "maxLengthOfStay"; + @SerializedName(SERIALIZED_NAME_MAX_LENGTH_OF_STAY) + private Integer maxLengthOfStay; + + public static final String SERIALIZED_NAME_LOCATION_NAME = "locationName"; + @SerializedName(SERIALIZED_NAME_LOCATION_NAME) + private String locationName; + + /** + * Defines the type of<code>locationName</code>. If <code>locationType</code> is set, <code>locationName</code> has to bet set as well.<p>See also <a href=\"#locationtypes\">in the appendix</a>.</p> + */ + @JsonAdapter(LocationTypeEnum.Adapter.class) + public enum LocationTypeEnum { + FORMATTED_ADDRESS("formatted_address"), + + PLACE_ID("place_id"), + + LOCALITY("locality"), + + ADMINISTRATIVE_AREA_LEVEL_1("administrative_area_level_1"), + + ADMINISTRATIVE_AREA_LEVEL_2("administrative_area_level_2"), + + ADMINISTRATIVE_AREA_LEVEL_3("administrative_area_level_3"), + + ADMINISTRATIVE_AREA_LEVEL_4("administrative_area_level_4"), + + ADMINISTRATIVE_AREA_LEVEL_5("administrative_area_level_5"), + + STATE_CODE("state_code"), + + COUNTRY("country"), + + COUNTRY_CODE("country_code"), + + POSTAL_CODE("postal_code"), + + LANGUAGE("language"), + + NATURAL_FEATURE("natural_feature"), + + ESTABLISHMENT("establishment"), + + SUBLOCALITY("sublocality"), + + SUBLOCALITY_LEVEL_1("sublocality_level_1"), + + SUBLOCALITY_LEVEL_2("sublocality_level_2"), + + SUBLOCALITY_LEVEL_3("sublocality_level_3"), + + SUBLOCALITY_LEVEL_4("sublocality_level_4"), + + SUBLOCALITY_LEVEL_5("sublocality_level_5"), + + STREETNUMBER("streetNumber"); + + private String value; + + LocationTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LocationTypeEnum fromValue(String value) { + for (LocationTypeEnum b : LocationTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LocationTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LocationTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LocationTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_LOCATION_TYPE = "locationType"; + @SerializedName(SERIALIZED_NAME_LOCATION_TYPE) + private LocationTypeEnum locationType; + + public static final String SERIALIZED_NAME_EARLIEST_ARRIVAL = "earliestArrival"; + @SerializedName(SERIALIZED_NAME_EARLIEST_ARRIVAL) + private String earliestArrival; + + public static final String SERIALIZED_NAME_LATEST_RETURN = "latestReturn"; + @SerializedName(SERIALIZED_NAME_LATEST_RETURN) + private String latestReturn; + + /** + * The criteria to order the results by. Sort order for price is ascending, sort order for quality is always descending. Quality is an internally calculated score for the property.', )} + */ + @JsonAdapter(SortEnum.Adapter.class) + public enum SortEnum { + QUALITY("quality"), + + PRICE("price"); + + private String value; + + SortEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static SortEnum fromValue(String value) { + for (SortEnum b : SortEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final SortEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public SortEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return SortEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_SORT = "sort"; + @SerializedName(SERIALIZED_NAME_SORT) + private SortEnum sort; + + /** + * Gets or Sets serviceList + */ + @JsonAdapter(ServiceListEnum.Adapter.class) + public enum ServiceListEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_30(new BigDecimal("30")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")), + + NUMBER_34(new BigDecimal("34")), + + NUMBER_35(new BigDecimal("35")), + + NUMBER_36(new BigDecimal("36")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_38(new BigDecimal("38")), + + NUMBER_39(new BigDecimal("39")), + + NUMBER_40(new BigDecimal("40")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_44(new BigDecimal("44")), + + NUMBER_45(new BigDecimal("45")), + + NUMBER_46(new BigDecimal("46")), + + NUMBER_47(new BigDecimal("47")), + + NUMBER_48(new BigDecimal("48")), + + NUMBER_49(new BigDecimal("49")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_51(new BigDecimal("51")), + + NUMBER_52(new BigDecimal("52")), + + NUMBER_53(new BigDecimal("53")), + + NUMBER_54(new BigDecimal("54")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_56(new BigDecimal("56")), + + NUMBER_57(new BigDecimal("57")), + + NUMBER_58(new BigDecimal("58")), + + NUMBER_59(new BigDecimal("59")), + + NUMBER_60(new BigDecimal("60")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_62(new BigDecimal("62")), + + NUMBER_63(new BigDecimal("63")), + + NUMBER_64(new BigDecimal("64")), + + NUMBER_65(new BigDecimal("65")), + + NUMBER_66(new BigDecimal("66")), + + NUMBER_67(new BigDecimal("67")), + + NUMBER_68(new BigDecimal("68")), + + NUMBER_69(new BigDecimal("69")), + + NUMBER_70(new BigDecimal("70")), + + NUMBER_71(new BigDecimal("71")), + + NUMBER_72(new BigDecimal("72")), + + NUMBER_73(new BigDecimal("73")), + + NUMBER_74(new BigDecimal("74")), + + NUMBER_75(new BigDecimal("75")), + + NUMBER_76(new BigDecimal("76")), + + NUMBER_77(new BigDecimal("77")), + + NUMBER_78(new BigDecimal("78")), + + NUMBER_79(new BigDecimal("79")), + + NUMBER_80(new BigDecimal("80")), + + NUMBER_81(new BigDecimal("81")), + + NUMBER_82(new BigDecimal("82")), + + NUMBER_83(new BigDecimal("83")), + + NUMBER_84(new BigDecimal("84")), + + NUMBER_85(new BigDecimal("85")), + + NUMBER_86(new BigDecimal("86")), + + NUMBER_87(new BigDecimal("87")), + + NUMBER_88(new BigDecimal("88")), + + NUMBER_89(new BigDecimal("89")), + + NUMBER_90(new BigDecimal("90")), + + NUMBER_91(new BigDecimal("91")), + + NUMBER_92(new BigDecimal("92")), + + NUMBER_93(new BigDecimal("93")), + + NUMBER_94(new BigDecimal("94")), + + NUMBER_95(new BigDecimal("95")), + + NUMBER_96(new BigDecimal("96")), + + NUMBER_97(new BigDecimal("97")), + + NUMBER_98(new BigDecimal("98")), + + NUMBER_99(new BigDecimal("99")), + + NUMBER_100(new BigDecimal("100")), + + NUMBER_101(new BigDecimal("101")), + + NUMBER_102(new BigDecimal("102")), + + NUMBER_103(new BigDecimal("103")), + + NUMBER_104(new BigDecimal("104")), + + NUMBER_105(new BigDecimal("105")), + + NUMBER_106(new BigDecimal("106")), + + NUMBER_107(new BigDecimal("107")), + + NUMBER_108(new BigDecimal("108")), + + NUMBER_109(new BigDecimal("109")), + + NUMBER_110(new BigDecimal("110")), + + NUMBER_111(new BigDecimal("111")), + + NUMBER_112(new BigDecimal("112")), + + NUMBER_113(new BigDecimal("113")), + + NUMBER_114(new BigDecimal("114")), + + NUMBER_115(new BigDecimal("115")), + + NUMBER_116(new BigDecimal("116")), + + NUMBER_117(new BigDecimal("117")), + + NUMBER_118(new BigDecimal("118")), + + NUMBER_119(new BigDecimal("119")), + + NUMBER_120(new BigDecimal("120")), + + NUMBER_121(new BigDecimal("121")), + + NUMBER_122(new BigDecimal("122")), + + NUMBER_123(new BigDecimal("123")), + + NUMBER_124(new BigDecimal("124")), + + NUMBER_125(new BigDecimal("125")), + + NUMBER_126(new BigDecimal("126")), + + NUMBER_127(new BigDecimal("127")), + + NUMBER_128(new BigDecimal("128")), + + NUMBER_129(new BigDecimal("129")), + + NUMBER_130(new BigDecimal("130")), + + NUMBER_131(new BigDecimal("131")), + + NUMBER_132(new BigDecimal("132")), + + NUMBER_133(new BigDecimal("133")), + + NUMBER_134(new BigDecimal("134")), + + NUMBER_135(new BigDecimal("135")), + + NUMBER_136(new BigDecimal("136")), + + NUMBER_137(new BigDecimal("137")), + + NUMBER_138(new BigDecimal("138")), + + NUMBER_139(new BigDecimal("139")), + + NUMBER_140(new BigDecimal("140")), + + NUMBER_141(new BigDecimal("141")), + + NUMBER_142(new BigDecimal("142")), + + NUMBER_143(new BigDecimal("143")), + + NUMBER_144(new BigDecimal("144")), + + NUMBER_145(new BigDecimal("145")), + + NUMBER_146(new BigDecimal("146")), + + NUMBER_147(new BigDecimal("147")), + + NUMBER_148(new BigDecimal("148")), + + NUMBER_149(new BigDecimal("149")), + + NUMBER_150(new BigDecimal("150")), + + NUMBER_151(new BigDecimal("151")), + + NUMBER_152(new BigDecimal("152")), + + NUMBER_153(new BigDecimal("153")), + + NUMBER_154(new BigDecimal("154")), + + NUMBER_155(new BigDecimal("155")), + + NUMBER_156(new BigDecimal("156")), + + NUMBER_157(new BigDecimal("157")), + + NUMBER_158(new BigDecimal("158")), + + NUMBER_159(new BigDecimal("159")), + + NUMBER_160(new BigDecimal("160")), + + NUMBER_161(new BigDecimal("161")), + + NUMBER_162(new BigDecimal("162")), + + NUMBER_163(new BigDecimal("163")), + + NUMBER_164(new BigDecimal("164")), + + NUMBER_165(new BigDecimal("165")), + + NUMBER_166(new BigDecimal("166")), + + NUMBER_167(new BigDecimal("167")), + + NUMBER_168(new BigDecimal("168")), + + NUMBER_169(new BigDecimal("169")), + + NUMBER_170(new BigDecimal("170")), + + NUMBER_171(new BigDecimal("171")), + + NUMBER_172(new BigDecimal("172")), + + NUMBER_173(new BigDecimal("173")), + + NUMBER_174(new BigDecimal("174")), + + NUMBER_175(new BigDecimal("175")), + + NUMBER_176(new BigDecimal("176")), + + NUMBER_177(new BigDecimal("177")), + + NUMBER_178(new BigDecimal("178")), + + NUMBER_179(new BigDecimal("179")), + + NUMBER_180(new BigDecimal("180")), + + NUMBER_181(new BigDecimal("181")), + + NUMBER_182(new BigDecimal("182")), + + NUMBER_183(new BigDecimal("183")), + + NUMBER_184(new BigDecimal("184")), + + NUMBER_185(new BigDecimal("185")), + + NUMBER_186(new BigDecimal("186")), + + NUMBER_187(new BigDecimal("187")), + + NUMBER_188(new BigDecimal("188")), + + NUMBER_189(new BigDecimal("189")), + + NUMBER_190(new BigDecimal("190")), + + NUMBER_191(new BigDecimal("191")), + + NUMBER_192(new BigDecimal("192")), + + NUMBER_193(new BigDecimal("193")), + + NUMBER_194(new BigDecimal("194")), + + NUMBER_195(new BigDecimal("195")), + + NUMBER_196(new BigDecimal("196")), + + NUMBER_197(new BigDecimal("197")), + + NUMBER_198(new BigDecimal("198")), + + NUMBER_199(new BigDecimal("199")), + + NUMBER_200(new BigDecimal("200")), + + NUMBER_201(new BigDecimal("201")), + + NUMBER_202(new BigDecimal("202")), + + NUMBER_203(new BigDecimal("203")), + + NUMBER_204(new BigDecimal("204")), + + NUMBER_205(new BigDecimal("205")), + + NUMBER_206(new BigDecimal("206")), + + NUMBER_207(new BigDecimal("207")), + + NUMBER_208(new BigDecimal("208")), + + NUMBER_209(new BigDecimal("209")), + + NUMBER_210(new BigDecimal("210")), + + NUMBER_211(new BigDecimal("211")), + + NUMBER_212(new BigDecimal("212")), + + NUMBER_213(new BigDecimal("213")), + + NUMBER_214(new BigDecimal("214")), + + NUMBER_215(new BigDecimal("215")), + + NUMBER_216(new BigDecimal("216")), + + NUMBER_217(new BigDecimal("217")), + + NUMBER_218(new BigDecimal("218")), + + NUMBER_219(new BigDecimal("219")), + + NUMBER_220(new BigDecimal("220")), + + NUMBER_221(new BigDecimal("221")), + + NUMBER_222(new BigDecimal("222")), + + NUMBER_223(new BigDecimal("223")), + + NUMBER_224(new BigDecimal("224")), + + NUMBER_225(new BigDecimal("225")), + + NUMBER_226(new BigDecimal("226")), + + NUMBER_227(new BigDecimal("227")), + + NUMBER_228(new BigDecimal("228")), + + NUMBER_229(new BigDecimal("229")), + + NUMBER_230(new BigDecimal("230")), + + NUMBER_231(new BigDecimal("231")), + + NUMBER_232(new BigDecimal("232")), + + NUMBER_233(new BigDecimal("233")), + + NUMBER_234(new BigDecimal("234")), + + NUMBER_235(new BigDecimal("235")), + + NUMBER_236(new BigDecimal("236")), + + NUMBER_237(new BigDecimal("237")), + + NUMBER_238(new BigDecimal("238")), + + NUMBER_239(new BigDecimal("239")), + + NUMBER_240(new BigDecimal("240")), + + NUMBER_241(new BigDecimal("241")), + + NUMBER_242(new BigDecimal("242")), + + NUMBER_243(new BigDecimal("243")), + + NUMBER_244(new BigDecimal("244")), + + NUMBER_245(new BigDecimal("245")), + + NUMBER_246(new BigDecimal("246")), + + NUMBER_247(new BigDecimal("247")), + + NUMBER_248(new BigDecimal("248")), + + NUMBER_249(new BigDecimal("249")), + + NUMBER_250(new BigDecimal("250")), + + NUMBER_251(new BigDecimal("251")), + + NUMBER_252(new BigDecimal("252")), + + NUMBER_253(new BigDecimal("253")), + + NUMBER_254(new BigDecimal("254")), + + NUMBER_255(new BigDecimal("255")), + + NUMBER_256(new BigDecimal("256")), + + NUMBER_257(new BigDecimal("257")), + + NUMBER_258(new BigDecimal("258")), + + NUMBER_259(new BigDecimal("259")), + + NUMBER_260(new BigDecimal("260")), + + NUMBER_261(new BigDecimal("261")), + + NUMBER_262(new BigDecimal("262")), + + NUMBER_263(new BigDecimal("263")), + + NUMBER_264(new BigDecimal("264")), + + NUMBER_265(new BigDecimal("265")), + + NUMBER_266(new BigDecimal("266")), + + NUMBER_267(new BigDecimal("267")), + + NUMBER_268(new BigDecimal("268")), + + NUMBER_269(new BigDecimal("269")), + + NUMBER_270(new BigDecimal("270")), + + NUMBER_271(new BigDecimal("271")), + + NUMBER_272(new BigDecimal("272")), + + NUMBER_273(new BigDecimal("273")), + + NUMBER_274(new BigDecimal("274")), + + NUMBER_275(new BigDecimal("275")), + + NUMBER_276(new BigDecimal("276")), + + NUMBER_277(new BigDecimal("277")), + + NUMBER_278(new BigDecimal("278")), + + NUMBER_279(new BigDecimal("279")), + + NUMBER_280(new BigDecimal("280")), + + NUMBER_281(new BigDecimal("281")), + + NUMBER_282(new BigDecimal("282")), + + NUMBER_283(new BigDecimal("283")), + + NUMBER_284(new BigDecimal("284")), + + NUMBER_285(new BigDecimal("285")), + + NUMBER_286(new BigDecimal("286")), + + NUMBER_287(new BigDecimal("287")), + + NUMBER_288(new BigDecimal("288")), + + NUMBER_289(new BigDecimal("289")), + + NUMBER_290(new BigDecimal("290")), + + NUMBER_291(new BigDecimal("291")), + + NUMBER_292(new BigDecimal("292")), + + NUMBER_293(new BigDecimal("293")), + + NUMBER_294(new BigDecimal("294")), + + NUMBER_295(new BigDecimal("295")), + + NUMBER_296(new BigDecimal("296")), + + NUMBER_297(new BigDecimal("297")), + + NUMBER_298(new BigDecimal("298")), + + NUMBER_299(new BigDecimal("299")), + + NUMBER_300(new BigDecimal("300")), + + NUMBER_301(new BigDecimal("301")), + + NUMBER_302(new BigDecimal("302")), + + NUMBER_303(new BigDecimal("303")), + + NUMBER_304(new BigDecimal("304")), + + NUMBER_305(new BigDecimal("305")), + + NUMBER_306(new BigDecimal("306")), + + NUMBER_307(new BigDecimal("307")), + + NUMBER_308(new BigDecimal("308")), + + NUMBER_309(new BigDecimal("309")), + + NUMBER_310(new BigDecimal("310")), + + NUMBER_311(new BigDecimal("311")), + + NUMBER_312(new BigDecimal("312")), + + NUMBER_313(new BigDecimal("313")), + + NUMBER_314(new BigDecimal("314")), + + NUMBER_315(new BigDecimal("315")), + + NUMBER_316(new BigDecimal("316")), + + NUMBER_317(new BigDecimal("317")), + + NUMBER_318(new BigDecimal("318")), + + NUMBER_319(new BigDecimal("319")), + + NUMBER_320(new BigDecimal("320")), + + NUMBER_321(new BigDecimal("321")), + + NUMBER_322(new BigDecimal("322")), + + NUMBER_323(new BigDecimal("323")), + + NUMBER_324(new BigDecimal("324")), + + NUMBER_325(new BigDecimal("325")), + + NUMBER_326(new BigDecimal("326")), + + NUMBER_327(new BigDecimal("327")), + + NUMBER_328(new BigDecimal("328")), + + NUMBER_329(new BigDecimal("329")), + + NUMBER_331(new BigDecimal("331")), + + NUMBER_332(new BigDecimal("332")), + + NUMBER_333(new BigDecimal("333")), + + NUMBER_334(new BigDecimal("334")), + + NUMBER_335(new BigDecimal("335")), + + NUMBER_336(new BigDecimal("336")), + + NUMBER_337(new BigDecimal("337")), + + NUMBER_338(new BigDecimal("338")), + + NUMBER_339(new BigDecimal("339")), + + NUMBER_340(new BigDecimal("340")), + + NUMBER_341(new BigDecimal("341")), + + NUMBER_342(new BigDecimal("342")), + + NUMBER_343(new BigDecimal("343")), + + NUMBER_344(new BigDecimal("344")), + + NUMBER_345(new BigDecimal("345")), + + NUMBER_348(new BigDecimal("348")), + + NUMBER_349(new BigDecimal("349")), + + NUMBER_350(new BigDecimal("350")), + + NUMBER_351(new BigDecimal("351")), + + NUMBER_5000(new BigDecimal("5000")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")), + + NUMBER_5009(new BigDecimal("5009")), + + NUMBER_5010(new BigDecimal("5010")), + + NUMBER_5011(new BigDecimal("5011")), + + NUMBER_5012(new BigDecimal("5012")), + + NUMBER_5013(new BigDecimal("5013")), + + NUMBER_5014(new BigDecimal("5014")), + + NUMBER_5015(new BigDecimal("5015")), + + NUMBER_5016(new BigDecimal("5016")), + + NUMBER_5017(new BigDecimal("5017")), + + NUMBER_5018(new BigDecimal("5018")), + + NUMBER_5020(new BigDecimal("5020")), + + NUMBER_5021(new BigDecimal("5021")), + + NUMBER_5022(new BigDecimal("5022")), + + NUMBER_5023(new BigDecimal("5023")), + + NUMBER_5024(new BigDecimal("5024")), + + NUMBER_5025(new BigDecimal("5025")), + + NUMBER_5026(new BigDecimal("5026")), + + NUMBER_5027(new BigDecimal("5027")), + + NUMBER_5028(new BigDecimal("5028")), + + NUMBER_5029(new BigDecimal("5029")), + + NUMBER_5030(new BigDecimal("5030")), + + NUMBER_5031(new BigDecimal("5031")), + + NUMBER_5032(new BigDecimal("5032")), + + NUMBER_5033(new BigDecimal("5033")), + + NUMBER_5034(new BigDecimal("5034")), + + NUMBER_5035(new BigDecimal("5035")), + + NUMBER_5036(new BigDecimal("5036")), + + NUMBER_5037(new BigDecimal("5037")), + + NUMBER_5039(new BigDecimal("5039")), + + NUMBER_5040(new BigDecimal("5040")), + + NUMBER_5041(new BigDecimal("5041")), + + NUMBER_5042(new BigDecimal("5042")), + + NUMBER_5043(new BigDecimal("5043")), + + NUMBER_5044(new BigDecimal("5044")), + + NUMBER_5045(new BigDecimal("5045")), + + NUMBER_5046(new BigDecimal("5046")), + + NUMBER_5047(new BigDecimal("5047")), + + NUMBER_5048(new BigDecimal("5048")), + + NUMBER_5049(new BigDecimal("5049")), + + NUMBER_5050(new BigDecimal("5050")), + + NUMBER_5051(new BigDecimal("5051")), + + NUMBER_5052(new BigDecimal("5052")), + + NUMBER_5053(new BigDecimal("5053")), + + NUMBER_5054(new BigDecimal("5054")), + + NUMBER_5055(new BigDecimal("5055")), + + NUMBER_5056(new BigDecimal("5056")), + + NUMBER_5057(new BigDecimal("5057")), + + NUMBER_5058(new BigDecimal("5058")), + + NUMBER_5059(new BigDecimal("5059")), + + NUMBER_5060(new BigDecimal("5060")), + + NUMBER_5061(new BigDecimal("5061")), + + NUMBER_5062(new BigDecimal("5062")), + + NUMBER_5063(new BigDecimal("5063")), + + NUMBER_5064(new BigDecimal("5064")), + + NUMBER_5065(new BigDecimal("5065")), + + NUMBER_5066(new BigDecimal("5066")), + + NUMBER_5067(new BigDecimal("5067")), + + NUMBER_5068(new BigDecimal("5068")), + + NUMBER_5069(new BigDecimal("5069")), + + NUMBER_5070(new BigDecimal("5070")), + + NUMBER_5071(new BigDecimal("5071")), + + NUMBER_5072(new BigDecimal("5072")), + + NUMBER_5073(new BigDecimal("5073")), + + NUMBER_5074(new BigDecimal("5074")), + + NUMBER_5075(new BigDecimal("5075")), + + NUMBER_5076(new BigDecimal("5076")), + + NUMBER_5077(new BigDecimal("5077")), + + NUMBER_5078(new BigDecimal("5078")), + + NUMBER_5079(new BigDecimal("5079")), + + NUMBER_5080(new BigDecimal("5080")), + + NUMBER_5081(new BigDecimal("5081")), + + NUMBER_5082(new BigDecimal("5082")), + + NUMBER_5083(new BigDecimal("5083")), + + NUMBER_5084(new BigDecimal("5084")), + + NUMBER_5085(new BigDecimal("5085")), + + NUMBER_5086(new BigDecimal("5086")), + + NUMBER_5087(new BigDecimal("5087")), + + NUMBER_5088(new BigDecimal("5088")), + + NUMBER_5089(new BigDecimal("5089")), + + NUMBER_5090(new BigDecimal("5090")), + + NUMBER_5091(new BigDecimal("5091")), + + NUMBER_5092(new BigDecimal("5092")), + + NUMBER_5093(new BigDecimal("5093")), + + NUMBER_5094(new BigDecimal("5094")), + + NUMBER_5095(new BigDecimal("5095")), + + NUMBER_5096(new BigDecimal("5096")), + + NUMBER_5097(new BigDecimal("5097")), + + NUMBER_5098(new BigDecimal("5098")), + + NUMBER_5099(new BigDecimal("5099")), + + NUMBER_5100(new BigDecimal("5100")), + + NUMBER_5101(new BigDecimal("5101")), + + NUMBER_5102(new BigDecimal("5102")), + + NUMBER_5103(new BigDecimal("5103")), + + NUMBER_5104(new BigDecimal("5104")), + + NUMBER_5105(new BigDecimal("5105")), + + NUMBER_5106(new BigDecimal("5106")), + + NUMBER_5107(new BigDecimal("5107")), + + NUMBER_5108(new BigDecimal("5108")), + + NUMBER_5109(new BigDecimal("5109")), + + NUMBER_5110(new BigDecimal("5110")), + + NUMBER_5111(new BigDecimal("5111")), + + NUMBER_5112(new BigDecimal("5112")), + + NUMBER_5113(new BigDecimal("5113")), + + NUMBER_5114(new BigDecimal("5114")), + + NUMBER_5115(new BigDecimal("5115")), + + NUMBER_5116(new BigDecimal("5116")), + + NUMBER_5117(new BigDecimal("5117")), + + NUMBER_5118(new BigDecimal("5118")), + + NUMBER_5119(new BigDecimal("5119")), + + NUMBER_5120(new BigDecimal("5120")), + + NUMBER_5121(new BigDecimal("5121")), + + NUMBER_5122(new BigDecimal("5122")), + + NUMBER_5123(new BigDecimal("5123")), + + NUMBER_5124(new BigDecimal("5124")), + + NUMBER_5125(new BigDecimal("5125")), + + NUMBER_5126(new BigDecimal("5126")), + + NUMBER_5127(new BigDecimal("5127")), + + NUMBER_5128(new BigDecimal("5128")), + + NUMBER_5129(new BigDecimal("5129")), + + NUMBER_5130(new BigDecimal("5130")), + + NUMBER_5131(new BigDecimal("5131")), + + NUMBER_5132(new BigDecimal("5132")), + + NUMBER_5133(new BigDecimal("5133")), + + NUMBER_5134(new BigDecimal("5134")), + + NUMBER_5135(new BigDecimal("5135")), + + NUMBER_5136(new BigDecimal("5136")), + + NUMBER_5137(new BigDecimal("5137")), + + NUMBER_5138(new BigDecimal("5138")), + + NUMBER_5139(new BigDecimal("5139")), + + NUMBER_5140(new BigDecimal("5140")), + + NUMBER_5141(new BigDecimal("5141")), + + NUMBER_5142(new BigDecimal("5142")), + + NUMBER_5143(new BigDecimal("5143")), + + NUMBER_5144(new BigDecimal("5144")), + + NUMBER_5145(new BigDecimal("5145")), + + NUMBER_5146(new BigDecimal("5146")), + + NUMBER_5147(new BigDecimal("5147")), + + NUMBER_5148(new BigDecimal("5148")), + + NUMBER_5149(new BigDecimal("5149")), + + NUMBER_5150(new BigDecimal("5150")), + + NUMBER_5151(new BigDecimal("5151")), + + NUMBER_5152(new BigDecimal("5152")), + + NUMBER_5153(new BigDecimal("5153")), + + NUMBER_5154(new BigDecimal("5154")), + + NUMBER_5156(new BigDecimal("5156")), + + NUMBER_5157(new BigDecimal("5157")), + + NUMBER_5158(new BigDecimal("5158")), + + NUMBER_5159(new BigDecimal("5159")), + + NUMBER_5160(new BigDecimal("5160")), + + NUMBER_5161(new BigDecimal("5161")), + + NUMBER_5162(new BigDecimal("5162")), + + NUMBER_5163(new BigDecimal("5163")), + + NUMBER_5164(new BigDecimal("5164")), + + NUMBER_5165(new BigDecimal("5165")), + + NUMBER_5166(new BigDecimal("5166")), + + NUMBER_5167(new BigDecimal("5167")), + + NUMBER_5168(new BigDecimal("5168")), + + NUMBER_5169(new BigDecimal("5169")), + + NUMBER_5170(new BigDecimal("5170")), + + NUMBER_5171(new BigDecimal("5171")), + + NUMBER_5172(new BigDecimal("5172")), + + NUMBER_5173(new BigDecimal("5173")), + + NUMBER_5174(new BigDecimal("5174")), + + NUMBER_5175(new BigDecimal("5175")), + + NUMBER_5176(new BigDecimal("5176")), + + NUMBER_5177(new BigDecimal("5177")), + + NUMBER_5178(new BigDecimal("5178")), + + NUMBER_6000(new BigDecimal("6000")), + + NUMBER_6001(new BigDecimal("6001")), + + NUMBER_90001(new BigDecimal("90001")); + + private BigDecimal value; + + ServiceListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ServiceListEnum fromValue(BigDecimal value) { + for (ServiceListEnum b : ServiceListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ServiceListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ServiceListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ServiceListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_SERVICE_LIST = "serviceList"; + @SerializedName(SERIALIZED_NAME_SERVICE_LIST) + private List serviceList = null; + + /** + * Gets or Sets typeList + */ + @JsonAdapter(TypeListEnum.Adapter.class) + public enum TypeListEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_30(new BigDecimal("30")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")), + + NUMBER_34(new BigDecimal("34")), + + NUMBER_35(new BigDecimal("35")), + + NUMBER_36(new BigDecimal("36")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_38(new BigDecimal("38")), + + NUMBER_39(new BigDecimal("39")), + + NUMBER_40(new BigDecimal("40")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_44(new BigDecimal("44")), + + NUMBER_45(new BigDecimal("45")), + + NUMBER_46(new BigDecimal("46")), + + NUMBER_47(new BigDecimal("47")), + + NUMBER_48(new BigDecimal("48")), + + NUMBER_49(new BigDecimal("49")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_51(new BigDecimal("51")), + + NUMBER_52(new BigDecimal("52")), + + NUMBER_53(new BigDecimal("53")), + + NUMBER_54(new BigDecimal("54")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_56(new BigDecimal("56")), + + NUMBER_57(new BigDecimal("57")), + + NUMBER_58(new BigDecimal("58")), + + NUMBER_59(new BigDecimal("59")), + + NUMBER_60(new BigDecimal("60")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_62(new BigDecimal("62")), + + NUMBER_5000(new BigDecimal("5000")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")), + + NUMBER_5009(new BigDecimal("5009")); + + private BigDecimal value; + + TypeListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeListEnum fromValue(BigDecimal value) { + for (TypeListEnum b : TypeListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_TYPE_LIST = "typeList"; + @SerializedName(SERIALIZED_NAME_TYPE_LIST) + private List typeList = null; + + /** + * Gets or Sets unitTypeList + */ + @JsonAdapter(UnitTypeListEnum.Adapter.class) + public enum UnitTypeListEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")); + + private BigDecimal value; + + UnitTypeListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static UnitTypeListEnum fromValue(BigDecimal value) { + for (UnitTypeListEnum b : UnitTypeListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final UnitTypeListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public UnitTypeListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return UnitTypeListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_UNIT_TYPE_LIST = "unitTypeList"; + @SerializedName(SERIALIZED_NAME_UNIT_TYPE_LIST) + private List unitTypeList = null; + + /** + * Gets or Sets unitAmenityList + */ + @JsonAdapter(UnitAmenityListEnum.Adapter.class) + public enum UnitAmenityListEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_30(new BigDecimal("30")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")), + + NUMBER_34(new BigDecimal("34")), + + NUMBER_35(new BigDecimal("35")), + + NUMBER_36(new BigDecimal("36")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_38(new BigDecimal("38")), + + NUMBER_39(new BigDecimal("39")), + + NUMBER_40(new BigDecimal("40")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_44(new BigDecimal("44")), + + NUMBER_45(new BigDecimal("45")), + + NUMBER_46(new BigDecimal("46")), + + NUMBER_47(new BigDecimal("47")), + + NUMBER_48(new BigDecimal("48")), + + NUMBER_49(new BigDecimal("49")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_51(new BigDecimal("51")), + + NUMBER_52(new BigDecimal("52")), + + NUMBER_53(new BigDecimal("53")), + + NUMBER_54(new BigDecimal("54")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_56(new BigDecimal("56")), + + NUMBER_57(new BigDecimal("57")), + + NUMBER_58(new BigDecimal("58")), + + NUMBER_59(new BigDecimal("59")), + + NUMBER_60(new BigDecimal("60")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_62(new BigDecimal("62")), + + NUMBER_63(new BigDecimal("63")), + + NUMBER_64(new BigDecimal("64")), + + NUMBER_65(new BigDecimal("65")), + + NUMBER_66(new BigDecimal("66")), + + NUMBER_67(new BigDecimal("67")), + + NUMBER_68(new BigDecimal("68")), + + NUMBER_69(new BigDecimal("69")), + + NUMBER_70(new BigDecimal("70")), + + NUMBER_71(new BigDecimal("71")), + + NUMBER_72(new BigDecimal("72")), + + NUMBER_73(new BigDecimal("73")), + + NUMBER_74(new BigDecimal("74")), + + NUMBER_75(new BigDecimal("75")), + + NUMBER_76(new BigDecimal("76")), + + NUMBER_77(new BigDecimal("77")), + + NUMBER_78(new BigDecimal("78")), + + NUMBER_79(new BigDecimal("79")), + + NUMBER_80(new BigDecimal("80")), + + NUMBER_81(new BigDecimal("81")), + + NUMBER_82(new BigDecimal("82")), + + NUMBER_83(new BigDecimal("83")), + + NUMBER_84(new BigDecimal("84")), + + NUMBER_85(new BigDecimal("85")), + + NUMBER_86(new BigDecimal("86")), + + NUMBER_87(new BigDecimal("87")), + + NUMBER_88(new BigDecimal("88")), + + NUMBER_89(new BigDecimal("89")), + + NUMBER_90(new BigDecimal("90")), + + NUMBER_91(new BigDecimal("91")), + + NUMBER_92(new BigDecimal("92")), + + NUMBER_93(new BigDecimal("93")), + + NUMBER_94(new BigDecimal("94")), + + NUMBER_95(new BigDecimal("95")), + + NUMBER_96(new BigDecimal("96")), + + NUMBER_97(new BigDecimal("97")), + + NUMBER_98(new BigDecimal("98")), + + NUMBER_99(new BigDecimal("99")), + + NUMBER_100(new BigDecimal("100")), + + NUMBER_101(new BigDecimal("101")), + + NUMBER_102(new BigDecimal("102")), + + NUMBER_103(new BigDecimal("103")), + + NUMBER_104(new BigDecimal("104")), + + NUMBER_105(new BigDecimal("105")), + + NUMBER_106(new BigDecimal("106")), + + NUMBER_107(new BigDecimal("107")), + + NUMBER_108(new BigDecimal("108")), + + NUMBER_109(new BigDecimal("109")), + + NUMBER_110(new BigDecimal("110")), + + NUMBER_111(new BigDecimal("111")), + + NUMBER_112(new BigDecimal("112")), + + NUMBER_113(new BigDecimal("113")), + + NUMBER_114(new BigDecimal("114")), + + NUMBER_115(new BigDecimal("115")), + + NUMBER_116(new BigDecimal("116")), + + NUMBER_117(new BigDecimal("117")), + + NUMBER_118(new BigDecimal("118")), + + NUMBER_119(new BigDecimal("119")), + + NUMBER_120(new BigDecimal("120")), + + NUMBER_121(new BigDecimal("121")), + + NUMBER_122(new BigDecimal("122")), + + NUMBER_123(new BigDecimal("123")), + + NUMBER_124(new BigDecimal("124")), + + NUMBER_125(new BigDecimal("125")), + + NUMBER_126(new BigDecimal("126")), + + NUMBER_127(new BigDecimal("127")), + + NUMBER_128(new BigDecimal("128")), + + NUMBER_129(new BigDecimal("129")), + + NUMBER_130(new BigDecimal("130")), + + NUMBER_131(new BigDecimal("131")), + + NUMBER_132(new BigDecimal("132")), + + NUMBER_133(new BigDecimal("133")), + + NUMBER_134(new BigDecimal("134")), + + NUMBER_135(new BigDecimal("135")), + + NUMBER_136(new BigDecimal("136")), + + NUMBER_137(new BigDecimal("137")), + + NUMBER_138(new BigDecimal("138")), + + NUMBER_139(new BigDecimal("139")), + + NUMBER_140(new BigDecimal("140")), + + NUMBER_141(new BigDecimal("141")), + + NUMBER_142(new BigDecimal("142")), + + NUMBER_143(new BigDecimal("143")), + + NUMBER_144(new BigDecimal("144")), + + NUMBER_145(new BigDecimal("145")), + + NUMBER_146(new BigDecimal("146")), + + NUMBER_147(new BigDecimal("147")), + + NUMBER_148(new BigDecimal("148")), + + NUMBER_149(new BigDecimal("149")), + + NUMBER_150(new BigDecimal("150")), + + NUMBER_151(new BigDecimal("151")), + + NUMBER_152(new BigDecimal("152")), + + NUMBER_153(new BigDecimal("153")), + + NUMBER_154(new BigDecimal("154")), + + NUMBER_155(new BigDecimal("155")), + + NUMBER_156(new BigDecimal("156")), + + NUMBER_157(new BigDecimal("157")), + + NUMBER_158(new BigDecimal("158")), + + NUMBER_159(new BigDecimal("159")), + + NUMBER_160(new BigDecimal("160")), + + NUMBER_161(new BigDecimal("161")), + + NUMBER_162(new BigDecimal("162")), + + NUMBER_163(new BigDecimal("163")), + + NUMBER_164(new BigDecimal("164")), + + NUMBER_165(new BigDecimal("165")), + + NUMBER_166(new BigDecimal("166")), + + NUMBER_167(new BigDecimal("167")), + + NUMBER_168(new BigDecimal("168")), + + NUMBER_169(new BigDecimal("169")), + + NUMBER_170(new BigDecimal("170")), + + NUMBER_171(new BigDecimal("171")), + + NUMBER_172(new BigDecimal("172")), + + NUMBER_173(new BigDecimal("173")), + + NUMBER_174(new BigDecimal("174")), + + NUMBER_175(new BigDecimal("175")), + + NUMBER_176(new BigDecimal("176")), + + NUMBER_177(new BigDecimal("177")), + + NUMBER_178(new BigDecimal("178")), + + NUMBER_179(new BigDecimal("179")), + + NUMBER_180(new BigDecimal("180")), + + NUMBER_181(new BigDecimal("181")), + + NUMBER_182(new BigDecimal("182")), + + NUMBER_183(new BigDecimal("183")), + + NUMBER_184(new BigDecimal("184")), + + NUMBER_185(new BigDecimal("185")), + + NUMBER_186(new BigDecimal("186")), + + NUMBER_187(new BigDecimal("187")), + + NUMBER_188(new BigDecimal("188")), + + NUMBER_189(new BigDecimal("189")), + + NUMBER_190(new BigDecimal("190")), + + NUMBER_191(new BigDecimal("191")), + + NUMBER_192(new BigDecimal("192")), + + NUMBER_193(new BigDecimal("193")), + + NUMBER_194(new BigDecimal("194")), + + NUMBER_195(new BigDecimal("195")), + + NUMBER_196(new BigDecimal("196")), + + NUMBER_197(new BigDecimal("197")), + + NUMBER_198(new BigDecimal("198")), + + NUMBER_199(new BigDecimal("199")), + + NUMBER_200(new BigDecimal("200")), + + NUMBER_201(new BigDecimal("201")), + + NUMBER_202(new BigDecimal("202")), + + NUMBER_203(new BigDecimal("203")), + + NUMBER_204(new BigDecimal("204")), + + NUMBER_205(new BigDecimal("205")), + + NUMBER_206(new BigDecimal("206")), + + NUMBER_207(new BigDecimal("207")), + + NUMBER_208(new BigDecimal("208")), + + NUMBER_209(new BigDecimal("209")), + + NUMBER_210(new BigDecimal("210")), + + NUMBER_211(new BigDecimal("211")), + + NUMBER_212(new BigDecimal("212")), + + NUMBER_213(new BigDecimal("213")), + + NUMBER_214(new BigDecimal("214")), + + NUMBER_215(new BigDecimal("215")), + + NUMBER_216(new BigDecimal("216")), + + NUMBER_217(new BigDecimal("217")), + + NUMBER_218(new BigDecimal("218")), + + NUMBER_219(new BigDecimal("219")), + + NUMBER_220(new BigDecimal("220")), + + NUMBER_221(new BigDecimal("221")), + + NUMBER_222(new BigDecimal("222")), + + NUMBER_223(new BigDecimal("223")), + + NUMBER_224(new BigDecimal("224")), + + NUMBER_225(new BigDecimal("225")), + + NUMBER_226(new BigDecimal("226")), + + NUMBER_227(new BigDecimal("227")), + + NUMBER_228(new BigDecimal("228")), + + NUMBER_229(new BigDecimal("229")), + + NUMBER_230(new BigDecimal("230")), + + NUMBER_231(new BigDecimal("231")), + + NUMBER_232(new BigDecimal("232")), + + NUMBER_233(new BigDecimal("233")), + + NUMBER_234(new BigDecimal("234")), + + NUMBER_235(new BigDecimal("235")), + + NUMBER_236(new BigDecimal("236")), + + NUMBER_237(new BigDecimal("237")), + + NUMBER_238(new BigDecimal("238")), + + NUMBER_239(new BigDecimal("239")), + + NUMBER_240(new BigDecimal("240")), + + NUMBER_241(new BigDecimal("241")), + + NUMBER_242(new BigDecimal("242")), + + NUMBER_243(new BigDecimal("243")), + + NUMBER_244(new BigDecimal("244")), + + NUMBER_245(new BigDecimal("245")), + + NUMBER_246(new BigDecimal("246")), + + NUMBER_247(new BigDecimal("247")), + + NUMBER_248(new BigDecimal("248")), + + NUMBER_249(new BigDecimal("249")), + + NUMBER_250(new BigDecimal("250")), + + NUMBER_251(new BigDecimal("251")), + + NUMBER_252(new BigDecimal("252")), + + NUMBER_253(new BigDecimal("253")), + + NUMBER_254(new BigDecimal("254")), + + NUMBER_255(new BigDecimal("255")), + + NUMBER_256(new BigDecimal("256")), + + NUMBER_257(new BigDecimal("257")), + + NUMBER_258(new BigDecimal("258")), + + NUMBER_259(new BigDecimal("259")), + + NUMBER_260(new BigDecimal("260")), + + NUMBER_261(new BigDecimal("261")), + + NUMBER_262(new BigDecimal("262")), + + NUMBER_263(new BigDecimal("263")), + + NUMBER_264(new BigDecimal("264")), + + NUMBER_265(new BigDecimal("265")), + + NUMBER_266(new BigDecimal("266")), + + NUMBER_267(new BigDecimal("267")), + + NUMBER_268(new BigDecimal("268")), + + NUMBER_269(new BigDecimal("269")), + + NUMBER_270(new BigDecimal("270")), + + NUMBER_271(new BigDecimal("271")), + + NUMBER_272(new BigDecimal("272")), + + NUMBER_273(new BigDecimal("273")), + + NUMBER_274(new BigDecimal("274")), + + NUMBER_275(new BigDecimal("275")), + + NUMBER_276(new BigDecimal("276")), + + NUMBER_277(new BigDecimal("277")), + + NUMBER_278(new BigDecimal("278")), + + NUMBER_279(new BigDecimal("279")), + + NUMBER_280(new BigDecimal("280")), + + NUMBER_281(new BigDecimal("281")), + + NUMBER_282(new BigDecimal("282")), + + NUMBER_283(new BigDecimal("283")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")), + + NUMBER_5009(new BigDecimal("5009")), + + NUMBER_5010(new BigDecimal("5010")), + + NUMBER_5011(new BigDecimal("5011")), + + NUMBER_5012(new BigDecimal("5012")), + + NUMBER_5013(new BigDecimal("5013")), + + NUMBER_5014(new BigDecimal("5014")), + + NUMBER_5015(new BigDecimal("5015")), + + NUMBER_5016(new BigDecimal("5016")), + + NUMBER_5017(new BigDecimal("5017")), + + NUMBER_5018(new BigDecimal("5018")), + + NUMBER_5019(new BigDecimal("5019")), + + NUMBER_5020(new BigDecimal("5020")), + + NUMBER_5021(new BigDecimal("5021")), + + NUMBER_5022(new BigDecimal("5022")), + + NUMBER_5023(new BigDecimal("5023")), + + NUMBER_5024(new BigDecimal("5024")), + + NUMBER_5025(new BigDecimal("5025")), + + NUMBER_5026(new BigDecimal("5026")), + + NUMBER_5027(new BigDecimal("5027")), + + NUMBER_5028(new BigDecimal("5028")), + + NUMBER_5029(new BigDecimal("5029")), + + NUMBER_5030(new BigDecimal("5030")), + + NUMBER_5031(new BigDecimal("5031")), + + NUMBER_5032(new BigDecimal("5032")), + + NUMBER_5033(new BigDecimal("5033")), + + NUMBER_5034(new BigDecimal("5034")), + + NUMBER_5035(new BigDecimal("5035")), + + NUMBER_5036(new BigDecimal("5036")), + + NUMBER_5037(new BigDecimal("5037")), + + NUMBER_5038(new BigDecimal("5038")), + + NUMBER_5039(new BigDecimal("5039")), + + NUMBER_5040(new BigDecimal("5040")), + + NUMBER_5041(new BigDecimal("5041")), + + NUMBER_5042(new BigDecimal("5042")), + + NUMBER_5043(new BigDecimal("5043")), + + NUMBER_5044(new BigDecimal("5044")), + + NUMBER_5045(new BigDecimal("5045")), + + NUMBER_5046(new BigDecimal("5046")), + + NUMBER_5068(new BigDecimal("5068")), + + NUMBER_5069(new BigDecimal("5069")), + + NUMBER_5070(new BigDecimal("5070")), + + NUMBER_5071(new BigDecimal("5071")), + + NUMBER_5072(new BigDecimal("5072")), + + NUMBER_5073(new BigDecimal("5073")), + + NUMBER_5074(new BigDecimal("5074")), + + NUMBER_5075(new BigDecimal("5075")), + + NUMBER_5076(new BigDecimal("5076")), + + NUMBER_5077(new BigDecimal("5077")), + + NUMBER_5079(new BigDecimal("5079")), + + NUMBER_5080(new BigDecimal("5080")), + + NUMBER_5081(new BigDecimal("5081")), + + NUMBER_5082(new BigDecimal("5082")), + + NUMBER_5083(new BigDecimal("5083")), + + NUMBER_5084(new BigDecimal("5084")), + + NUMBER_5085(new BigDecimal("5085")), + + NUMBER_5086(new BigDecimal("5086")), + + NUMBER_5087(new BigDecimal("5087")), + + NUMBER_5088(new BigDecimal("5088")), + + NUMBER_5089(new BigDecimal("5089")), + + NUMBER_5090(new BigDecimal("5090")), + + NUMBER_5091(new BigDecimal("5091")), + + NUMBER_5092(new BigDecimal("5092")), + + NUMBER_5093(new BigDecimal("5093")), + + NUMBER_5094(new BigDecimal("5094")), + + NUMBER_5095(new BigDecimal("5095")), + + NUMBER_5096(new BigDecimal("5096")), + + NUMBER_5097(new BigDecimal("5097")), + + NUMBER_5098(new BigDecimal("5098")), + + NUMBER_5099(new BigDecimal("5099")), + + NUMBER_5100(new BigDecimal("5100")), + + NUMBER_5101(new BigDecimal("5101")), + + NUMBER_5102(new BigDecimal("5102")), + + NUMBER_5103(new BigDecimal("5103")), + + NUMBER_5104(new BigDecimal("5104")), + + NUMBER_5105(new BigDecimal("5105")), + + NUMBER_5106(new BigDecimal("5106")), + + NUMBER_5107(new BigDecimal("5107")), + + NUMBER_5108(new BigDecimal("5108")), + + NUMBER_5109(new BigDecimal("5109")), + + NUMBER_5110(new BigDecimal("5110")), + + NUMBER_5111(new BigDecimal("5111")), + + NUMBER_5112(new BigDecimal("5112")), + + NUMBER_5113(new BigDecimal("5113")), + + NUMBER_5114(new BigDecimal("5114")), + + NUMBER_5115(new BigDecimal("5115")), + + NUMBER_5116(new BigDecimal("5116")), + + NUMBER_5117(new BigDecimal("5117")), + + NUMBER_5118(new BigDecimal("5118")), + + NUMBER_5119(new BigDecimal("5119")), + + NUMBER_5120(new BigDecimal("5120")), + + NUMBER_5121(new BigDecimal("5121")), + + NUMBER_5122(new BigDecimal("5122")), + + NUMBER_5123(new BigDecimal("5123")), + + NUMBER_5124(new BigDecimal("5124")), + + NUMBER_5125(new BigDecimal("5125")), + + NUMBER_5126(new BigDecimal("5126")), + + NUMBER_5127(new BigDecimal("5127")), + + NUMBER_5129(new BigDecimal("5129")), + + NUMBER_5130(new BigDecimal("5130")), + + NUMBER_5131(new BigDecimal("5131")), + + NUMBER_5132(new BigDecimal("5132")), + + NUMBER_5133(new BigDecimal("5133")), + + NUMBER_5134(new BigDecimal("5134")), + + NUMBER_5135(new BigDecimal("5135")), + + NUMBER_5136(new BigDecimal("5136")), + + NUMBER_5137(new BigDecimal("5137")), + + NUMBER_5138(new BigDecimal("5138")), + + NUMBER_5139(new BigDecimal("5139")), + + NUMBER_5140(new BigDecimal("5140")), + + NUMBER_5141(new BigDecimal("5141")), + + NUMBER_5142(new BigDecimal("5142")), + + NUMBER_5143(new BigDecimal("5143")), + + NUMBER_5144(new BigDecimal("5144")), + + NUMBER_5145(new BigDecimal("5145")), + + NUMBER_5146(new BigDecimal("5146")), + + NUMBER_5147(new BigDecimal("5147")), + + NUMBER_5148(new BigDecimal("5148")), + + NUMBER_5149(new BigDecimal("5149")), + + NUMBER_5150(new BigDecimal("5150")), + + NUMBER_5151(new BigDecimal("5151")), + + NUMBER_5152(new BigDecimal("5152")), + + NUMBER_5153(new BigDecimal("5153")), + + NUMBER_5154(new BigDecimal("5154")), + + NUMBER_5157(new BigDecimal("5157")), + + NUMBER_5158(new BigDecimal("5158")), + + NUMBER_5159(new BigDecimal("5159")), + + NUMBER_5160(new BigDecimal("5160")), + + NUMBER_5161(new BigDecimal("5161")), + + NUMBER_5162(new BigDecimal("5162")), + + NUMBER_5163(new BigDecimal("5163")), + + NUMBER_5164(new BigDecimal("5164")), + + NUMBER_5165(new BigDecimal("5165")), + + NUMBER_5166(new BigDecimal("5166")), + + NUMBER_5167(new BigDecimal("5167")), + + NUMBER_5168(new BigDecimal("5168")), + + NUMBER_5169(new BigDecimal("5169")), + + NUMBER_5170(new BigDecimal("5170")), + + NUMBER_5171(new BigDecimal("5171")), + + NUMBER_5172(new BigDecimal("5172")), + + NUMBER_5173(new BigDecimal("5173")), + + NUMBER_5174(new BigDecimal("5174")), + + NUMBER_5175(new BigDecimal("5175")), + + NUMBER_5176(new BigDecimal("5176")), + + NUMBER_5177(new BigDecimal("5177")), + + NUMBER_5178(new BigDecimal("5178")), + + NUMBER_5179(new BigDecimal("5179")), + + NUMBER_5180(new BigDecimal("5180")), + + NUMBER_5181(new BigDecimal("5181")), + + NUMBER_5182(new BigDecimal("5182")), + + NUMBER_5184(new BigDecimal("5184")), + + NUMBER_5185(new BigDecimal("5185")), + + NUMBER_5186(new BigDecimal("5186")), + + NUMBER_5187(new BigDecimal("5187")), + + NUMBER_5188(new BigDecimal("5188")), + + NUMBER_5189(new BigDecimal("5189")), + + NUMBER_5190(new BigDecimal("5190")), + + NUMBER_5191(new BigDecimal("5191")), + + NUMBER_5196(new BigDecimal("5196")), + + NUMBER_5198(new BigDecimal("5198")), + + NUMBER_5199(new BigDecimal("5199")), + + NUMBER_5200(new BigDecimal("5200")), + + NUMBER_5201(new BigDecimal("5201")), + + NUMBER_5202(new BigDecimal("5202")), + + NUMBER_5203(new BigDecimal("5203")), + + NUMBER_5204(new BigDecimal("5204")), + + NUMBER_5205(new BigDecimal("5205")), + + NUMBER_5206(new BigDecimal("5206")), + + NUMBER_5207(new BigDecimal("5207")), + + NUMBER_5211(new BigDecimal("5211")), + + NUMBER_5212(new BigDecimal("5212")), + + NUMBER_90001(new BigDecimal("90001")), + + NUMBER_90002(new BigDecimal("90002")), + + NUMBER_90003(new BigDecimal("90003")), + + NUMBER_90004(new BigDecimal("90004")), + + NUMBER_90005(new BigDecimal("90005")), + + NUMBER_90006(new BigDecimal("90006")), + + NUMBER_90007(new BigDecimal("90007")), + + NUMBER_90008(new BigDecimal("90008")), + + NUMBER_90009(new BigDecimal("90009")), + + NUMBER_90010(new BigDecimal("90010")), + + NUMBER_90011(new BigDecimal("90011")); + + private BigDecimal value; + + UnitAmenityListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static UnitAmenityListEnum fromValue(BigDecimal value) { + for (UnitAmenityListEnum b : UnitAmenityListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final UnitAmenityListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public UnitAmenityListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return UnitAmenityListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_UNIT_AMENITY_LIST = "unitAmenityList"; + @SerializedName(SERIALIZED_NAME_UNIT_AMENITY_LIST) + private List unitAmenityList = null; + + /** + * Gets or Sets mealPlanList + */ + @JsonAdapter(MealPlanListEnum.Adapter.class) + public enum MealPlanListEnum { + NUMBER_0(new BigDecimal("0")), + + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_90001(new BigDecimal("90001")); + + private BigDecimal value; + + MealPlanListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MealPlanListEnum fromValue(BigDecimal value) { + for (MealPlanListEnum b : MealPlanListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MealPlanListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MealPlanListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MealPlanListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_MEAL_PLAN_LIST = "mealPlanList"; + @SerializedName(SERIALIZED_NAME_MEAL_PLAN_LIST) + private List mealPlanList = null; + + public AvailabilitySearchPostRequest() { + } + + public AvailabilitySearchPostRequest adultCount(Integer adultCount) { + + this.adultCount = adultCount; + return this; + } + + /** + * The amount of adults that will stay at the property. + * minimum: 1 + * @return adultCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2", value = "The amount of adults that will stay at the property.") + + public Integer getAdultCount() { + return adultCount; + } + + + public void setAdultCount(Integer adultCount) { + this.adultCount = adultCount; + } + + + public AvailabilitySearchPostRequest childCount(Integer childCount) { + + this.childCount = childCount; + return this; + } + + /** + * The amount of children that will stay at the property. + * minimum: 0 + * @return childCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2", value = "The amount of children that will stay at the property.") + + public Integer getChildCount() { + return childCount; + } + + + public void setChildCount(Integer childCount) { + this.childCount = childCount; + } + + + public AvailabilitySearchPostRequest childAgeList(List childAgeList) { + + this.childAgeList = childAgeList; + return this; + } + + public AvailabilitySearchPostRequest addChildAgeListItem(Integer childAgeListItem) { + if (this.childAgeList == null) { + this.childAgeList = new ArrayList<>(); + } + this.childAgeList.add(childAgeListItem); + return this; + } + + /** + * A list describing the ages of the children that will stay at the property. If <code>childAgeList</code> is set <code>childCount</code> has to be set as well. If <code>childAgeList</code> and <code>childCount</code> are set, <code>childCount</code> must be equal to the length of <code>childAgeList</code>. + * @return childAgeList + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[4,7]", value = "A list describing the ages of the children that will stay at the property. If childAgeList is set childCount has to be set as well. If childAgeList and childCount are set, childCount must be equal to the length of childAgeList.") + + public List getChildAgeList() { + return childAgeList; + } + + + public void setChildAgeList(List childAgeList) { + this.childAgeList = childAgeList; + } + + + public AvailabilitySearchPostRequest currencyCode(CurrencyCodeEnum currencyCode) { + + this.currencyCode = currencyCode; + return this; + } + + /** + * The currency code of the currency in which the lowest price for each found location should be returned.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> + * @return currencyCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "EUR", required = true, value = "The currency code of the currency in which the lowest price for each found location should be returned.

See also in the appendix.

") + + public CurrencyCodeEnum getCurrencyCode() { + return currencyCode; + } + + + public void setCurrencyCode(CurrencyCodeEnum currencyCode) { + this.currencyCode = currencyCode; + } + + + public AvailabilitySearchPostRequest languageCode(LanguageCodeEnum languageCode) { + + this.languageCode = languageCode; + return this; + } + + /** + * The language code of the language in which the descriptive texts for each found property should be returned.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + * @return languageCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "en", required = true, value = "The language code of the language in which the descriptive texts for each found property should be returned.

Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.

See also in the appendix.

") + + public LanguageCodeEnum getLanguageCode() { + return languageCode; + } + + + public void setLanguageCode(LanguageCodeEnum languageCode) { + this.languageCode = languageCode; + } + + + public AvailabilitySearchPostRequest unitSystem(UnitSystemEnum unitSystem) { + + this.unitSystem = unitSystem; + return this; + } + + /** + * The unit system to use in the result. + * @return unitSystem + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "The unit system to use in the result.") + + public UnitSystemEnum getUnitSystem() { + return unitSystem; + } + + + public void setUnitSystem(UnitSystemEnum unitSystem) { + this.unitSystem = unitSystem; + } + + + public AvailabilitySearchPostRequest minLengthOfStay(Integer minLengthOfStay) { + + this.minLengthOfStay = minLengthOfStay; + return this; + } + + /** + * The desired minimum length of stay in nights. + * minimum: 1 + * maximum: 30 + * @return minLengthOfStay + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "1", value = "The desired minimum length of stay in nights.") + + public Integer getMinLengthOfStay() { + return minLengthOfStay; + } + + + public void setMinLengthOfStay(Integer minLengthOfStay) { + this.minLengthOfStay = minLengthOfStay; + } + + + public AvailabilitySearchPostRequest maxLengthOfStay(Integer maxLengthOfStay) { + + this.maxLengthOfStay = maxLengthOfStay; + return this; + } + + /** + * The desired maximum length of stay in nights. + * minimum: 1 + * maximum: 30 + * @return maxLengthOfStay + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "27", value = "The desired maximum length of stay in nights.") + + public Integer getMaxLengthOfStay() { + return maxLengthOfStay; + } + + + public void setMaxLengthOfStay(Integer maxLengthOfStay) { + this.maxLengthOfStay = maxLengthOfStay; + } + + + public AvailabilitySearchPostRequest locationName(String locationName) { + + this.locationName = locationName; + return this; + } + + /** + * The name of a location the properties should be located in.If <code>locationType</code> is set, <code>locationName</code> has to bet set as well. + * @return locationName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Oberbayern", value = "The name of a location the properties should be located in.If locationType is set, locationName has to bet set as well.") + + public String getLocationName() { + return locationName; + } + + + public void setLocationName(String locationName) { + this.locationName = locationName; + } + + + public AvailabilitySearchPostRequest locationType(LocationTypeEnum locationType) { + + this.locationType = locationType; + return this; + } + + /** + * Defines the type of<code>locationName</code>. If <code>locationType</code> is set, <code>locationName</code> has to bet set as well.<p>See also <a href=\"#locationtypes\">in the appendix</a>.</p> + * @return locationType + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "locality", value = "Defines the type oflocationName. If locationType is set, locationName has to bet set as well.

See also in the appendix.

") + + public LocationTypeEnum getLocationType() { + return locationType; + } + + + public void setLocationType(LocationTypeEnum locationType) { + this.locationType = locationType; + } + + + public AvailabilitySearchPostRequest earliestArrival(String earliestArrival) { + + this.earliestArrival = earliestArrival; + return this; + } + + /** + * The earliest possible arrival date. Expects exactly the format of \"YYYY-MM-DD\". + * @return earliestArrival + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2022-09-01", value = "The earliest possible arrival date. Expects exactly the format of \"YYYY-MM-DD\".") + + public String getEarliestArrival() { + return earliestArrival; + } + + + public void setEarliestArrival(String earliestArrival) { + this.earliestArrival = earliestArrival; + } + + + public AvailabilitySearchPostRequest latestReturn(String latestReturn) { + + this.latestReturn = latestReturn; + return this; + } + + /** + * The latest possible departure date. Expects exactly the format of \"YYYY-MM-DD\". + * @return latestReturn + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "2022-09-08", value = "The latest possible departure date. Expects exactly the format of \"YYYY-MM-DD\".") + + public String getLatestReturn() { + return latestReturn; + } + + + public void setLatestReturn(String latestReturn) { + this.latestReturn = latestReturn; + } + + + public AvailabilitySearchPostRequest sort(SortEnum sort) { + + this.sort = sort; + return this; + } + + /** + * The criteria to order the results by. Sort order for price is ascending, sort order for quality is always descending. Quality is an internally calculated score for the property.', )} + * @return sort + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "price", value = "The criteria to order the results by. Sort order for price is ascending, sort order for quality is always descending. Quality is an internally calculated score for the property.', )}") + + public SortEnum getSort() { + return sort; + } + + + public void setSort(SortEnum sort) { + this.sort = sort; + } + + + public AvailabilitySearchPostRequest serviceList(List serviceList) { + + this.serviceList = serviceList; + return this; + } + + public AvailabilitySearchPostRequest addServiceListItem(ServiceListEnum serviceListItem) { + if (this.serviceList == null) { + this.serviceList = new ArrayList<>(); + } + this.serviceList.add(serviceListItem); + return this; + } + + /** + * A list of service codes indicating which services and amenities the entire property should offer. The codes are AND chained.<p>See also <a href=\"#servicecodes\">in the appendix</a>.</p> + * @return serviceList + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[1,2]", value = "A list of service codes indicating which services and amenities the entire property should offer. The codes are AND chained.

See also in the appendix.

") + + public List getServiceList() { + return serviceList; + } + + + public void setServiceList(List serviceList) { + this.serviceList = serviceList; + } + + + public AvailabilitySearchPostRequest typeList(List typeList) { + + this.typeList = typeList; + return this; + } + + public AvailabilitySearchPostRequest addTypeListItem(TypeListEnum typeListItem) { + if (this.typeList == null) { + this.typeList = new ArrayList<>(); + } + this.typeList.add(typeListItem); + return this; + } + + /** + * A list of property class type codes specifying the desired property classes. The codes are OR chained.<p>See also <a href=\"#propertyclass-type-codes\">in the appendix</a>.</p> + * @return typeList + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[3,4]", value = "A list of property class type codes specifying the desired property classes. The codes are OR chained.

See also in the appendix.

") + + public List getTypeList() { + return typeList; + } + + + public void setTypeList(List typeList) { + this.typeList = typeList; + } + + + public AvailabilitySearchPostRequest unitTypeList(List unitTypeList) { + + this.unitTypeList = unitTypeList; + return this; + } + + public AvailabilitySearchPostRequest addUnitTypeListItem(UnitTypeListEnum unitTypeListItem) { + if (this.unitTypeList == null) { + this.unitTypeList = new ArrayList<>(); + } + this.unitTypeList.add(unitTypeListItem); + return this; + } + + /** + * A list of unit and room type codes indicating which kinds of unit/room type is desired.<p>See also <a href=\"#unitand-room-type-codes\">in the appendix</a>.</p> + * @return unitTypeList + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[5,6]", value = "A list of unit and room type codes indicating which kinds of unit/room type is desired.

See also in the appendix.

") + + public List getUnitTypeList() { + return unitTypeList; + } + + + public void setUnitTypeList(List unitTypeList) { + this.unitTypeList = unitTypeList; + } + + + public AvailabilitySearchPostRequest unitAmenityList(List unitAmenityList) { + + this.unitAmenityList = unitAmenityList; + return this; + } + + public AvailabilitySearchPostRequest addUnitAmenityListItem(UnitAmenityListEnum unitAmenityListItem) { + if (this.unitAmenityList == null) { + this.unitAmenityList = new ArrayList<>(); + } + this.unitAmenityList.add(unitAmenityListItem); + return this; + } + + /** + * A list of room amenity type codes indicating which room level amenities are desired. The codes are AND chained.<p>See also <a href=\"#unitand-room-amenity-type-codes\">in the appendix</a>.</p> + * @return unitAmenityList + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[7,8]", value = "A list of room amenity type codes indicating which room level amenities are desired. The codes are AND chained.

See also in the appendix.

") + + public List getUnitAmenityList() { + return unitAmenityList; + } + + + public void setUnitAmenityList(List unitAmenityList) { + this.unitAmenityList = unitAmenityList; + } + + + public AvailabilitySearchPostRequest mealPlanList(List mealPlanList) { + + this.mealPlanList = mealPlanList; + return this; + } + + public AvailabilitySearchPostRequest addMealPlanListItem(MealPlanListEnum mealPlanListItem) { + if (this.mealPlanList == null) { + this.mealPlanList = new ArrayList<>(); + } + this.mealPlanList.add(mealPlanListItem); + return this; + } + + /** + * A list of meal plan type codes indicating which kinds of meal plan type is desired.<p>See also <a href=\"#mealplan-type-codes\">in the appendix</a>.</p> + * @return mealPlanList + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[9,10]", value = "A list of meal plan type codes indicating which kinds of meal plan type is desired.

See also in the appendix.

") + + public List getMealPlanList() { + return mealPlanList; + } + + + public void setMealPlanList(List mealPlanList) { + this.mealPlanList = mealPlanList; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AvailabilitySearchPostRequest availabilitySearchPostRequest = (AvailabilitySearchPostRequest) o; + return Objects.equals(this.adultCount, availabilitySearchPostRequest.adultCount) && + Objects.equals(this.childCount, availabilitySearchPostRequest.childCount) && + Objects.equals(this.childAgeList, availabilitySearchPostRequest.childAgeList) && + Objects.equals(this.currencyCode, availabilitySearchPostRequest.currencyCode) && + Objects.equals(this.languageCode, availabilitySearchPostRequest.languageCode) && + Objects.equals(this.unitSystem, availabilitySearchPostRequest.unitSystem) && + Objects.equals(this.minLengthOfStay, availabilitySearchPostRequest.minLengthOfStay) && + Objects.equals(this.maxLengthOfStay, availabilitySearchPostRequest.maxLengthOfStay) && + Objects.equals(this.locationName, availabilitySearchPostRequest.locationName) && + Objects.equals(this.locationType, availabilitySearchPostRequest.locationType) && + Objects.equals(this.earliestArrival, availabilitySearchPostRequest.earliestArrival) && + Objects.equals(this.latestReturn, availabilitySearchPostRequest.latestReturn) && + Objects.equals(this.sort, availabilitySearchPostRequest.sort) && + Objects.equals(this.serviceList, availabilitySearchPostRequest.serviceList) && + Objects.equals(this.typeList, availabilitySearchPostRequest.typeList) && + Objects.equals(this.unitTypeList, availabilitySearchPostRequest.unitTypeList) && + Objects.equals(this.unitAmenityList, availabilitySearchPostRequest.unitAmenityList) && + Objects.equals(this.mealPlanList, availabilitySearchPostRequest.mealPlanList); + } + + @Override + public int hashCode() { + return Objects.hash(adultCount, childCount, childAgeList, currencyCode, languageCode, unitSystem, minLengthOfStay, maxLengthOfStay, locationName, locationType, earliestArrival, latestReturn, sort, serviceList, typeList, unitTypeList, unitAmenityList, mealPlanList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AvailabilitySearchPostRequest {\n"); + sb.append(" adultCount: ").append(toIndentedString(adultCount)).append("\n"); + sb.append(" childCount: ").append(toIndentedString(childCount)).append("\n"); + sb.append(" childAgeList: ").append(toIndentedString(childAgeList)).append("\n"); + sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n"); + sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n"); + sb.append(" unitSystem: ").append(toIndentedString(unitSystem)).append("\n"); + sb.append(" minLengthOfStay: ").append(toIndentedString(minLengthOfStay)).append("\n"); + sb.append(" maxLengthOfStay: ").append(toIndentedString(maxLengthOfStay)).append("\n"); + sb.append(" locationName: ").append(toIndentedString(locationName)).append("\n"); + sb.append(" locationType: ").append(toIndentedString(locationType)).append("\n"); + sb.append(" earliestArrival: ").append(toIndentedString(earliestArrival)).append("\n"); + sb.append(" latestReturn: ").append(toIndentedString(latestReturn)).append("\n"); + sb.append(" sort: ").append(toIndentedString(sort)).append("\n"); + sb.append(" serviceList: ").append(toIndentedString(serviceList)).append("\n"); + sb.append(" typeList: ").append(toIndentedString(typeList)).append("\n"); + sb.append(" unitTypeList: ").append(toIndentedString(unitTypeList)).append("\n"); + sb.append(" unitAmenityList: ").append(toIndentedString(unitAmenityList)).append("\n"); + sb.append(" mealPlanList: ").append(toIndentedString(mealPlanList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("adultCount"); + openapiFields.add("childCount"); + openapiFields.add("childAgeList"); + openapiFields.add("currencyCode"); + openapiFields.add("languageCode"); + openapiFields.add("unitSystem"); + openapiFields.add("minLengthOfStay"); + openapiFields.add("maxLengthOfStay"); + openapiFields.add("locationName"); + openapiFields.add("locationType"); + openapiFields.add("earliestArrival"); + openapiFields.add("latestReturn"); + openapiFields.add("sort"); + openapiFields.add("serviceList"); + openapiFields.add("typeList"); + openapiFields.add("unitTypeList"); + openapiFields.add("unitAmenityList"); + openapiFields.add("mealPlanList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("currencyCode"); + openapiRequiredFields.add("languageCode"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AvailabilitySearchPostRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AvailabilitySearchPostRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AvailabilitySearchPostRequest is not found in the empty JSON string", AvailabilitySearchPostRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AvailabilitySearchPostRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AvailabilitySearchPostRequest` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AvailabilitySearchPostRequest.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the json data is an array + if (jsonObj.get("childAgeList") != null && !jsonObj.get("childAgeList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `childAgeList` to be an array in the JSON string but got `%s`", jsonObj.get("childAgeList").toString())); + } + if (jsonObj.get("currencyCode") != null && !jsonObj.get("currencyCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currencyCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currencyCode").toString())); + } + if (jsonObj.get("languageCode") != null && !jsonObj.get("languageCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `languageCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("languageCode").toString())); + } + if (jsonObj.get("unitSystem") != null && !jsonObj.get("unitSystem").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `unitSystem` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unitSystem").toString())); + } + if (jsonObj.get("locationName") != null && !jsonObj.get("locationName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `locationName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("locationName").toString())); + } + if (jsonObj.get("locationType") != null && !jsonObj.get("locationType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `locationType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("locationType").toString())); + } + if (jsonObj.get("earliestArrival") != null && !jsonObj.get("earliestArrival").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `earliestArrival` to be a primitive type in the JSON string but got `%s`", jsonObj.get("earliestArrival").toString())); + } + if (jsonObj.get("latestReturn") != null && !jsonObj.get("latestReturn").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `latestReturn` to be a primitive type in the JSON string but got `%s`", jsonObj.get("latestReturn").toString())); + } + if (jsonObj.get("sort") != null && !jsonObj.get("sort").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sort` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sort").toString())); + } + // ensure the json data is an array + if (jsonObj.get("serviceList") != null && !jsonObj.get("serviceList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `serviceList` to be an array in the JSON string but got `%s`", jsonObj.get("serviceList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("typeList") != null && !jsonObj.get("typeList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `typeList` to be an array in the JSON string but got `%s`", jsonObj.get("typeList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("unitTypeList") != null && !jsonObj.get("unitTypeList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `unitTypeList` to be an array in the JSON string but got `%s`", jsonObj.get("unitTypeList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("unitAmenityList") != null && !jsonObj.get("unitAmenityList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `unitAmenityList` to be an array in the JSON string but got `%s`", jsonObj.get("unitAmenityList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("mealPlanList") != null && !jsonObj.get("mealPlanList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `mealPlanList` to be an array in the JSON string but got `%s`", jsonObj.get("mealPlanList").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AvailabilitySearchPostRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AvailabilitySearchPostRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AvailabilitySearchPostRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AvailabilitySearchPostRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AvailabilitySearchPostRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AvailabilitySearchPostRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of AvailabilitySearchPostRequest + * @throws IOException if the JSON string is invalid with respect to AvailabilitySearchPostRequest + */ + public static AvailabilitySearchPostRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AvailabilitySearchPostRequest.class); + } + + /** + * Convert an instance of AvailabilitySearchPostRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/AvailablePropertiesInner.java b/src/main/java/com/lodgea/model/AvailablePropertiesInner.java new file mode 100644 index 0000000..7182854 --- /dev/null +++ b/src/main/java/com/lodgea/model/AvailablePropertiesInner.java @@ -0,0 +1,547 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * AvailablePropertiesInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class AvailablePropertiesInner { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + /** + * The currency code of the currency of the lowest price. + */ + @JsonAdapter(CurrencyCodeEnum.Adapter.class) + public enum CurrencyCodeEnum { + AED("AED"), + + ARS("ARS"), + + AUD("AUD"), + + AZN("AZN"), + + BGN("BGN"), + + BHD("BHD"), + + BRL("BRL"), + + CAD("CAD"), + + CHF("CHF"), + + CLP("CLP"), + + CNY("CNY"), + + COP("COP"), + + CZK("CZK"), + + DKK("DKK"), + + EGP("EGP"), + + EUR("EUR"), + + FJD("FJD"), + + GBP("GBP"), + + GEL("GEL"), + + HKD("HKD"), + + HUF("HUF"), + + IDR("IDR"), + + ILS("ILS"), + + INR("INR"), + + JOD("JOD"), + + JPY("JPY"), + + KRW("KRW"), + + KWD("KWD"), + + KZT("KZT"), + + MDL("MDL"), + + MXN("MXN"), + + MYR("MYR"), + + NAD("NAD"), + + NOK("NOK"), + + NZD("NZD"), + + OMR("OMR"), + + PLN("PLN"), + + QAR("QAR"), + + RON("RON"), + + RUB("RUB"), + + SAR("SAR"), + + SEK("SEK"), + + SGD("SGD"), + + THB("THB"), + + TRY("TRY"), + + TWD("TWD"), + + UAH("UAH"), + + USD("USD"), + + XOF("XOF"), + + ZAR("ZAR"); + + private String value; + + CurrencyCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CurrencyCodeEnum fromValue(String value) { + for (CurrencyCodeEnum b : CurrencyCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CurrencyCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CurrencyCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CurrencyCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CURRENCY_CODE = "currencyCode"; + @SerializedName(SERIALIZED_NAME_CURRENCY_CODE) + private CurrencyCodeEnum currencyCode; + + public static final String SERIALIZED_NAME_LOWEST_PRICE = "lowestPrice"; + @SerializedName(SERIALIZED_NAME_LOWEST_PRICE) + private BigDecimal lowestPrice; + + /** + * The type of the found location.<p>See also <a href=\"#locationtypes\">in the appendix</a>.</p> + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + FORMATTED_ADDRESS("formatted_address"), + + PLACE_ID("place_id"), + + LOCALITY("locality"), + + ADMINISTRATIVE_AREA_LEVEL_1("administrative_area_level_1"), + + ADMINISTRATIVE_AREA_LEVEL_2("administrative_area_level_2"), + + ADMINISTRATIVE_AREA_LEVEL_3("administrative_area_level_3"), + + ADMINISTRATIVE_AREA_LEVEL_4("administrative_area_level_4"), + + ADMINISTRATIVE_AREA_LEVEL_5("administrative_area_level_5"), + + STATE_CODE("state_code"), + + COUNTRY("country"), + + COUNTRY_CODE("country_code"), + + POSTAL_CODE("postal_code"), + + LANGUAGE("language"), + + NATURAL_FEATURE("natural_feature"), + + ESTABLISHMENT("establishment"), + + SUBLOCALITY("sublocality"), + + SUBLOCALITY_LEVEL_1("sublocality_level_1"), + + SUBLOCALITY_LEVEL_2("sublocality_level_2"), + + SUBLOCALITY_LEVEL_3("sublocality_level_3"), + + SUBLOCALITY_LEVEL_4("sublocality_level_4"), + + SUBLOCALITY_LEVEL_5("sublocality_level_5"), + + STREETNUMBER("streetNumber"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public AvailablePropertiesInner() { + } + + public AvailablePropertiesInner name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the location. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Westerland", required = true, value = "The name of the location.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public AvailablePropertiesInner currencyCode(CurrencyCodeEnum currencyCode) { + + this.currencyCode = currencyCode; + return this; + } + + /** + * The currency code of the currency of the lowest price. + * @return currencyCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "EUR", required = true, value = "The currency code of the currency of the lowest price.") + + public CurrencyCodeEnum getCurrencyCode() { + return currencyCode; + } + + + public void setCurrencyCode(CurrencyCodeEnum currencyCode) { + this.currencyCode = currencyCode; + } + + + public AvailablePropertiesInner lowestPrice(BigDecimal lowestPrice) { + + this.lowestPrice = lowestPrice; + return this; + } + + /** + * The lowest price available for this location. + * @return lowestPrice + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "99.99", required = true, value = "The lowest price available for this location.") + + public BigDecimal getLowestPrice() { + return lowestPrice; + } + + + public void setLowestPrice(BigDecimal lowestPrice) { + this.lowestPrice = lowestPrice; + } + + + public AvailablePropertiesInner type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * The type of the found location.<p>See also <a href=\"#locationtypes\">in the appendix</a>.</p> + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "sublocality", required = true, value = "The type of the found location.

See also in the appendix.

") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AvailablePropertiesInner availablePropertiesInner = (AvailablePropertiesInner) o; + return Objects.equals(this.name, availablePropertiesInner.name) && + Objects.equals(this.currencyCode, availablePropertiesInner.currencyCode) && + Objects.equals(this.lowestPrice, availablePropertiesInner.lowestPrice) && + Objects.equals(this.type, availablePropertiesInner.type); + } + + @Override + public int hashCode() { + return Objects.hash(name, currencyCode, lowestPrice, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AvailablePropertiesInner {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n"); + sb.append(" lowestPrice: ").append(toIndentedString(lowestPrice)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + openapiFields.add("currencyCode"); + openapiFields.add("lowestPrice"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("currencyCode"); + openapiRequiredFields.add("lowestPrice"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AvailablePropertiesInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AvailablePropertiesInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AvailablePropertiesInner is not found in the empty JSON string", AvailablePropertiesInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AvailablePropertiesInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AvailablePropertiesInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AvailablePropertiesInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (jsonObj.get("currencyCode") != null && !jsonObj.get("currencyCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currencyCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currencyCode").toString())); + } + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AvailablePropertiesInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AvailablePropertiesInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AvailablePropertiesInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AvailablePropertiesInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AvailablePropertiesInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AvailablePropertiesInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of AvailablePropertiesInner + * @throws IOException if the JSON string is invalid with respect to AvailablePropertiesInner + */ + public static AvailablePropertiesInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AvailablePropertiesInner.class); + } + + /** + * Convert an instance of AvailablePropertiesInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/AvailablePropertiesInner1.java b/src/main/java/com/lodgea/model/AvailablePropertiesInner1.java new file mode 100644 index 0000000..39fc9ac --- /dev/null +++ b/src/main/java/com/lodgea/model/AvailablePropertiesInner1.java @@ -0,0 +1,2300 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner1AttractionListInner; +import com.lodgea.model.AvailablePropertiesInner1Geo; +import com.lodgea.model.AvailablePropertiesInner1LowestPrice; +import com.lodgea.model.AvailablePropertiesInner1MediaListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * AvailablePropertiesInner1 + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class AvailablePropertiesInner1 { + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private String code; + + /** + * The language code of the language in which the property description is written.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(LanguageCodeEnum.Adapter.class) + public enum LanguageCodeEnum { + AF("af"), + + AR("ar"), + + BG("bg"), + + CA("ca"), + + CS("cs"), + + DA("da"), + + DE("de"), + + EL("el"), + + EN("en"), + + ES("es"), + + ET("et"), + + FI("fi"), + + FR("fr"), + + HE("he"), + + HI("hi"), + + HR("hr"), + + HU("hu"), + + ID("id"), + + IS("is"), + + IT("it"), + + JA("ja"), + + KO("ko"), + + LT("lt"), + + LV("lv"), + + NL("nl"), + + NO("no"), + + PL("pl"), + + PT("pt"), + + RO("ro"), + + RU("ru"), + + SK("sk"), + + SL("sl"), + + SR("sr"), + + SV("sv"), + + TH("th"), + + TR("tr"), + + VI("vi"), + + ZH("zh"); + + private String value; + + LanguageCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LanguageCodeEnum fromValue(String value) { + for (LanguageCodeEnum b : LanguageCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LanguageCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LanguageCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LanguageCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_LANGUAGE_CODE = "languageCode"; + @SerializedName(SERIALIZED_NAME_LANGUAGE_CODE) + private LanguageCodeEnum languageCode; + + /** + * The currency code for the currency in which prices are returned.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> + */ + @JsonAdapter(CurrencyCodeEnum.Adapter.class) + public enum CurrencyCodeEnum { + AED("AED"), + + ARS("ARS"), + + AUD("AUD"), + + AZN("AZN"), + + BGN("BGN"), + + BHD("BHD"), + + BRL("BRL"), + + CAD("CAD"), + + CHF("CHF"), + + CLP("CLP"), + + CNY("CNY"), + + COP("COP"), + + CZK("CZK"), + + DKK("DKK"), + + EGP("EGP"), + + EUR("EUR"), + + FJD("FJD"), + + GBP("GBP"), + + GEL("GEL"), + + HKD("HKD"), + + HUF("HUF"), + + IDR("IDR"), + + ILS("ILS"), + + INR("INR"), + + JOD("JOD"), + + JPY("JPY"), + + KRW("KRW"), + + KWD("KWD"), + + KZT("KZT"), + + MDL("MDL"), + + MXN("MXN"), + + MYR("MYR"), + + NAD("NAD"), + + NOK("NOK"), + + NZD("NZD"), + + OMR("OMR"), + + PLN("PLN"), + + QAR("QAR"), + + RON("RON"), + + RUB("RUB"), + + SAR("SAR"), + + SEK("SEK"), + + SGD("SGD"), + + THB("THB"), + + TRY("TRY"), + + TWD("TWD"), + + UAH("UAH"), + + USD("USD"), + + XOF("XOF"), + + ZAR("ZAR"); + + private String value; + + CurrencyCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CurrencyCodeEnum fromValue(String value) { + for (CurrencyCodeEnum b : CurrencyCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CurrencyCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CurrencyCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CurrencyCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CURRENCY_CODE = "currencyCode"; + @SerializedName(SERIALIZED_NAME_CURRENCY_CODE) + private CurrencyCodeEnum currencyCode; + + /** + * The unit system (either \"metric\" or \"imperial\") used for measurements. + */ + @JsonAdapter(UnitSystemEnum.Adapter.class) + public enum UnitSystemEnum { + METRIC("metric"), + + IMPERIAL("imperial"); + + private String value; + + UnitSystemEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static UnitSystemEnum fromValue(String value) { + for (UnitSystemEnum b : UnitSystemEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final UnitSystemEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public UnitSystemEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return UnitSystemEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_UNIT_SYSTEM = "unitSystem"; + @SerializedName(SERIALIZED_NAME_UNIT_SYSTEM) + private UnitSystemEnum unitSystem; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_URI = "uri"; + @SerializedName(SERIALIZED_NAME_URI) + private String uri; + + /** + * Gets or Sets serviceList + */ + @JsonAdapter(ServiceListEnum.Adapter.class) + public enum ServiceListEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_30(new BigDecimal("30")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")), + + NUMBER_34(new BigDecimal("34")), + + NUMBER_35(new BigDecimal("35")), + + NUMBER_36(new BigDecimal("36")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_38(new BigDecimal("38")), + + NUMBER_39(new BigDecimal("39")), + + NUMBER_40(new BigDecimal("40")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_44(new BigDecimal("44")), + + NUMBER_45(new BigDecimal("45")), + + NUMBER_46(new BigDecimal("46")), + + NUMBER_47(new BigDecimal("47")), + + NUMBER_48(new BigDecimal("48")), + + NUMBER_49(new BigDecimal("49")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_51(new BigDecimal("51")), + + NUMBER_52(new BigDecimal("52")), + + NUMBER_53(new BigDecimal("53")), + + NUMBER_54(new BigDecimal("54")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_56(new BigDecimal("56")), + + NUMBER_57(new BigDecimal("57")), + + NUMBER_58(new BigDecimal("58")), + + NUMBER_59(new BigDecimal("59")), + + NUMBER_60(new BigDecimal("60")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_62(new BigDecimal("62")), + + NUMBER_63(new BigDecimal("63")), + + NUMBER_64(new BigDecimal("64")), + + NUMBER_65(new BigDecimal("65")), + + NUMBER_66(new BigDecimal("66")), + + NUMBER_67(new BigDecimal("67")), + + NUMBER_68(new BigDecimal("68")), + + NUMBER_69(new BigDecimal("69")), + + NUMBER_70(new BigDecimal("70")), + + NUMBER_71(new BigDecimal("71")), + + NUMBER_72(new BigDecimal("72")), + + NUMBER_73(new BigDecimal("73")), + + NUMBER_74(new BigDecimal("74")), + + NUMBER_75(new BigDecimal("75")), + + NUMBER_76(new BigDecimal("76")), + + NUMBER_77(new BigDecimal("77")), + + NUMBER_78(new BigDecimal("78")), + + NUMBER_79(new BigDecimal("79")), + + NUMBER_80(new BigDecimal("80")), + + NUMBER_81(new BigDecimal("81")), + + NUMBER_82(new BigDecimal("82")), + + NUMBER_83(new BigDecimal("83")), + + NUMBER_84(new BigDecimal("84")), + + NUMBER_85(new BigDecimal("85")), + + NUMBER_86(new BigDecimal("86")), + + NUMBER_87(new BigDecimal("87")), + + NUMBER_88(new BigDecimal("88")), + + NUMBER_89(new BigDecimal("89")), + + NUMBER_90(new BigDecimal("90")), + + NUMBER_91(new BigDecimal("91")), + + NUMBER_92(new BigDecimal("92")), + + NUMBER_93(new BigDecimal("93")), + + NUMBER_94(new BigDecimal("94")), + + NUMBER_95(new BigDecimal("95")), + + NUMBER_96(new BigDecimal("96")), + + NUMBER_97(new BigDecimal("97")), + + NUMBER_98(new BigDecimal("98")), + + NUMBER_99(new BigDecimal("99")), + + NUMBER_100(new BigDecimal("100")), + + NUMBER_101(new BigDecimal("101")), + + NUMBER_102(new BigDecimal("102")), + + NUMBER_103(new BigDecimal("103")), + + NUMBER_104(new BigDecimal("104")), + + NUMBER_105(new BigDecimal("105")), + + NUMBER_106(new BigDecimal("106")), + + NUMBER_107(new BigDecimal("107")), + + NUMBER_108(new BigDecimal("108")), + + NUMBER_109(new BigDecimal("109")), + + NUMBER_110(new BigDecimal("110")), + + NUMBER_111(new BigDecimal("111")), + + NUMBER_112(new BigDecimal("112")), + + NUMBER_113(new BigDecimal("113")), + + NUMBER_114(new BigDecimal("114")), + + NUMBER_115(new BigDecimal("115")), + + NUMBER_116(new BigDecimal("116")), + + NUMBER_117(new BigDecimal("117")), + + NUMBER_118(new BigDecimal("118")), + + NUMBER_119(new BigDecimal("119")), + + NUMBER_120(new BigDecimal("120")), + + NUMBER_121(new BigDecimal("121")), + + NUMBER_122(new BigDecimal("122")), + + NUMBER_123(new BigDecimal("123")), + + NUMBER_124(new BigDecimal("124")), + + NUMBER_125(new BigDecimal("125")), + + NUMBER_126(new BigDecimal("126")), + + NUMBER_127(new BigDecimal("127")), + + NUMBER_128(new BigDecimal("128")), + + NUMBER_129(new BigDecimal("129")), + + NUMBER_130(new BigDecimal("130")), + + NUMBER_131(new BigDecimal("131")), + + NUMBER_132(new BigDecimal("132")), + + NUMBER_133(new BigDecimal("133")), + + NUMBER_134(new BigDecimal("134")), + + NUMBER_135(new BigDecimal("135")), + + NUMBER_136(new BigDecimal("136")), + + NUMBER_137(new BigDecimal("137")), + + NUMBER_138(new BigDecimal("138")), + + NUMBER_139(new BigDecimal("139")), + + NUMBER_140(new BigDecimal("140")), + + NUMBER_141(new BigDecimal("141")), + + NUMBER_142(new BigDecimal("142")), + + NUMBER_143(new BigDecimal("143")), + + NUMBER_144(new BigDecimal("144")), + + NUMBER_145(new BigDecimal("145")), + + NUMBER_146(new BigDecimal("146")), + + NUMBER_147(new BigDecimal("147")), + + NUMBER_148(new BigDecimal("148")), + + NUMBER_149(new BigDecimal("149")), + + NUMBER_150(new BigDecimal("150")), + + NUMBER_151(new BigDecimal("151")), + + NUMBER_152(new BigDecimal("152")), + + NUMBER_153(new BigDecimal("153")), + + NUMBER_154(new BigDecimal("154")), + + NUMBER_155(new BigDecimal("155")), + + NUMBER_156(new BigDecimal("156")), + + NUMBER_157(new BigDecimal("157")), + + NUMBER_158(new BigDecimal("158")), + + NUMBER_159(new BigDecimal("159")), + + NUMBER_160(new BigDecimal("160")), + + NUMBER_161(new BigDecimal("161")), + + NUMBER_162(new BigDecimal("162")), + + NUMBER_163(new BigDecimal("163")), + + NUMBER_164(new BigDecimal("164")), + + NUMBER_165(new BigDecimal("165")), + + NUMBER_166(new BigDecimal("166")), + + NUMBER_167(new BigDecimal("167")), + + NUMBER_168(new BigDecimal("168")), + + NUMBER_169(new BigDecimal("169")), + + NUMBER_170(new BigDecimal("170")), + + NUMBER_171(new BigDecimal("171")), + + NUMBER_172(new BigDecimal("172")), + + NUMBER_173(new BigDecimal("173")), + + NUMBER_174(new BigDecimal("174")), + + NUMBER_175(new BigDecimal("175")), + + NUMBER_176(new BigDecimal("176")), + + NUMBER_177(new BigDecimal("177")), + + NUMBER_178(new BigDecimal("178")), + + NUMBER_179(new BigDecimal("179")), + + NUMBER_180(new BigDecimal("180")), + + NUMBER_181(new BigDecimal("181")), + + NUMBER_182(new BigDecimal("182")), + + NUMBER_183(new BigDecimal("183")), + + NUMBER_184(new BigDecimal("184")), + + NUMBER_185(new BigDecimal("185")), + + NUMBER_186(new BigDecimal("186")), + + NUMBER_187(new BigDecimal("187")), + + NUMBER_188(new BigDecimal("188")), + + NUMBER_189(new BigDecimal("189")), + + NUMBER_190(new BigDecimal("190")), + + NUMBER_191(new BigDecimal("191")), + + NUMBER_192(new BigDecimal("192")), + + NUMBER_193(new BigDecimal("193")), + + NUMBER_194(new BigDecimal("194")), + + NUMBER_195(new BigDecimal("195")), + + NUMBER_196(new BigDecimal("196")), + + NUMBER_197(new BigDecimal("197")), + + NUMBER_198(new BigDecimal("198")), + + NUMBER_199(new BigDecimal("199")), + + NUMBER_200(new BigDecimal("200")), + + NUMBER_201(new BigDecimal("201")), + + NUMBER_202(new BigDecimal("202")), + + NUMBER_203(new BigDecimal("203")), + + NUMBER_204(new BigDecimal("204")), + + NUMBER_205(new BigDecimal("205")), + + NUMBER_206(new BigDecimal("206")), + + NUMBER_207(new BigDecimal("207")), + + NUMBER_208(new BigDecimal("208")), + + NUMBER_209(new BigDecimal("209")), + + NUMBER_210(new BigDecimal("210")), + + NUMBER_211(new BigDecimal("211")), + + NUMBER_212(new BigDecimal("212")), + + NUMBER_213(new BigDecimal("213")), + + NUMBER_214(new BigDecimal("214")), + + NUMBER_215(new BigDecimal("215")), + + NUMBER_216(new BigDecimal("216")), + + NUMBER_217(new BigDecimal("217")), + + NUMBER_218(new BigDecimal("218")), + + NUMBER_219(new BigDecimal("219")), + + NUMBER_220(new BigDecimal("220")), + + NUMBER_221(new BigDecimal("221")), + + NUMBER_222(new BigDecimal("222")), + + NUMBER_223(new BigDecimal("223")), + + NUMBER_224(new BigDecimal("224")), + + NUMBER_225(new BigDecimal("225")), + + NUMBER_226(new BigDecimal("226")), + + NUMBER_227(new BigDecimal("227")), + + NUMBER_228(new BigDecimal("228")), + + NUMBER_229(new BigDecimal("229")), + + NUMBER_230(new BigDecimal("230")), + + NUMBER_231(new BigDecimal("231")), + + NUMBER_232(new BigDecimal("232")), + + NUMBER_233(new BigDecimal("233")), + + NUMBER_234(new BigDecimal("234")), + + NUMBER_235(new BigDecimal("235")), + + NUMBER_236(new BigDecimal("236")), + + NUMBER_237(new BigDecimal("237")), + + NUMBER_238(new BigDecimal("238")), + + NUMBER_239(new BigDecimal("239")), + + NUMBER_240(new BigDecimal("240")), + + NUMBER_241(new BigDecimal("241")), + + NUMBER_242(new BigDecimal("242")), + + NUMBER_243(new BigDecimal("243")), + + NUMBER_244(new BigDecimal("244")), + + NUMBER_245(new BigDecimal("245")), + + NUMBER_246(new BigDecimal("246")), + + NUMBER_247(new BigDecimal("247")), + + NUMBER_248(new BigDecimal("248")), + + NUMBER_249(new BigDecimal("249")), + + NUMBER_250(new BigDecimal("250")), + + NUMBER_251(new BigDecimal("251")), + + NUMBER_252(new BigDecimal("252")), + + NUMBER_253(new BigDecimal("253")), + + NUMBER_254(new BigDecimal("254")), + + NUMBER_255(new BigDecimal("255")), + + NUMBER_256(new BigDecimal("256")), + + NUMBER_257(new BigDecimal("257")), + + NUMBER_258(new BigDecimal("258")), + + NUMBER_259(new BigDecimal("259")), + + NUMBER_260(new BigDecimal("260")), + + NUMBER_261(new BigDecimal("261")), + + NUMBER_262(new BigDecimal("262")), + + NUMBER_263(new BigDecimal("263")), + + NUMBER_264(new BigDecimal("264")), + + NUMBER_265(new BigDecimal("265")), + + NUMBER_266(new BigDecimal("266")), + + NUMBER_267(new BigDecimal("267")), + + NUMBER_268(new BigDecimal("268")), + + NUMBER_269(new BigDecimal("269")), + + NUMBER_270(new BigDecimal("270")), + + NUMBER_271(new BigDecimal("271")), + + NUMBER_272(new BigDecimal("272")), + + NUMBER_273(new BigDecimal("273")), + + NUMBER_274(new BigDecimal("274")), + + NUMBER_275(new BigDecimal("275")), + + NUMBER_276(new BigDecimal("276")), + + NUMBER_277(new BigDecimal("277")), + + NUMBER_278(new BigDecimal("278")), + + NUMBER_279(new BigDecimal("279")), + + NUMBER_280(new BigDecimal("280")), + + NUMBER_281(new BigDecimal("281")), + + NUMBER_282(new BigDecimal("282")), + + NUMBER_283(new BigDecimal("283")), + + NUMBER_284(new BigDecimal("284")), + + NUMBER_285(new BigDecimal("285")), + + NUMBER_286(new BigDecimal("286")), + + NUMBER_287(new BigDecimal("287")), + + NUMBER_288(new BigDecimal("288")), + + NUMBER_289(new BigDecimal("289")), + + NUMBER_290(new BigDecimal("290")), + + NUMBER_291(new BigDecimal("291")), + + NUMBER_292(new BigDecimal("292")), + + NUMBER_293(new BigDecimal("293")), + + NUMBER_294(new BigDecimal("294")), + + NUMBER_295(new BigDecimal("295")), + + NUMBER_296(new BigDecimal("296")), + + NUMBER_297(new BigDecimal("297")), + + NUMBER_298(new BigDecimal("298")), + + NUMBER_299(new BigDecimal("299")), + + NUMBER_300(new BigDecimal("300")), + + NUMBER_301(new BigDecimal("301")), + + NUMBER_302(new BigDecimal("302")), + + NUMBER_303(new BigDecimal("303")), + + NUMBER_304(new BigDecimal("304")), + + NUMBER_305(new BigDecimal("305")), + + NUMBER_306(new BigDecimal("306")), + + NUMBER_307(new BigDecimal("307")), + + NUMBER_308(new BigDecimal("308")), + + NUMBER_309(new BigDecimal("309")), + + NUMBER_310(new BigDecimal("310")), + + NUMBER_311(new BigDecimal("311")), + + NUMBER_312(new BigDecimal("312")), + + NUMBER_313(new BigDecimal("313")), + + NUMBER_314(new BigDecimal("314")), + + NUMBER_315(new BigDecimal("315")), + + NUMBER_316(new BigDecimal("316")), + + NUMBER_317(new BigDecimal("317")), + + NUMBER_318(new BigDecimal("318")), + + NUMBER_319(new BigDecimal("319")), + + NUMBER_320(new BigDecimal("320")), + + NUMBER_321(new BigDecimal("321")), + + NUMBER_322(new BigDecimal("322")), + + NUMBER_323(new BigDecimal("323")), + + NUMBER_324(new BigDecimal("324")), + + NUMBER_325(new BigDecimal("325")), + + NUMBER_326(new BigDecimal("326")), + + NUMBER_327(new BigDecimal("327")), + + NUMBER_328(new BigDecimal("328")), + + NUMBER_329(new BigDecimal("329")), + + NUMBER_331(new BigDecimal("331")), + + NUMBER_332(new BigDecimal("332")), + + NUMBER_333(new BigDecimal("333")), + + NUMBER_334(new BigDecimal("334")), + + NUMBER_335(new BigDecimal("335")), + + NUMBER_336(new BigDecimal("336")), + + NUMBER_337(new BigDecimal("337")), + + NUMBER_338(new BigDecimal("338")), + + NUMBER_339(new BigDecimal("339")), + + NUMBER_340(new BigDecimal("340")), + + NUMBER_341(new BigDecimal("341")), + + NUMBER_342(new BigDecimal("342")), + + NUMBER_343(new BigDecimal("343")), + + NUMBER_344(new BigDecimal("344")), + + NUMBER_345(new BigDecimal("345")), + + NUMBER_348(new BigDecimal("348")), + + NUMBER_349(new BigDecimal("349")), + + NUMBER_350(new BigDecimal("350")), + + NUMBER_351(new BigDecimal("351")), + + NUMBER_5000(new BigDecimal("5000")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")), + + NUMBER_5009(new BigDecimal("5009")), + + NUMBER_5010(new BigDecimal("5010")), + + NUMBER_5011(new BigDecimal("5011")), + + NUMBER_5012(new BigDecimal("5012")), + + NUMBER_5013(new BigDecimal("5013")), + + NUMBER_5014(new BigDecimal("5014")), + + NUMBER_5015(new BigDecimal("5015")), + + NUMBER_5016(new BigDecimal("5016")), + + NUMBER_5017(new BigDecimal("5017")), + + NUMBER_5018(new BigDecimal("5018")), + + NUMBER_5020(new BigDecimal("5020")), + + NUMBER_5021(new BigDecimal("5021")), + + NUMBER_5022(new BigDecimal("5022")), + + NUMBER_5023(new BigDecimal("5023")), + + NUMBER_5024(new BigDecimal("5024")), + + NUMBER_5025(new BigDecimal("5025")), + + NUMBER_5026(new BigDecimal("5026")), + + NUMBER_5027(new BigDecimal("5027")), + + NUMBER_5028(new BigDecimal("5028")), + + NUMBER_5029(new BigDecimal("5029")), + + NUMBER_5030(new BigDecimal("5030")), + + NUMBER_5031(new BigDecimal("5031")), + + NUMBER_5032(new BigDecimal("5032")), + + NUMBER_5033(new BigDecimal("5033")), + + NUMBER_5034(new BigDecimal("5034")), + + NUMBER_5035(new BigDecimal("5035")), + + NUMBER_5036(new BigDecimal("5036")), + + NUMBER_5037(new BigDecimal("5037")), + + NUMBER_5039(new BigDecimal("5039")), + + NUMBER_5040(new BigDecimal("5040")), + + NUMBER_5041(new BigDecimal("5041")), + + NUMBER_5042(new BigDecimal("5042")), + + NUMBER_5043(new BigDecimal("5043")), + + NUMBER_5044(new BigDecimal("5044")), + + NUMBER_5045(new BigDecimal("5045")), + + NUMBER_5046(new BigDecimal("5046")), + + NUMBER_5047(new BigDecimal("5047")), + + NUMBER_5048(new BigDecimal("5048")), + + NUMBER_5049(new BigDecimal("5049")), + + NUMBER_5050(new BigDecimal("5050")), + + NUMBER_5051(new BigDecimal("5051")), + + NUMBER_5052(new BigDecimal("5052")), + + NUMBER_5053(new BigDecimal("5053")), + + NUMBER_5054(new BigDecimal("5054")), + + NUMBER_5055(new BigDecimal("5055")), + + NUMBER_5056(new BigDecimal("5056")), + + NUMBER_5057(new BigDecimal("5057")), + + NUMBER_5058(new BigDecimal("5058")), + + NUMBER_5059(new BigDecimal("5059")), + + NUMBER_5060(new BigDecimal("5060")), + + NUMBER_5061(new BigDecimal("5061")), + + NUMBER_5062(new BigDecimal("5062")), + + NUMBER_5063(new BigDecimal("5063")), + + NUMBER_5064(new BigDecimal("5064")), + + NUMBER_5065(new BigDecimal("5065")), + + NUMBER_5066(new BigDecimal("5066")), + + NUMBER_5067(new BigDecimal("5067")), + + NUMBER_5068(new BigDecimal("5068")), + + NUMBER_5069(new BigDecimal("5069")), + + NUMBER_5070(new BigDecimal("5070")), + + NUMBER_5071(new BigDecimal("5071")), + + NUMBER_5072(new BigDecimal("5072")), + + NUMBER_5073(new BigDecimal("5073")), + + NUMBER_5074(new BigDecimal("5074")), + + NUMBER_5075(new BigDecimal("5075")), + + NUMBER_5076(new BigDecimal("5076")), + + NUMBER_5077(new BigDecimal("5077")), + + NUMBER_5078(new BigDecimal("5078")), + + NUMBER_5079(new BigDecimal("5079")), + + NUMBER_5080(new BigDecimal("5080")), + + NUMBER_5081(new BigDecimal("5081")), + + NUMBER_5082(new BigDecimal("5082")), + + NUMBER_5083(new BigDecimal("5083")), + + NUMBER_5084(new BigDecimal("5084")), + + NUMBER_5085(new BigDecimal("5085")), + + NUMBER_5086(new BigDecimal("5086")), + + NUMBER_5087(new BigDecimal("5087")), + + NUMBER_5088(new BigDecimal("5088")), + + NUMBER_5089(new BigDecimal("5089")), + + NUMBER_5090(new BigDecimal("5090")), + + NUMBER_5091(new BigDecimal("5091")), + + NUMBER_5092(new BigDecimal("5092")), + + NUMBER_5093(new BigDecimal("5093")), + + NUMBER_5094(new BigDecimal("5094")), + + NUMBER_5095(new BigDecimal("5095")), + + NUMBER_5096(new BigDecimal("5096")), + + NUMBER_5097(new BigDecimal("5097")), + + NUMBER_5098(new BigDecimal("5098")), + + NUMBER_5099(new BigDecimal("5099")), + + NUMBER_5100(new BigDecimal("5100")), + + NUMBER_5101(new BigDecimal("5101")), + + NUMBER_5102(new BigDecimal("5102")), + + NUMBER_5103(new BigDecimal("5103")), + + NUMBER_5104(new BigDecimal("5104")), + + NUMBER_5105(new BigDecimal("5105")), + + NUMBER_5106(new BigDecimal("5106")), + + NUMBER_5107(new BigDecimal("5107")), + + NUMBER_5108(new BigDecimal("5108")), + + NUMBER_5109(new BigDecimal("5109")), + + NUMBER_5110(new BigDecimal("5110")), + + NUMBER_5111(new BigDecimal("5111")), + + NUMBER_5112(new BigDecimal("5112")), + + NUMBER_5113(new BigDecimal("5113")), + + NUMBER_5114(new BigDecimal("5114")), + + NUMBER_5115(new BigDecimal("5115")), + + NUMBER_5116(new BigDecimal("5116")), + + NUMBER_5117(new BigDecimal("5117")), + + NUMBER_5118(new BigDecimal("5118")), + + NUMBER_5119(new BigDecimal("5119")), + + NUMBER_5120(new BigDecimal("5120")), + + NUMBER_5121(new BigDecimal("5121")), + + NUMBER_5122(new BigDecimal("5122")), + + NUMBER_5123(new BigDecimal("5123")), + + NUMBER_5124(new BigDecimal("5124")), + + NUMBER_5125(new BigDecimal("5125")), + + NUMBER_5126(new BigDecimal("5126")), + + NUMBER_5127(new BigDecimal("5127")), + + NUMBER_5128(new BigDecimal("5128")), + + NUMBER_5129(new BigDecimal("5129")), + + NUMBER_5130(new BigDecimal("5130")), + + NUMBER_5131(new BigDecimal("5131")), + + NUMBER_5132(new BigDecimal("5132")), + + NUMBER_5133(new BigDecimal("5133")), + + NUMBER_5134(new BigDecimal("5134")), + + NUMBER_5135(new BigDecimal("5135")), + + NUMBER_5136(new BigDecimal("5136")), + + NUMBER_5137(new BigDecimal("5137")), + + NUMBER_5138(new BigDecimal("5138")), + + NUMBER_5139(new BigDecimal("5139")), + + NUMBER_5140(new BigDecimal("5140")), + + NUMBER_5141(new BigDecimal("5141")), + + NUMBER_5142(new BigDecimal("5142")), + + NUMBER_5143(new BigDecimal("5143")), + + NUMBER_5144(new BigDecimal("5144")), + + NUMBER_5145(new BigDecimal("5145")), + + NUMBER_5146(new BigDecimal("5146")), + + NUMBER_5147(new BigDecimal("5147")), + + NUMBER_5148(new BigDecimal("5148")), + + NUMBER_5149(new BigDecimal("5149")), + + NUMBER_5150(new BigDecimal("5150")), + + NUMBER_5151(new BigDecimal("5151")), + + NUMBER_5152(new BigDecimal("5152")), + + NUMBER_5153(new BigDecimal("5153")), + + NUMBER_5154(new BigDecimal("5154")), + + NUMBER_5156(new BigDecimal("5156")), + + NUMBER_5157(new BigDecimal("5157")), + + NUMBER_5158(new BigDecimal("5158")), + + NUMBER_5159(new BigDecimal("5159")), + + NUMBER_5160(new BigDecimal("5160")), + + NUMBER_5161(new BigDecimal("5161")), + + NUMBER_5162(new BigDecimal("5162")), + + NUMBER_5163(new BigDecimal("5163")), + + NUMBER_5164(new BigDecimal("5164")), + + NUMBER_5165(new BigDecimal("5165")), + + NUMBER_5166(new BigDecimal("5166")), + + NUMBER_5167(new BigDecimal("5167")), + + NUMBER_5168(new BigDecimal("5168")), + + NUMBER_5169(new BigDecimal("5169")), + + NUMBER_5170(new BigDecimal("5170")), + + NUMBER_5171(new BigDecimal("5171")), + + NUMBER_5172(new BigDecimal("5172")), + + NUMBER_5173(new BigDecimal("5173")), + + NUMBER_5174(new BigDecimal("5174")), + + NUMBER_5175(new BigDecimal("5175")), + + NUMBER_5176(new BigDecimal("5176")), + + NUMBER_5177(new BigDecimal("5177")), + + NUMBER_5178(new BigDecimal("5178")), + + NUMBER_6000(new BigDecimal("6000")), + + NUMBER_6001(new BigDecimal("6001")), + + NUMBER_90001(new BigDecimal("90001")); + + private BigDecimal value; + + ServiceListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ServiceListEnum fromValue(BigDecimal value) { + for (ServiceListEnum b : ServiceListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ServiceListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ServiceListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ServiceListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_SERVICE_LIST = "serviceList"; + @SerializedName(SERIALIZED_NAME_SERVICE_LIST) + private List serviceList = new ArrayList<>(); + + /** + * Gets or Sets categoryList + */ + @JsonAdapter(CategoryListEnum.Adapter.class) + public enum CategoryListEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_30(new BigDecimal("30")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")), + + NUMBER_34(new BigDecimal("34")), + + NUMBER_35(new BigDecimal("35")), + + NUMBER_36(new BigDecimal("36")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_38(new BigDecimal("38")), + + NUMBER_39(new BigDecimal("39")), + + NUMBER_40(new BigDecimal("40")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_44(new BigDecimal("44")), + + NUMBER_45(new BigDecimal("45")), + + NUMBER_46(new BigDecimal("46")), + + NUMBER_47(new BigDecimal("47")), + + NUMBER_48(new BigDecimal("48")), + + NUMBER_49(new BigDecimal("49")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_51(new BigDecimal("51")), + + NUMBER_52(new BigDecimal("52")), + + NUMBER_53(new BigDecimal("53")), + + NUMBER_54(new BigDecimal("54")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_56(new BigDecimal("56")), + + NUMBER_57(new BigDecimal("57")), + + NUMBER_58(new BigDecimal("58")), + + NUMBER_59(new BigDecimal("59")), + + NUMBER_60(new BigDecimal("60")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_62(new BigDecimal("62")), + + NUMBER_5000(new BigDecimal("5000")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")), + + NUMBER_5009(new BigDecimal("5009")); + + private BigDecimal value; + + CategoryListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CategoryListEnum fromValue(BigDecimal value) { + for (CategoryListEnum b : CategoryListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CategoryListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CategoryListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CategoryListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_CATEGORY_LIST = "categoryList"; + @SerializedName(SERIALIZED_NAME_CATEGORY_LIST) + private List categoryList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_URI_PATH = "uriPath"; + @SerializedName(SERIALIZED_NAME_URI_PATH) + private String uriPath; + + public static final String SERIALIZED_NAME_TEXT = "text"; + @SerializedName(SERIALIZED_NAME_TEXT) + private String text; + + public static final String SERIALIZED_NAME_GEO = "geo"; + @SerializedName(SERIALIZED_NAME_GEO) + private AvailablePropertiesInner1Geo geo; + + public static final String SERIALIZED_NAME_MEDIA_LIST = "mediaList"; + @SerializedName(SERIALIZED_NAME_MEDIA_LIST) + private List mediaList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ATTRACTION_LIST = "attractionList"; + @SerializedName(SERIALIZED_NAME_ATTRACTION_LIST) + private List attractionList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_LOWEST_PRICE = "lowestPrice"; + @SerializedName(SERIALIZED_NAME_LOWEST_PRICE) + private AvailablePropertiesInner1LowestPrice lowestPrice; + + public AvailablePropertiesInner1() { + } + + public AvailablePropertiesInner1 code(String code) { + + this.code = code; + return this; + } + + /** + * The properties unique code/ID. + * @return code + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "strandresidenz-sylt", required = true, value = "The properties unique code/ID.") + + public String getCode() { + return code; + } + + + public void setCode(String code) { + this.code = code; + } + + + public AvailablePropertiesInner1 languageCode(LanguageCodeEnum languageCode) { + + this.languageCode = languageCode; + return this; + } + + /** + * The language code of the language in which the property description is written.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + * @return languageCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "en", required = true, value = "The language code of the language in which the property description is written.

Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.

See also in the appendix.

") + + public LanguageCodeEnum getLanguageCode() { + return languageCode; + } + + + public void setLanguageCode(LanguageCodeEnum languageCode) { + this.languageCode = languageCode; + } + + + public AvailablePropertiesInner1 currencyCode(CurrencyCodeEnum currencyCode) { + + this.currencyCode = currencyCode; + return this; + } + + /** + * The currency code for the currency in which prices are returned.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> + * @return currencyCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "EUR", required = true, value = "The currency code for the currency in which prices are returned.

See also in the appendix.

") + + public CurrencyCodeEnum getCurrencyCode() { + return currencyCode; + } + + + public void setCurrencyCode(CurrencyCodeEnum currencyCode) { + this.currencyCode = currencyCode; + } + + + public AvailablePropertiesInner1 unitSystem(UnitSystemEnum unitSystem) { + + this.unitSystem = unitSystem; + return this; + } + + /** + * The unit system (either \"metric\" or \"imperial\") used for measurements. + * @return unitSystem + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "metric", required = true, value = "The unit system (either \"metric\" or \"imperial\") used for measurements.") + + public UnitSystemEnum getUnitSystem() { + return unitSystem; + } + + + public void setUnitSystem(UnitSystemEnum unitSystem) { + this.unitSystem = unitSystem; + } + + + public AvailablePropertiesInner1 name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the property. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Strandresidenz Sylt", required = true, value = "The name of the property.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public AvailablePropertiesInner1 uri(String uri) { + + this.uri = uri; + return this; + } + + /** + * A URI for the property. + * @return uri + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "strandresidenz-sylt", required = true, value = "A URI for the property.") + + public String getUri() { + return uri; + } + + + public void setUri(String uri) { + this.uri = uri; + } + + + public AvailablePropertiesInner1 serviceList(List serviceList) { + + this.serviceList = serviceList; + return this; + } + + public AvailablePropertiesInner1 addServiceListItem(ServiceListEnum serviceListItem) { + this.serviceList.add(serviceListItem); + return this; + } + + /** + * A list of service codes indicating the services and amenities the property has.<p>See also <a href=\"#servicecodes\">in the appendix</a>.</p> + * @return serviceList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[1,2]", required = true, value = "A list of service codes indicating the services and amenities the property has.

See also in the appendix.

") + + public List getServiceList() { + return serviceList; + } + + + public void setServiceList(List serviceList) { + this.serviceList = serviceList; + } + + + public AvailablePropertiesInner1 categoryList(List categoryList) { + + this.categoryList = categoryList; + return this; + } + + public AvailablePropertiesInner1 addCategoryListItem(CategoryListEnum categoryListItem) { + this.categoryList.add(categoryListItem); + return this; + } + + /** + * A list of property class type codes indicating the types of the property.<p>See also <a href=\"#propertyclass-type-codes\">in the appendix</a>.</p> + * @return categoryList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[3,4]", required = true, value = "A list of property class type codes indicating the types of the property.

See also in the appendix.

") + + public List getCategoryList() { + return categoryList; + } + + + public void setCategoryList(List categoryList) { + this.categoryList = categoryList; + } + + + public AvailablePropertiesInner1 uriPath(String uriPath) { + + this.uriPath = uriPath; + return this; + } + + /** + * A URI path for the property. + * @return uriPath + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "germany/schleswig-holstein/nordfriesland/wenningstedt-braderup-sylt/strandresidenz-sylt", required = true, value = "A URI path for the property.") + + public String getUriPath() { + return uriPath; + } + + + public void setUriPath(String uriPath) { + this.uriPath = uriPath; + } + + + public AvailablePropertiesInner1 text(String text) { + + this.text = text; + return this; + } + + /** + * A description of the property. + * @return text + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "This family-run hotel in Wenningstedt on Sylt is just 820 feet from the beach. It offers rooms which are decorated in a typically Frisian style. A breakfast buffet is prepared each morning at the Sylter Domizil. The Wintergarten conservatory café/bistro serves snacks and drinks during the day. The bar includes a free internet terminal. The Sylter Domizil's 722 ft² spa features a sauna steam bath and fitness room. The terrace has wicker beach chairs for relaxing in.", required = true, value = "A description of the property.") + + public String getText() { + return text; + } + + + public void setText(String text) { + this.text = text; + } + + + public AvailablePropertiesInner1 geo(AvailablePropertiesInner1Geo geo) { + + this.geo = geo; + return this; + } + + /** + * Get geo + * @return geo + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public AvailablePropertiesInner1Geo getGeo() { + return geo; + } + + + public void setGeo(AvailablePropertiesInner1Geo geo) { + this.geo = geo; + } + + + public AvailablePropertiesInner1 mediaList(List mediaList) { + + this.mediaList = mediaList; + return this; + } + + public AvailablePropertiesInner1 addMediaListItem(AvailablePropertiesInner1MediaListInner mediaListItem) { + this.mediaList.add(mediaListItem); + return this; + } + + /** + * A list of media objects for the property. + * @return mediaList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of media objects for the property.") + + public List getMediaList() { + return mediaList; + } + + + public void setMediaList(List mediaList) { + this.mediaList = mediaList; + } + + + public AvailablePropertiesInner1 attractionList(List attractionList) { + + this.attractionList = attractionList; + return this; + } + + public AvailablePropertiesInner1 addAttractionListItem(AvailablePropertiesInner1AttractionListInner attractionListItem) { + this.attractionList.add(attractionListItem); + return this; + } + + /** + * A list of objects describing the attractions available at the property. + * @return attractionList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of objects describing the attractions available at the property.") + + public List getAttractionList() { + return attractionList; + } + + + public void setAttractionList(List attractionList) { + this.attractionList = attractionList; + } + + + public AvailablePropertiesInner1 lowestPrice(AvailablePropertiesInner1LowestPrice lowestPrice) { + + this.lowestPrice = lowestPrice; + return this; + } + + /** + * Get lowestPrice + * @return lowestPrice + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public AvailablePropertiesInner1LowestPrice getLowestPrice() { + return lowestPrice; + } + + + public void setLowestPrice(AvailablePropertiesInner1LowestPrice lowestPrice) { + this.lowestPrice = lowestPrice; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AvailablePropertiesInner1 availablePropertiesInner1 = (AvailablePropertiesInner1) o; + return Objects.equals(this.code, availablePropertiesInner1.code) && + Objects.equals(this.languageCode, availablePropertiesInner1.languageCode) && + Objects.equals(this.currencyCode, availablePropertiesInner1.currencyCode) && + Objects.equals(this.unitSystem, availablePropertiesInner1.unitSystem) && + Objects.equals(this.name, availablePropertiesInner1.name) && + Objects.equals(this.uri, availablePropertiesInner1.uri) && + Objects.equals(this.serviceList, availablePropertiesInner1.serviceList) && + Objects.equals(this.categoryList, availablePropertiesInner1.categoryList) && + Objects.equals(this.uriPath, availablePropertiesInner1.uriPath) && + Objects.equals(this.text, availablePropertiesInner1.text) && + Objects.equals(this.geo, availablePropertiesInner1.geo) && + Objects.equals(this.mediaList, availablePropertiesInner1.mediaList) && + Objects.equals(this.attractionList, availablePropertiesInner1.attractionList) && + Objects.equals(this.lowestPrice, availablePropertiesInner1.lowestPrice); + } + + @Override + public int hashCode() { + return Objects.hash(code, languageCode, currencyCode, unitSystem, name, uri, serviceList, categoryList, uriPath, text, geo, mediaList, attractionList, lowestPrice); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AvailablePropertiesInner1 {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n"); + sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n"); + sb.append(" unitSystem: ").append(toIndentedString(unitSystem)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" serviceList: ").append(toIndentedString(serviceList)).append("\n"); + sb.append(" categoryList: ").append(toIndentedString(categoryList)).append("\n"); + sb.append(" uriPath: ").append(toIndentedString(uriPath)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append(" geo: ").append(toIndentedString(geo)).append("\n"); + sb.append(" mediaList: ").append(toIndentedString(mediaList)).append("\n"); + sb.append(" attractionList: ").append(toIndentedString(attractionList)).append("\n"); + sb.append(" lowestPrice: ").append(toIndentedString(lowestPrice)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("code"); + openapiFields.add("languageCode"); + openapiFields.add("currencyCode"); + openapiFields.add("unitSystem"); + openapiFields.add("name"); + openapiFields.add("uri"); + openapiFields.add("serviceList"); + openapiFields.add("categoryList"); + openapiFields.add("uriPath"); + openapiFields.add("text"); + openapiFields.add("geo"); + openapiFields.add("mediaList"); + openapiFields.add("attractionList"); + openapiFields.add("lowestPrice"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("code"); + openapiRequiredFields.add("languageCode"); + openapiRequiredFields.add("currencyCode"); + openapiRequiredFields.add("unitSystem"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("uri"); + openapiRequiredFields.add("serviceList"); + openapiRequiredFields.add("categoryList"); + openapiRequiredFields.add("uriPath"); + openapiRequiredFields.add("text"); + openapiRequiredFields.add("mediaList"); + openapiRequiredFields.add("attractionList"); + openapiRequiredFields.add("lowestPrice"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AvailablePropertiesInner1 + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AvailablePropertiesInner1.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AvailablePropertiesInner1 is not found in the empty JSON string", AvailablePropertiesInner1.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AvailablePropertiesInner1.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AvailablePropertiesInner1` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AvailablePropertiesInner1.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("code") != null && !jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + if (jsonObj.get("languageCode") != null && !jsonObj.get("languageCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `languageCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("languageCode").toString())); + } + if (jsonObj.get("currencyCode") != null && !jsonObj.get("currencyCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currencyCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currencyCode").toString())); + } + if (jsonObj.get("unitSystem") != null && !jsonObj.get("unitSystem").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `unitSystem` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unitSystem").toString())); + } + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); + } + // ensure the json data is an array + if (jsonObj.get("serviceList") != null && !jsonObj.get("serviceList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `serviceList` to be an array in the JSON string but got `%s`", jsonObj.get("serviceList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("categoryList") != null && !jsonObj.get("categoryList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `categoryList` to be an array in the JSON string but got `%s`", jsonObj.get("categoryList").toString())); + } + if (jsonObj.get("uriPath") != null && !jsonObj.get("uriPath").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uriPath` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uriPath").toString())); + } + if (jsonObj.get("text") != null && !jsonObj.get("text").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); + } + // validate the optional field `geo` + if (jsonObj.getAsJsonObject("geo") != null) { + AvailablePropertiesInner1Geo.validateJsonObject(jsonObj.getAsJsonObject("geo")); + } + JsonArray jsonArraymediaList = jsonObj.getAsJsonArray("mediaList"); + if (jsonArraymediaList != null) { + // ensure the json data is an array + if (!jsonObj.get("mediaList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `mediaList` to be an array in the JSON string but got `%s`", jsonObj.get("mediaList").toString())); + } + + // validate the optional field `mediaList` (array) + for (int i = 0; i < jsonArraymediaList.size(); i++) { + AvailablePropertiesInner1MediaListInner.validateJsonObject(jsonArraymediaList.get(i).getAsJsonObject()); + }; + } + JsonArray jsonArrayattractionList = jsonObj.getAsJsonArray("attractionList"); + if (jsonArrayattractionList != null) { + // ensure the json data is an array + if (!jsonObj.get("attractionList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `attractionList` to be an array in the JSON string but got `%s`", jsonObj.get("attractionList").toString())); + } + + // validate the optional field `attractionList` (array) + for (int i = 0; i < jsonArrayattractionList.size(); i++) { + AvailablePropertiesInner1AttractionListInner.validateJsonObject(jsonArrayattractionList.get(i).getAsJsonObject()); + }; + } + // validate the optional field `lowestPrice` + if (jsonObj.getAsJsonObject("lowestPrice") != null) { + AvailablePropertiesInner1LowestPrice.validateJsonObject(jsonObj.getAsJsonObject("lowestPrice")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AvailablePropertiesInner1.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AvailablePropertiesInner1' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AvailablePropertiesInner1.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AvailablePropertiesInner1 value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AvailablePropertiesInner1 read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AvailablePropertiesInner1 given an JSON string + * + * @param jsonString JSON string + * @return An instance of AvailablePropertiesInner1 + * @throws IOException if the JSON string is invalid with respect to AvailablePropertiesInner1 + */ + public static AvailablePropertiesInner1 fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AvailablePropertiesInner1.class); + } + + /** + * Convert an instance of AvailablePropertiesInner1 to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInner.java b/src/main/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInner.java new file mode 100644 index 0000000..03b3e54 --- /dev/null +++ b/src/main/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInner.java @@ -0,0 +1,568 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner1AttractionListInnerDistance; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * AvailablePropertiesInner1AttractionListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class AvailablePropertiesInner1AttractionListInner { + /** + * The code for this attraction type.<p>See also <a href=\"#attractioncategory-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(TypeCodeEnum.Adapter.class) + public enum TypeCodeEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_30(new BigDecimal("30")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")), + + NUMBER_34(new BigDecimal("34")), + + NUMBER_35(new BigDecimal("35")), + + NUMBER_36(new BigDecimal("36")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_38(new BigDecimal("38")), + + NUMBER_39(new BigDecimal("39")), + + NUMBER_40(new BigDecimal("40")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_44(new BigDecimal("44")), + + NUMBER_45(new BigDecimal("45")), + + NUMBER_46(new BigDecimal("46")), + + NUMBER_47(new BigDecimal("47")), + + NUMBER_48(new BigDecimal("48")), + + NUMBER_49(new BigDecimal("49")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_51(new BigDecimal("51")), + + NUMBER_52(new BigDecimal("52")), + + NUMBER_53(new BigDecimal("53")), + + NUMBER_54(new BigDecimal("54")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_56(new BigDecimal("56")), + + NUMBER_57(new BigDecimal("57")), + + NUMBER_58(new BigDecimal("58")), + + NUMBER_59(new BigDecimal("59")), + + NUMBER_60(new BigDecimal("60")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_62(new BigDecimal("62")), + + NUMBER_63(new BigDecimal("63")), + + NUMBER_64(new BigDecimal("64")), + + NUMBER_65(new BigDecimal("65")), + + NUMBER_66(new BigDecimal("66")), + + NUMBER_67(new BigDecimal("67")), + + NUMBER_68(new BigDecimal("68")), + + NUMBER_69(new BigDecimal("69")), + + NUMBER_70(new BigDecimal("70")), + + NUMBER_71(new BigDecimal("71")), + + NUMBER_72(new BigDecimal("72")), + + NUMBER_73(new BigDecimal("73")), + + NUMBER_74(new BigDecimal("74")), + + NUMBER_75(new BigDecimal("75")), + + NUMBER_76(new BigDecimal("76")), + + NUMBER_77(new BigDecimal("77")), + + NUMBER_78(new BigDecimal("78")), + + NUMBER_79(new BigDecimal("79")), + + NUMBER_80(new BigDecimal("80")), + + NUMBER_81(new BigDecimal("81")), + + NUMBER_82(new BigDecimal("82")), + + NUMBER_83(new BigDecimal("83")), + + NUMBER_84(new BigDecimal("84")), + + NUMBER_85(new BigDecimal("85")), + + NUMBER_86(new BigDecimal("86")), + + NUMBER_87(new BigDecimal("87")), + + NUMBER_88(new BigDecimal("88")), + + NUMBER_89(new BigDecimal("89")), + + NUMBER_90(new BigDecimal("90")), + + NUMBER_91(new BigDecimal("91")), + + NUMBER_92(new BigDecimal("92")), + + NUMBER_93(new BigDecimal("93")), + + NUMBER_94(new BigDecimal("94")), + + NUMBER_95(new BigDecimal("95")), + + NUMBER_96(new BigDecimal("96")), + + NUMBER_97(new BigDecimal("97")), + + NUMBER_98(new BigDecimal("98")), + + NUMBER_99(new BigDecimal("99")), + + NUMBER_100(new BigDecimal("100")), + + NUMBER_101(new BigDecimal("101")), + + NUMBER_102(new BigDecimal("102")), + + NUMBER_103(new BigDecimal("103")), + + NUMBER_104(new BigDecimal("104")), + + NUMBER_105(new BigDecimal("105")), + + NUMBER_106(new BigDecimal("106")), + + NUMBER_107(new BigDecimal("107")), + + NUMBER_108(new BigDecimal("108")), + + NUMBER_109(new BigDecimal("109")), + + NUMBER_110(new BigDecimal("110")), + + NUMBER_90001(new BigDecimal("90001")), + + NUMBER_90002(new BigDecimal("90002")), + + NUMBER_90003(new BigDecimal("90003")), + + NUMBER_90004(new BigDecimal("90004")), + + NUMBER_90005(new BigDecimal("90005")), + + NUMBER_90006(new BigDecimal("90006")), + + NUMBER_90007(new BigDecimal("90007")), + + NUMBER_90008(new BigDecimal("90008")), + + NUMBER_90009(new BigDecimal("90009")), + + NUMBER_90010(new BigDecimal("90010")); + + private BigDecimal value; + + TypeCodeEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeCodeEnum fromValue(BigDecimal value) { + for (TypeCodeEnum b : TypeCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeCodeEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_TYPE_CODE = "typeCode"; + @SerializedName(SERIALIZED_NAME_TYPE_CODE) + private TypeCodeEnum typeCode; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_DISTANCE = "distance"; + @SerializedName(SERIALIZED_NAME_DISTANCE) + private AvailablePropertiesInner1AttractionListInnerDistance distance; + + public AvailablePropertiesInner1AttractionListInner() { + } + + public AvailablePropertiesInner1AttractionListInner typeCode(TypeCodeEnum typeCode) { + + this.typeCode = typeCode; + return this; + } + + /** + * The code for this attraction type.<p>See also <a href=\"#attractioncategory-codes\">in the appendix</a>.</p> + * @return typeCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The code for this attraction type.

See also in the appendix.

") + + public TypeCodeEnum getTypeCode() { + return typeCode; + } + + + public void setTypeCode(TypeCodeEnum typeCode) { + this.typeCode = typeCode; + } + + + public AvailablePropertiesInner1AttractionListInner name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the attraction. Names are proper nouns and therefore not affected by the given language code. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Flughafen Sylt", required = true, value = "The name of the attraction. Names are proper nouns and therefore not affected by the given language code.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public AvailablePropertiesInner1AttractionListInner distance(AvailablePropertiesInner1AttractionListInnerDistance distance) { + + this.distance = distance; + return this; + } + + /** + * Get distance + * @return distance + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public AvailablePropertiesInner1AttractionListInnerDistance getDistance() { + return distance; + } + + + public void setDistance(AvailablePropertiesInner1AttractionListInnerDistance distance) { + this.distance = distance; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AvailablePropertiesInner1AttractionListInner availablePropertiesInner1AttractionListInner = (AvailablePropertiesInner1AttractionListInner) o; + return Objects.equals(this.typeCode, availablePropertiesInner1AttractionListInner.typeCode) && + Objects.equals(this.name, availablePropertiesInner1AttractionListInner.name) && + Objects.equals(this.distance, availablePropertiesInner1AttractionListInner.distance); + } + + @Override + public int hashCode() { + return Objects.hash(typeCode, name, distance); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AvailablePropertiesInner1AttractionListInner {\n"); + sb.append(" typeCode: ").append(toIndentedString(typeCode)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" distance: ").append(toIndentedString(distance)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("typeCode"); + openapiFields.add("name"); + openapiFields.add("distance"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("typeCode"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("distance"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AvailablePropertiesInner1AttractionListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AvailablePropertiesInner1AttractionListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AvailablePropertiesInner1AttractionListInner is not found in the empty JSON string", AvailablePropertiesInner1AttractionListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AvailablePropertiesInner1AttractionListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AvailablePropertiesInner1AttractionListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AvailablePropertiesInner1AttractionListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `distance` + if (jsonObj.getAsJsonObject("distance") != null) { + AvailablePropertiesInner1AttractionListInnerDistance.validateJsonObject(jsonObj.getAsJsonObject("distance")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AvailablePropertiesInner1AttractionListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AvailablePropertiesInner1AttractionListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AvailablePropertiesInner1AttractionListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AvailablePropertiesInner1AttractionListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AvailablePropertiesInner1AttractionListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AvailablePropertiesInner1AttractionListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of AvailablePropertiesInner1AttractionListInner + * @throws IOException if the JSON string is invalid with respect to AvailablePropertiesInner1AttractionListInner + */ + public static AvailablePropertiesInner1AttractionListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AvailablePropertiesInner1AttractionListInner.class); + } + + /** + * Convert an instance of AvailablePropertiesInner1AttractionListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerDistance.java b/src/main/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerDistance.java new file mode 100644 index 0000000..961a800 --- /dev/null +++ b/src/main/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerDistance.java @@ -0,0 +1,297 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * The distance from the property to this attraction. Whether this is road or air distance is not clearly defined as the values are entered by the tenants admins. + */ +@ApiModel(description = "The distance from the property to this attraction. Whether this is road or air distance is not clearly defined as the values are entered by the tenants admins.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class AvailablePropertiesInner1AttractionListInnerDistance { + public static final String SERIALIZED_NAME_VALUE = "value"; + @SerializedName(SERIALIZED_NAME_VALUE) + private BigDecimal value; + + /** + * The unit of the value of the distance. + */ + @JsonAdapter(UnitEnum.Adapter.class) + public enum UnitEnum { + M("m"), + + FT("ft"); + + private String value; + + UnitEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static UnitEnum fromValue(String value) { + for (UnitEnum b : UnitEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final UnitEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public UnitEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return UnitEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_UNIT = "unit"; + @SerializedName(SERIALIZED_NAME_UNIT) + private UnitEnum unit; + + public AvailablePropertiesInner1AttractionListInnerDistance() { + } + + public AvailablePropertiesInner1AttractionListInnerDistance value(BigDecimal value) { + + this.value = value; + return this; + } + + /** + * The numeric value of the distance. + * @return value + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "2300", required = true, value = "The numeric value of the distance.") + + public BigDecimal getValue() { + return value; + } + + + public void setValue(BigDecimal value) { + this.value = value; + } + + + public AvailablePropertiesInner1AttractionListInnerDistance unit(UnitEnum unit) { + + this.unit = unit; + return this; + } + + /** + * The unit of the value of the distance. + * @return unit + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "m", required = true, value = "The unit of the value of the distance.") + + public UnitEnum getUnit() { + return unit; + } + + + public void setUnit(UnitEnum unit) { + this.unit = unit; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AvailablePropertiesInner1AttractionListInnerDistance availablePropertiesInner1AttractionListInnerDistance = (AvailablePropertiesInner1AttractionListInnerDistance) o; + return Objects.equals(this.value, availablePropertiesInner1AttractionListInnerDistance.value) && + Objects.equals(this.unit, availablePropertiesInner1AttractionListInnerDistance.unit); + } + + @Override + public int hashCode() { + return Objects.hash(value, unit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AvailablePropertiesInner1AttractionListInnerDistance {\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("value"); + openapiFields.add("unit"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("value"); + openapiRequiredFields.add("unit"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AvailablePropertiesInner1AttractionListInnerDistance + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AvailablePropertiesInner1AttractionListInnerDistance.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AvailablePropertiesInner1AttractionListInnerDistance is not found in the empty JSON string", AvailablePropertiesInner1AttractionListInnerDistance.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AvailablePropertiesInner1AttractionListInnerDistance.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AvailablePropertiesInner1AttractionListInnerDistance` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AvailablePropertiesInner1AttractionListInnerDistance.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("unit") != null && !jsonObj.get("unit").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `unit` to be a primitive type in the JSON string but got `%s`", jsonObj.get("unit").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AvailablePropertiesInner1AttractionListInnerDistance.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AvailablePropertiesInner1AttractionListInnerDistance' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AvailablePropertiesInner1AttractionListInnerDistance.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AvailablePropertiesInner1AttractionListInnerDistance value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AvailablePropertiesInner1AttractionListInnerDistance read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AvailablePropertiesInner1AttractionListInnerDistance given an JSON string + * + * @param jsonString JSON string + * @return An instance of AvailablePropertiesInner1AttractionListInnerDistance + * @throws IOException if the JSON string is invalid with respect to AvailablePropertiesInner1AttractionListInnerDistance + */ + public static AvailablePropertiesInner1AttractionListInnerDistance fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AvailablePropertiesInner1AttractionListInnerDistance.class); + } + + /** + * Convert an instance of AvailablePropertiesInner1AttractionListInnerDistance to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/AvailablePropertiesInner1Geo.java b/src/main/java/com/lodgea/model/AvailablePropertiesInner1Geo.java new file mode 100644 index 0000000..e413a5a --- /dev/null +++ b/src/main/java/com/lodgea/model/AvailablePropertiesInner1Geo.java @@ -0,0 +1,1035 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner1GeoLocation; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * A geographical information set describing the location of this property.<br><br>See also <a href=\"#locationtypes\">in the appendix</a>. + */ +@ApiModel(description = "A geographical information set describing the location of this property.

See also in the appendix.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class AvailablePropertiesInner1Geo { + /** + * The language of the localizable fields ot this geographical information set.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(LanguageEnum.Adapter.class) + public enum LanguageEnum { + AF("af"), + + AR("ar"), + + BG("bg"), + + CA("ca"), + + CS("cs"), + + DA("da"), + + DE("de"), + + EL("el"), + + EN("en"), + + ES("es"), + + ET("et"), + + FI("fi"), + + FR("fr"), + + HE("he"), + + HI("hi"), + + HR("hr"), + + HU("hu"), + + ID("id"), + + IS("is"), + + IT("it"), + + JA("ja"), + + KO("ko"), + + LT("lt"), + + LV("lv"), + + NL("nl"), + + NO("no"), + + PL("pl"), + + PT("pt"), + + RO("ro"), + + RU("ru"), + + SK("sk"), + + SL("sl"), + + SR("sr"), + + SV("sv"), + + TH("th"), + + TR("tr"), + + VI("vi"), + + ZH("zh"); + + private String value; + + LanguageEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LanguageEnum fromValue(String value) { + for (LanguageEnum b : LanguageEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LanguageEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LanguageEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LanguageEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_LANGUAGE = "language"; + @SerializedName(SERIALIZED_NAME_LANGUAGE) + private LanguageEnum language; + + public static final String SERIALIZED_NAME_FORMATTED_ADDRESS = "formatted_address"; + @SerializedName(SERIALIZED_NAME_FORMATTED_ADDRESS) + private String formattedAddress; + + public static final String SERIALIZED_NAME_ROUTE = "route"; + @SerializedName(SERIALIZED_NAME_ROUTE) + private String route; + + public static final String SERIALIZED_NAME_STREET_NUMBER = "street_number"; + @SerializedName(SERIALIZED_NAME_STREET_NUMBER) + private String streetNumber; + + public static final String SERIALIZED_NAME_POSTAL_CODE = "postal_code"; + @SerializedName(SERIALIZED_NAME_POSTAL_CODE) + private String postalCode; + + public static final String SERIALIZED_NAME_LOCALITY = "locality"; + @SerializedName(SERIALIZED_NAME_LOCALITY) + private String locality; + + public static final String SERIALIZED_NAME_SUBLOCALITY = "sublocality"; + @SerializedName(SERIALIZED_NAME_SUBLOCALITY) + private String sublocality; + + public static final String SERIALIZED_NAME_SUBLOCALITY_LEVEL1 = "sublocality_level_1"; + @SerializedName(SERIALIZED_NAME_SUBLOCALITY_LEVEL1) + private String sublocalityLevel1; + + public static final String SERIALIZED_NAME_SUBLOCALITY_LEVEL2 = "sublocality_level_2"; + @SerializedName(SERIALIZED_NAME_SUBLOCALITY_LEVEL2) + private String sublocalityLevel2; + + public static final String SERIALIZED_NAME_SUBLOCALITY_LEVEL3 = "sublocality_level_3"; + @SerializedName(SERIALIZED_NAME_SUBLOCALITY_LEVEL3) + private String sublocalityLevel3; + + public static final String SERIALIZED_NAME_SUBLOCALITY_LEVEL4 = "sublocality_level_4"; + @SerializedName(SERIALIZED_NAME_SUBLOCALITY_LEVEL4) + private String sublocalityLevel4; + + public static final String SERIALIZED_NAME_SUBLOCALITY_LEVEL5 = "sublocality_level_5"; + @SerializedName(SERIALIZED_NAME_SUBLOCALITY_LEVEL5) + private String sublocalityLevel5; + + public static final String SERIALIZED_NAME_ADMINISTRATIVE_AREA_LEVEL1 = "administrative_area_level_1"; + @SerializedName(SERIALIZED_NAME_ADMINISTRATIVE_AREA_LEVEL1) + private String administrativeAreaLevel1; + + public static final String SERIALIZED_NAME_ADMINISTRATIVE_AREA_LEVEL2 = "administrative_area_level_2"; + @SerializedName(SERIALIZED_NAME_ADMINISTRATIVE_AREA_LEVEL2) + private String administrativeAreaLevel2; + + public static final String SERIALIZED_NAME_ADMINISTRATIVE_AREA_LEVEL3 = "administrative_area_level_3"; + @SerializedName(SERIALIZED_NAME_ADMINISTRATIVE_AREA_LEVEL3) + private String administrativeAreaLevel3; + + public static final String SERIALIZED_NAME_ADMINISTRATIVE_AREA_LEVEL4 = "administrative_area_level_4"; + @SerializedName(SERIALIZED_NAME_ADMINISTRATIVE_AREA_LEVEL4) + private String administrativeAreaLevel4; + + public static final String SERIALIZED_NAME_ADMINISTRATIVE_AREA_LEVEL5 = "administrative_area_level_5"; + @SerializedName(SERIALIZED_NAME_ADMINISTRATIVE_AREA_LEVEL5) + private String administrativeAreaLevel5; + + public static final String SERIALIZED_NAME_STATE_CODE = "state_code"; + @SerializedName(SERIALIZED_NAME_STATE_CODE) + private String stateCode; + + public static final String SERIALIZED_NAME_COUNTRY = "country"; + @SerializedName(SERIALIZED_NAME_COUNTRY) + private String country; + + public static final String SERIALIZED_NAME_COUNTRY_CODE = "country_code"; + @SerializedName(SERIALIZED_NAME_COUNTRY_CODE) + private String countryCode; + + public static final String SERIALIZED_NAME_LOCATION = "location"; + @SerializedName(SERIALIZED_NAME_LOCATION) + private AvailablePropertiesInner1GeoLocation location; + + public static final String SERIALIZED_NAME_PLACE_ID = "place_id"; + @SerializedName(SERIALIZED_NAME_PLACE_ID) + private String placeId; + + public AvailablePropertiesInner1Geo() { + } + + public AvailablePropertiesInner1Geo language(LanguageEnum language) { + + this.language = language; + return this; + } + + /** + * The language of the localizable fields ot this geographical information set.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + * @return language + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "de", required = true, value = "The language of the localizable fields ot this geographical information set.

Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.

See also in the appendix.

") + + public LanguageEnum getLanguage() { + return language; + } + + + public void setLanguage(LanguageEnum language) { + this.language = language; + } + + + public AvailablePropertiesInner1Geo formattedAddress(String formattedAddress) { + + this.formattedAddress = formattedAddress; + return this; + } + + /** + * The formatted address in the local format of the properties location. + * @return formattedAddress + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Nordhedig 20, 25980 Sylt, Germany", required = true, value = "The formatted address in the local format of the properties location.") + + public String getFormattedAddress() { + return formattedAddress; + } + + + public void setFormattedAddress(String formattedAddress) { + this.formattedAddress = formattedAddress; + } + + + public AvailablePropertiesInner1Geo route(String route) { + + this.route = route; + return this; + } + + /** + * The name of the route or street. + * @return route + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Nordhedig", value = "The name of the route or street.") + + public String getRoute() { + return route; + } + + + public void setRoute(String route) { + this.route = route; + } + + + public AvailablePropertiesInner1Geo streetNumber(String streetNumber) { + + this.streetNumber = streetNumber; + return this; + } + + /** + * The number of the street. + * @return streetNumber + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "20", value = "The number of the street.") + + public String getStreetNumber() { + return streetNumber; + } + + + public void setStreetNumber(String streetNumber) { + this.streetNumber = streetNumber; + } + + + public AvailablePropertiesInner1Geo postalCode(String postalCode) { + + this.postalCode = postalCode; + return this; + } + + /** + * The postal code of the location. + * @return postalCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "25980", value = "The postal code of the location.") + + public String getPostalCode() { + return postalCode; + } + + + public void setPostalCode(String postalCode) { + this.postalCode = postalCode; + } + + + public AvailablePropertiesInner1Geo locality(String locality) { + + this.locality = locality; + return this; + } + + /** + * A city or town. + * @return locality + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Sylt", value = "A city or town.") + + public String getLocality() { + return locality; + } + + + public void setLocality(String locality) { + this.locality = locality; + } + + + public AvailablePropertiesInner1Geo sublocality(String sublocality) { + + this.sublocality = sublocality; + return this; + } + + /** + * A smaller area within a locality. + * @return sublocality + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Westerland", value = "A smaller area within a locality.") + + public String getSublocality() { + return sublocality; + } + + + public void setSublocality(String sublocality) { + this.sublocality = sublocality; + } + + + public AvailablePropertiesInner1Geo sublocalityLevel1(String sublocalityLevel1) { + + this.sublocalityLevel1 = sublocalityLevel1; + return this; + } + + /** + * A smaller area within a locality at level 1. + * @return sublocalityLevel1 + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Westerland", value = "A smaller area within a locality at level 1.") + + public String getSublocalityLevel1() { + return sublocalityLevel1; + } + + + public void setSublocalityLevel1(String sublocalityLevel1) { + this.sublocalityLevel1 = sublocalityLevel1; + } + + + public AvailablePropertiesInner1Geo sublocalityLevel2(String sublocalityLevel2) { + + this.sublocalityLevel2 = sublocalityLevel2; + return this; + } + + /** + * A smaller area within a locality at level 2. + * @return sublocalityLevel2 + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Some Sublocality", value = "A smaller area within a locality at level 2.") + + public String getSublocalityLevel2() { + return sublocalityLevel2; + } + + + public void setSublocalityLevel2(String sublocalityLevel2) { + this.sublocalityLevel2 = sublocalityLevel2; + } + + + public AvailablePropertiesInner1Geo sublocalityLevel3(String sublocalityLevel3) { + + this.sublocalityLevel3 = sublocalityLevel3; + return this; + } + + /** + * A smaller area within a locality at level 3. + * @return sublocalityLevel3 + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Some Sublocality", value = "A smaller area within a locality at level 3.") + + public String getSublocalityLevel3() { + return sublocalityLevel3; + } + + + public void setSublocalityLevel3(String sublocalityLevel3) { + this.sublocalityLevel3 = sublocalityLevel3; + } + + + public AvailablePropertiesInner1Geo sublocalityLevel4(String sublocalityLevel4) { + + this.sublocalityLevel4 = sublocalityLevel4; + return this; + } + + /** + * A smaller area within a locality at level 4. + * @return sublocalityLevel4 + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Some Sublocality", value = "A smaller area within a locality at level 4.") + + public String getSublocalityLevel4() { + return sublocalityLevel4; + } + + + public void setSublocalityLevel4(String sublocalityLevel4) { + this.sublocalityLevel4 = sublocalityLevel4; + } + + + public AvailablePropertiesInner1Geo sublocalityLevel5(String sublocalityLevel5) { + + this.sublocalityLevel5 = sublocalityLevel5; + return this; + } + + /** + * A smaller area within a locality at level 5. + * @return sublocalityLevel5 + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Some Sublocality", value = "A smaller area within a locality at level 5.") + + public String getSublocalityLevel5() { + return sublocalityLevel5; + } + + + public void setSublocalityLevel5(String sublocalityLevel5) { + this.sublocalityLevel5 = sublocalityLevel5; + } + + + public AvailablePropertiesInner1Geo administrativeAreaLevel1(String administrativeAreaLevel1) { + + this.administrativeAreaLevel1 = administrativeAreaLevel1; + return this; + } + + /** + * A level 1 administrative area, such as a state or province. + * @return administrativeAreaLevel1 + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Schleswig-Holstein", value = "A level 1 administrative area, such as a state or province.") + + public String getAdministrativeAreaLevel1() { + return administrativeAreaLevel1; + } + + + public void setAdministrativeAreaLevel1(String administrativeAreaLevel1) { + this.administrativeAreaLevel1 = administrativeAreaLevel1; + } + + + public AvailablePropertiesInner1Geo administrativeAreaLevel2(String administrativeAreaLevel2) { + + this.administrativeAreaLevel2 = administrativeAreaLevel2; + return this; + } + + /** + * A level 2 administrative area. + * @return administrativeAreaLevel2 + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Friesland", value = "A level 2 administrative area.") + + public String getAdministrativeAreaLevel2() { + return administrativeAreaLevel2; + } + + + public void setAdministrativeAreaLevel2(String administrativeAreaLevel2) { + this.administrativeAreaLevel2 = administrativeAreaLevel2; + } + + + public AvailablePropertiesInner1Geo administrativeAreaLevel3(String administrativeAreaLevel3) { + + this.administrativeAreaLevel3 = administrativeAreaLevel3; + return this; + } + + /** + * A level 3 administrative area + * @return administrativeAreaLevel3 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A level 3 administrative area") + + public String getAdministrativeAreaLevel3() { + return administrativeAreaLevel3; + } + + + public void setAdministrativeAreaLevel3(String administrativeAreaLevel3) { + this.administrativeAreaLevel3 = administrativeAreaLevel3; + } + + + public AvailablePropertiesInner1Geo administrativeAreaLevel4(String administrativeAreaLevel4) { + + this.administrativeAreaLevel4 = administrativeAreaLevel4; + return this; + } + + /** + * A level 4 administrative area. + * @return administrativeAreaLevel4 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A level 4 administrative area.") + + public String getAdministrativeAreaLevel4() { + return administrativeAreaLevel4; + } + + + public void setAdministrativeAreaLevel4(String administrativeAreaLevel4) { + this.administrativeAreaLevel4 = administrativeAreaLevel4; + } + + + public AvailablePropertiesInner1Geo administrativeAreaLevel5(String administrativeAreaLevel5) { + + this.administrativeAreaLevel5 = administrativeAreaLevel5; + return this; + } + + /** + * A level 5 administrative area + * @return administrativeAreaLevel5 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A level 5 administrative area") + + public String getAdministrativeAreaLevel5() { + return administrativeAreaLevel5; + } + + + public void setAdministrativeAreaLevel5(String administrativeAreaLevel5) { + this.administrativeAreaLevel5 = administrativeAreaLevel5; + } + + + public AvailablePropertiesInner1Geo stateCode(String stateCode) { + + this.stateCode = stateCode; + return this; + } + + /** + * The state or province code for the administrative area. + * @return stateCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "SH", value = "The state or province code for the administrative area.") + + public String getStateCode() { + return stateCode; + } + + + public void setStateCode(String stateCode) { + this.stateCode = stateCode; + } + + + public AvailablePropertiesInner1Geo country(String country) { + + this.country = country; + return this; + } + + /** + * The country of this geographical information set. + * @return country + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Germany", value = "The country of this geographical information set.") + + public String getCountry() { + return country; + } + + + public void setCountry(String country) { + this.country = country; + } + + + public AvailablePropertiesInner1Geo countryCode(String countryCode) { + + this.countryCode = countryCode; + return this; + } + + /** + * The country code for the country. + * @return countryCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "DE", value = "The country code for the country.") + + public String getCountryCode() { + return countryCode; + } + + + public void setCountryCode(String countryCode) { + this.countryCode = countryCode; + } + + + public AvailablePropertiesInner1Geo location(AvailablePropertiesInner1GeoLocation location) { + + this.location = location; + return this; + } + + /** + * Get location + * @return location + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public AvailablePropertiesInner1GeoLocation getLocation() { + return location; + } + + + public void setLocation(AvailablePropertiesInner1GeoLocation location) { + this.location = location; + } + + + public AvailablePropertiesInner1Geo placeId(String placeId) { + + this.placeId = placeId; + return this; + } + + /** + * Uniquely identifies a place in our database. + * @return placeId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "ChIJVaxqTevetEcRyfs8PGHK6mw", required = true, value = "Uniquely identifies a place in our database.") + + public String getPlaceId() { + return placeId; + } + + + public void setPlaceId(String placeId) { + this.placeId = placeId; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AvailablePropertiesInner1Geo availablePropertiesInner1Geo = (AvailablePropertiesInner1Geo) o; + return Objects.equals(this.language, availablePropertiesInner1Geo.language) && + Objects.equals(this.formattedAddress, availablePropertiesInner1Geo.formattedAddress) && + Objects.equals(this.route, availablePropertiesInner1Geo.route) && + Objects.equals(this.streetNumber, availablePropertiesInner1Geo.streetNumber) && + Objects.equals(this.postalCode, availablePropertiesInner1Geo.postalCode) && + Objects.equals(this.locality, availablePropertiesInner1Geo.locality) && + Objects.equals(this.sublocality, availablePropertiesInner1Geo.sublocality) && + Objects.equals(this.sublocalityLevel1, availablePropertiesInner1Geo.sublocalityLevel1) && + Objects.equals(this.sublocalityLevel2, availablePropertiesInner1Geo.sublocalityLevel2) && + Objects.equals(this.sublocalityLevel3, availablePropertiesInner1Geo.sublocalityLevel3) && + Objects.equals(this.sublocalityLevel4, availablePropertiesInner1Geo.sublocalityLevel4) && + Objects.equals(this.sublocalityLevel5, availablePropertiesInner1Geo.sublocalityLevel5) && + Objects.equals(this.administrativeAreaLevel1, availablePropertiesInner1Geo.administrativeAreaLevel1) && + Objects.equals(this.administrativeAreaLevel2, availablePropertiesInner1Geo.administrativeAreaLevel2) && + Objects.equals(this.administrativeAreaLevel3, availablePropertiesInner1Geo.administrativeAreaLevel3) && + Objects.equals(this.administrativeAreaLevel4, availablePropertiesInner1Geo.administrativeAreaLevel4) && + Objects.equals(this.administrativeAreaLevel5, availablePropertiesInner1Geo.administrativeAreaLevel5) && + Objects.equals(this.stateCode, availablePropertiesInner1Geo.stateCode) && + Objects.equals(this.country, availablePropertiesInner1Geo.country) && + Objects.equals(this.countryCode, availablePropertiesInner1Geo.countryCode) && + Objects.equals(this.location, availablePropertiesInner1Geo.location) && + Objects.equals(this.placeId, availablePropertiesInner1Geo.placeId); + } + + @Override + public int hashCode() { + return Objects.hash(language, formattedAddress, route, streetNumber, postalCode, locality, sublocality, sublocalityLevel1, sublocalityLevel2, sublocalityLevel3, sublocalityLevel4, sublocalityLevel5, administrativeAreaLevel1, administrativeAreaLevel2, administrativeAreaLevel3, administrativeAreaLevel4, administrativeAreaLevel5, stateCode, country, countryCode, location, placeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AvailablePropertiesInner1Geo {\n"); + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append(" formattedAddress: ").append(toIndentedString(formattedAddress)).append("\n"); + sb.append(" route: ").append(toIndentedString(route)).append("\n"); + sb.append(" streetNumber: ").append(toIndentedString(streetNumber)).append("\n"); + sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); + sb.append(" locality: ").append(toIndentedString(locality)).append("\n"); + sb.append(" sublocality: ").append(toIndentedString(sublocality)).append("\n"); + sb.append(" sublocalityLevel1: ").append(toIndentedString(sublocalityLevel1)).append("\n"); + sb.append(" sublocalityLevel2: ").append(toIndentedString(sublocalityLevel2)).append("\n"); + sb.append(" sublocalityLevel3: ").append(toIndentedString(sublocalityLevel3)).append("\n"); + sb.append(" sublocalityLevel4: ").append(toIndentedString(sublocalityLevel4)).append("\n"); + sb.append(" sublocalityLevel5: ").append(toIndentedString(sublocalityLevel5)).append("\n"); + sb.append(" administrativeAreaLevel1: ").append(toIndentedString(administrativeAreaLevel1)).append("\n"); + sb.append(" administrativeAreaLevel2: ").append(toIndentedString(administrativeAreaLevel2)).append("\n"); + sb.append(" administrativeAreaLevel3: ").append(toIndentedString(administrativeAreaLevel3)).append("\n"); + sb.append(" administrativeAreaLevel4: ").append(toIndentedString(administrativeAreaLevel4)).append("\n"); + sb.append(" administrativeAreaLevel5: ").append(toIndentedString(administrativeAreaLevel5)).append("\n"); + sb.append(" stateCode: ").append(toIndentedString(stateCode)).append("\n"); + sb.append(" country: ").append(toIndentedString(country)).append("\n"); + sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); + sb.append(" location: ").append(toIndentedString(location)).append("\n"); + sb.append(" placeId: ").append(toIndentedString(placeId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("language"); + openapiFields.add("formatted_address"); + openapiFields.add("route"); + openapiFields.add("street_number"); + openapiFields.add("postal_code"); + openapiFields.add("locality"); + openapiFields.add("sublocality"); + openapiFields.add("sublocality_level_1"); + openapiFields.add("sublocality_level_2"); + openapiFields.add("sublocality_level_3"); + openapiFields.add("sublocality_level_4"); + openapiFields.add("sublocality_level_5"); + openapiFields.add("administrative_area_level_1"); + openapiFields.add("administrative_area_level_2"); + openapiFields.add("administrative_area_level_3"); + openapiFields.add("administrative_area_level_4"); + openapiFields.add("administrative_area_level_5"); + openapiFields.add("state_code"); + openapiFields.add("country"); + openapiFields.add("country_code"); + openapiFields.add("location"); + openapiFields.add("place_id"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("language"); + openapiRequiredFields.add("formatted_address"); + openapiRequiredFields.add("location"); + openapiRequiredFields.add("place_id"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AvailablePropertiesInner1Geo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AvailablePropertiesInner1Geo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AvailablePropertiesInner1Geo is not found in the empty JSON string", AvailablePropertiesInner1Geo.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AvailablePropertiesInner1Geo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AvailablePropertiesInner1Geo` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AvailablePropertiesInner1Geo.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("language") != null && !jsonObj.get("language").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `language` to be a primitive type in the JSON string but got `%s`", jsonObj.get("language").toString())); + } + if (jsonObj.get("formatted_address") != null && !jsonObj.get("formatted_address").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `formatted_address` to be a primitive type in the JSON string but got `%s`", jsonObj.get("formatted_address").toString())); + } + if (jsonObj.get("route") != null && !jsonObj.get("route").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `route` to be a primitive type in the JSON string but got `%s`", jsonObj.get("route").toString())); + } + if (jsonObj.get("street_number") != null && !jsonObj.get("street_number").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `street_number` to be a primitive type in the JSON string but got `%s`", jsonObj.get("street_number").toString())); + } + if (jsonObj.get("postal_code") != null && !jsonObj.get("postal_code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `postal_code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("postal_code").toString())); + } + if (jsonObj.get("locality") != null && !jsonObj.get("locality").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `locality` to be a primitive type in the JSON string but got `%s`", jsonObj.get("locality").toString())); + } + if (jsonObj.get("sublocality") != null && !jsonObj.get("sublocality").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sublocality` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sublocality").toString())); + } + if (jsonObj.get("sublocality_level_1") != null && !jsonObj.get("sublocality_level_1").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sublocality_level_1` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sublocality_level_1").toString())); + } + if (jsonObj.get("sublocality_level_2") != null && !jsonObj.get("sublocality_level_2").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sublocality_level_2` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sublocality_level_2").toString())); + } + if (jsonObj.get("sublocality_level_3") != null && !jsonObj.get("sublocality_level_3").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sublocality_level_3` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sublocality_level_3").toString())); + } + if (jsonObj.get("sublocality_level_4") != null && !jsonObj.get("sublocality_level_4").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sublocality_level_4` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sublocality_level_4").toString())); + } + if (jsonObj.get("sublocality_level_5") != null && !jsonObj.get("sublocality_level_5").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `sublocality_level_5` to be a primitive type in the JSON string but got `%s`", jsonObj.get("sublocality_level_5").toString())); + } + if (jsonObj.get("administrative_area_level_1") != null && !jsonObj.get("administrative_area_level_1").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `administrative_area_level_1` to be a primitive type in the JSON string but got `%s`", jsonObj.get("administrative_area_level_1").toString())); + } + if (jsonObj.get("administrative_area_level_2") != null && !jsonObj.get("administrative_area_level_2").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `administrative_area_level_2` to be a primitive type in the JSON string but got `%s`", jsonObj.get("administrative_area_level_2").toString())); + } + if (jsonObj.get("administrative_area_level_3") != null && !jsonObj.get("administrative_area_level_3").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `administrative_area_level_3` to be a primitive type in the JSON string but got `%s`", jsonObj.get("administrative_area_level_3").toString())); + } + if (jsonObj.get("administrative_area_level_4") != null && !jsonObj.get("administrative_area_level_4").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `administrative_area_level_4` to be a primitive type in the JSON string but got `%s`", jsonObj.get("administrative_area_level_4").toString())); + } + if (jsonObj.get("administrative_area_level_5") != null && !jsonObj.get("administrative_area_level_5").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `administrative_area_level_5` to be a primitive type in the JSON string but got `%s`", jsonObj.get("administrative_area_level_5").toString())); + } + if (jsonObj.get("state_code") != null && !jsonObj.get("state_code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `state_code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state_code").toString())); + } + if (jsonObj.get("country") != null && !jsonObj.get("country").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `country` to be a primitive type in the JSON string but got `%s`", jsonObj.get("country").toString())); + } + if (jsonObj.get("country_code") != null && !jsonObj.get("country_code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `country_code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("country_code").toString())); + } + // validate the optional field `location` + if (jsonObj.getAsJsonObject("location") != null) { + AvailablePropertiesInner1GeoLocation.validateJsonObject(jsonObj.getAsJsonObject("location")); + } + if (jsonObj.get("place_id") != null && !jsonObj.get("place_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `place_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("place_id").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AvailablePropertiesInner1Geo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AvailablePropertiesInner1Geo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AvailablePropertiesInner1Geo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AvailablePropertiesInner1Geo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AvailablePropertiesInner1Geo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AvailablePropertiesInner1Geo given an JSON string + * + * @param jsonString JSON string + * @return An instance of AvailablePropertiesInner1Geo + * @throws IOException if the JSON string is invalid with respect to AvailablePropertiesInner1Geo + */ + public static AvailablePropertiesInner1Geo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AvailablePropertiesInner1Geo.class); + } + + /** + * Convert an instance of AvailablePropertiesInner1Geo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/AvailablePropertiesInner1GeoLocation.java b/src/main/java/com/lodgea/model/AvailablePropertiesInner1GeoLocation.java new file mode 100644 index 0000000..92828f6 --- /dev/null +++ b/src/main/java/com/lodgea/model/AvailablePropertiesInner1GeoLocation.java @@ -0,0 +1,246 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * AvailablePropertiesInner1GeoLocation + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class AvailablePropertiesInner1GeoLocation { + public static final String SERIALIZED_NAME_LNG = "lng"; + @SerializedName(SERIALIZED_NAME_LNG) + private BigDecimal lng; + + public static final String SERIALIZED_NAME_LAT = "lat"; + @SerializedName(SERIALIZED_NAME_LAT) + private BigDecimal lat; + + public AvailablePropertiesInner1GeoLocation() { + } + + public AvailablePropertiesInner1GeoLocation lng(BigDecimal lng) { + + this.lng = lng; + return this; + } + + /** + * The longitude coordinate of the location. + * @return lng + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "8.304857", required = true, value = "The longitude coordinate of the location.") + + public BigDecimal getLng() { + return lng; + } + + + public void setLng(BigDecimal lng) { + this.lng = lng; + } + + + public AvailablePropertiesInner1GeoLocation lat(BigDecimal lat) { + + this.lat = lat; + return this; + } + + /** + * The location of the property as coordinates + * @return lat + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "54.9157118", required = true, value = "The location of the property as coordinates") + + public BigDecimal getLat() { + return lat; + } + + + public void setLat(BigDecimal lat) { + this.lat = lat; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AvailablePropertiesInner1GeoLocation availablePropertiesInner1GeoLocation = (AvailablePropertiesInner1GeoLocation) o; + return Objects.equals(this.lng, availablePropertiesInner1GeoLocation.lng) && + Objects.equals(this.lat, availablePropertiesInner1GeoLocation.lat); + } + + @Override + public int hashCode() { + return Objects.hash(lng, lat); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AvailablePropertiesInner1GeoLocation {\n"); + sb.append(" lng: ").append(toIndentedString(lng)).append("\n"); + sb.append(" lat: ").append(toIndentedString(lat)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("lng"); + openapiFields.add("lat"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("lng"); + openapiRequiredFields.add("lat"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AvailablePropertiesInner1GeoLocation + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AvailablePropertiesInner1GeoLocation.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AvailablePropertiesInner1GeoLocation is not found in the empty JSON string", AvailablePropertiesInner1GeoLocation.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AvailablePropertiesInner1GeoLocation.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AvailablePropertiesInner1GeoLocation` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AvailablePropertiesInner1GeoLocation.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AvailablePropertiesInner1GeoLocation.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AvailablePropertiesInner1GeoLocation' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AvailablePropertiesInner1GeoLocation.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AvailablePropertiesInner1GeoLocation value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AvailablePropertiesInner1GeoLocation read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AvailablePropertiesInner1GeoLocation given an JSON string + * + * @param jsonString JSON string + * @return An instance of AvailablePropertiesInner1GeoLocation + * @throws IOException if the JSON string is invalid with respect to AvailablePropertiesInner1GeoLocation + */ + public static AvailablePropertiesInner1GeoLocation fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AvailablePropertiesInner1GeoLocation.class); + } + + /** + * Convert an instance of AvailablePropertiesInner1GeoLocation to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/AvailablePropertiesInner1LowestPrice.java b/src/main/java/com/lodgea/model/AvailablePropertiesInner1LowestPrice.java new file mode 100644 index 0000000..5ca51f0 --- /dev/null +++ b/src/main/java/com/lodgea/model/AvailablePropertiesInner1LowestPrice.java @@ -0,0 +1,486 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * An object outlining the stay with the lowest available price point for this property. + */ +@ApiModel(description = "An object outlining the stay with the lowest available price point for this property.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class AvailablePropertiesInner1LowestPrice { + public static final String SERIALIZED_NAME_AMOUNT = "amount"; + @SerializedName(SERIALIZED_NAME_AMOUNT) + private BigDecimal amount; + + /** + * The currency code for the given amount.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> + */ + @JsonAdapter(CurrencyCodeEnum.Adapter.class) + public enum CurrencyCodeEnum { + AED("AED"), + + ARS("ARS"), + + AUD("AUD"), + + AZN("AZN"), + + BGN("BGN"), + + BHD("BHD"), + + BRL("BRL"), + + CAD("CAD"), + + CHF("CHF"), + + CLP("CLP"), + + CNY("CNY"), + + COP("COP"), + + CZK("CZK"), + + DKK("DKK"), + + EGP("EGP"), + + EUR("EUR"), + + FJD("FJD"), + + GBP("GBP"), + + GEL("GEL"), + + HKD("HKD"), + + HUF("HUF"), + + IDR("IDR"), + + ILS("ILS"), + + INR("INR"), + + JOD("JOD"), + + JPY("JPY"), + + KRW("KRW"), + + KWD("KWD"), + + KZT("KZT"), + + MDL("MDL"), + + MXN("MXN"), + + MYR("MYR"), + + NAD("NAD"), + + NOK("NOK"), + + NZD("NZD"), + + OMR("OMR"), + + PLN("PLN"), + + QAR("QAR"), + + RON("RON"), + + RUB("RUB"), + + SAR("SAR"), + + SEK("SEK"), + + SGD("SGD"), + + THB("THB"), + + TRY("TRY"), + + TWD("TWD"), + + UAH("UAH"), + + USD("USD"), + + XOF("XOF"), + + ZAR("ZAR"); + + private String value; + + CurrencyCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CurrencyCodeEnum fromValue(String value) { + for (CurrencyCodeEnum b : CurrencyCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CurrencyCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CurrencyCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CurrencyCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CURRENCY_CODE = "currencyCode"; + @SerializedName(SERIALIZED_NAME_CURRENCY_CODE) + private CurrencyCodeEnum currencyCode; + + public static final String SERIALIZED_NAME_ARRIVAL_DATE = "arrivalDate"; + @SerializedName(SERIALIZED_NAME_ARRIVAL_DATE) + private BigDecimal arrivalDate; + + public static final String SERIALIZED_NAME_RETURN_DATE = "returnDate"; + @SerializedName(SERIALIZED_NAME_RETURN_DATE) + private BigDecimal returnDate; + + public static final String SERIALIZED_NAME_LENGTH_OF_STAY = "lengthOfStay"; + @SerializedName(SERIALIZED_NAME_LENGTH_OF_STAY) + private BigDecimal lengthOfStay; + + public AvailablePropertiesInner1LowestPrice() { + } + + public AvailablePropertiesInner1LowestPrice amount(BigDecimal amount) { + + this.amount = amount; + return this; + } + + /** + * The amount of the lowest price. + * @return amount + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "89.99", required = true, value = "The amount of the lowest price.") + + public BigDecimal getAmount() { + return amount; + } + + + public void setAmount(BigDecimal amount) { + this.amount = amount; + } + + + public AvailablePropertiesInner1LowestPrice currencyCode(CurrencyCodeEnum currencyCode) { + + this.currencyCode = currencyCode; + return this; + } + + /** + * The currency code for the given amount.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> + * @return currencyCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "EUR", required = true, value = "The currency code for the given amount.

See also in the appendix.

") + + public CurrencyCodeEnum getCurrencyCode() { + return currencyCode; + } + + + public void setCurrencyCode(CurrencyCodeEnum currencyCode) { + this.currencyCode = currencyCode; + } + + + public AvailablePropertiesInner1LowestPrice arrivalDate(BigDecimal arrivalDate) { + + this.arrivalDate = arrivalDate; + return this; + } + + /** + * Arrival date for the given price as unix timestamp (seconds). + * @return arrivalDate + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1660780800", required = true, value = "Arrival date for the given price as unix timestamp (seconds).") + + public BigDecimal getArrivalDate() { + return arrivalDate; + } + + + public void setArrivalDate(BigDecimal arrivalDate) { + this.arrivalDate = arrivalDate; + } + + + public AvailablePropertiesInner1LowestPrice returnDate(BigDecimal returnDate) { + + this.returnDate = returnDate; + return this; + } + + /** + * Departure date for the given price as unix timestamp (seconds). + * @return returnDate + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1660867200", required = true, value = "Departure date for the given price as unix timestamp (seconds).") + + public BigDecimal getReturnDate() { + return returnDate; + } + + + public void setReturnDate(BigDecimal returnDate) { + this.returnDate = returnDate; + } + + + public AvailablePropertiesInner1LowestPrice lengthOfStay(BigDecimal lengthOfStay) { + + this.lengthOfStay = lengthOfStay; + return this; + } + + /** + * The amount of nights of stay this price is for + * @return lengthOfStay + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1", required = true, value = "The amount of nights of stay this price is for") + + public BigDecimal getLengthOfStay() { + return lengthOfStay; + } + + + public void setLengthOfStay(BigDecimal lengthOfStay) { + this.lengthOfStay = lengthOfStay; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AvailablePropertiesInner1LowestPrice availablePropertiesInner1LowestPrice = (AvailablePropertiesInner1LowestPrice) o; + return Objects.equals(this.amount, availablePropertiesInner1LowestPrice.amount) && + Objects.equals(this.currencyCode, availablePropertiesInner1LowestPrice.currencyCode) && + Objects.equals(this.arrivalDate, availablePropertiesInner1LowestPrice.arrivalDate) && + Objects.equals(this.returnDate, availablePropertiesInner1LowestPrice.returnDate) && + Objects.equals(this.lengthOfStay, availablePropertiesInner1LowestPrice.lengthOfStay); + } + + @Override + public int hashCode() { + return Objects.hash(amount, currencyCode, arrivalDate, returnDate, lengthOfStay); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AvailablePropertiesInner1LowestPrice {\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n"); + sb.append(" arrivalDate: ").append(toIndentedString(arrivalDate)).append("\n"); + sb.append(" returnDate: ").append(toIndentedString(returnDate)).append("\n"); + sb.append(" lengthOfStay: ").append(toIndentedString(lengthOfStay)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("amount"); + openapiFields.add("currencyCode"); + openapiFields.add("arrivalDate"); + openapiFields.add("returnDate"); + openapiFields.add("lengthOfStay"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("amount"); + openapiRequiredFields.add("currencyCode"); + openapiRequiredFields.add("arrivalDate"); + openapiRequiredFields.add("returnDate"); + openapiRequiredFields.add("lengthOfStay"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AvailablePropertiesInner1LowestPrice + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AvailablePropertiesInner1LowestPrice.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AvailablePropertiesInner1LowestPrice is not found in the empty JSON string", AvailablePropertiesInner1LowestPrice.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AvailablePropertiesInner1LowestPrice.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AvailablePropertiesInner1LowestPrice` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AvailablePropertiesInner1LowestPrice.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("currencyCode") != null && !jsonObj.get("currencyCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currencyCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currencyCode").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AvailablePropertiesInner1LowestPrice.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AvailablePropertiesInner1LowestPrice' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AvailablePropertiesInner1LowestPrice.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AvailablePropertiesInner1LowestPrice value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AvailablePropertiesInner1LowestPrice read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AvailablePropertiesInner1LowestPrice given an JSON string + * + * @param jsonString JSON string + * @return An instance of AvailablePropertiesInner1LowestPrice + * @throws IOException if the JSON string is invalid with respect to AvailablePropertiesInner1LowestPrice + */ + public static AvailablePropertiesInner1LowestPrice fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AvailablePropertiesInner1LowestPrice.class); + } + + /** + * Convert an instance of AvailablePropertiesInner1LowestPrice to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/AvailablePropertiesInner1MediaListInner.java b/src/main/java/com/lodgea/model/AvailablePropertiesInner1MediaListInner.java new file mode 100644 index 0000000..81b9246 --- /dev/null +++ b/src/main/java/com/lodgea/model/AvailablePropertiesInner1MediaListInner.java @@ -0,0 +1,631 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * AvailablePropertiesInner1MediaListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class AvailablePropertiesInner1MediaListInner { + /** + * Gets or Sets tagList + */ + @JsonAdapter(TagListEnum.Adapter.class) + public enum TagListEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_70(new BigDecimal("70")), + + NUMBER_74(new BigDecimal("74")), + + NUMBER_81(new BigDecimal("81")), + + NUMBER_82(new BigDecimal("82")), + + NUMBER_87(new BigDecimal("87")), + + NUMBER_89(new BigDecimal("89")), + + NUMBER_90(new BigDecimal("90")), + + NUMBER_94(new BigDecimal("94")), + + NUMBER_95(new BigDecimal("95")), + + NUMBER_96(new BigDecimal("96")), + + NUMBER_97(new BigDecimal("97")), + + NUMBER_100(new BigDecimal("100")), + + NUMBER_102(new BigDecimal("102")), + + NUMBER_103(new BigDecimal("103")), + + NUMBER_104(new BigDecimal("104")), + + NUMBER_106(new BigDecimal("106")), + + NUMBER_107(new BigDecimal("107")), + + NUMBER_108(new BigDecimal("108")), + + NUMBER_112(new BigDecimal("112")), + + NUMBER_113(new BigDecimal("113")), + + NUMBER_114(new BigDecimal("114")), + + NUMBER_115(new BigDecimal("115")), + + NUMBER_116(new BigDecimal("116")), + + NUMBER_124(new BigDecimal("124")), + + NUMBER_125(new BigDecimal("125")), + + NUMBER_128(new BigDecimal("128")), + + NUMBER_131(new BigDecimal("131")), + + NUMBER_133(new BigDecimal("133")), + + NUMBER_134(new BigDecimal("134")), + + NUMBER_137(new BigDecimal("137")), + + NUMBER_141(new BigDecimal("141")), + + NUMBER_143(new BigDecimal("143")), + + NUMBER_153(new BigDecimal("153")), + + NUMBER_154(new BigDecimal("154")), + + NUMBER_155(new BigDecimal("155")), + + NUMBER_156(new BigDecimal("156")), + + NUMBER_157(new BigDecimal("157")), + + NUMBER_158(new BigDecimal("158")), + + NUMBER_159(new BigDecimal("159")), + + NUMBER_160(new BigDecimal("160")), + + NUMBER_161(new BigDecimal("161")), + + NUMBER_164(new BigDecimal("164")), + + NUMBER_165(new BigDecimal("165")), + + NUMBER_167(new BigDecimal("167")), + + NUMBER_172(new BigDecimal("172")), + + NUMBER_173(new BigDecimal("173")), + + NUMBER_177(new BigDecimal("177")), + + NUMBER_178(new BigDecimal("178")), + + NUMBER_179(new BigDecimal("179")), + + NUMBER_182(new BigDecimal("182")), + + NUMBER_183(new BigDecimal("183")), + + NUMBER_184(new BigDecimal("184")), + + NUMBER_185(new BigDecimal("185")), + + NUMBER_186(new BigDecimal("186")), + + NUMBER_187(new BigDecimal("187")), + + NUMBER_188(new BigDecimal("188")), + + NUMBER_189(new BigDecimal("189")), + + NUMBER_190(new BigDecimal("190")), + + NUMBER_191(new BigDecimal("191")), + + NUMBER_192(new BigDecimal("192")), + + NUMBER_193(new BigDecimal("193")), + + NUMBER_194(new BigDecimal("194")), + + NUMBER_197(new BigDecimal("197")), + + NUMBER_198(new BigDecimal("198")), + + NUMBER_199(new BigDecimal("199")), + + NUMBER_204(new BigDecimal("204")), + + NUMBER_205(new BigDecimal("205")), + + NUMBER_240(new BigDecimal("240")), + + NUMBER_241(new BigDecimal("241")), + + NUMBER_242(new BigDecimal("242")), + + NUMBER_245(new BigDecimal("245")), + + NUMBER_246(new BigDecimal("246")), + + NUMBER_247(new BigDecimal("247")), + + NUMBER_248(new BigDecimal("248")), + + NUMBER_249(new BigDecimal("249")), + + NUMBER_250(new BigDecimal("250")), + + NUMBER_251(new BigDecimal("251")), + + NUMBER_252(new BigDecimal("252")), + + NUMBER_253(new BigDecimal("253")), + + NUMBER_254(new BigDecimal("254")), + + NUMBER_255(new BigDecimal("255")), + + NUMBER_256(new BigDecimal("256")), + + NUMBER_257(new BigDecimal("257")), + + NUMBER_258(new BigDecimal("258")), + + NUMBER_259(new BigDecimal("259")), + + NUMBER_260(new BigDecimal("260")), + + NUMBER_261(new BigDecimal("261")), + + NUMBER_262(new BigDecimal("262")), + + NUMBER_263(new BigDecimal("263")), + + NUMBER_264(new BigDecimal("264")), + + NUMBER_265(new BigDecimal("265")), + + NUMBER_266(new BigDecimal("266")), + + NUMBER_267(new BigDecimal("267")), + + NUMBER_268(new BigDecimal("268")), + + NUMBER_269(new BigDecimal("269")), + + NUMBER_270(new BigDecimal("270")), + + NUMBER_271(new BigDecimal("271")), + + NUMBER_272(new BigDecimal("272")), + + NUMBER_273(new BigDecimal("273")), + + NUMBER_276(new BigDecimal("276")), + + NUMBER_277(new BigDecimal("277")), + + NUMBER_278(new BigDecimal("278")), + + NUMBER_279(new BigDecimal("279")), + + NUMBER_280(new BigDecimal("280")), + + NUMBER_281(new BigDecimal("281")), + + NUMBER_282(new BigDecimal("282")), + + NUMBER_283(new BigDecimal("283")), + + NUMBER_284(new BigDecimal("284")), + + NUMBER_285(new BigDecimal("285")), + + NUMBER_286(new BigDecimal("286")), + + NUMBER_287(new BigDecimal("287")), + + NUMBER_289(new BigDecimal("289")), + + NUMBER_290(new BigDecimal("290")), + + NUMBER_291(new BigDecimal("291")); + + private BigDecimal value; + + TagListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TagListEnum fromValue(BigDecimal value) { + for (TagListEnum b : TagListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TagListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TagListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TagListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_TAG_LIST = "tagList"; + @SerializedName(SERIALIZED_NAME_TAG_LIST) + private List tagList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_IS_MAIN_IMAGE = "isMainImage"; + @SerializedName(SERIALIZED_NAME_IS_MAIN_IMAGE) + private Boolean isMainImage; + + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; + + public static final String SERIALIZED_NAME_SORT_ORDER = "sortOrder"; + @SerializedName(SERIALIZED_NAME_SORT_ORDER) + private BigDecimal sortOrder; + + public AvailablePropertiesInner1MediaListInner() { + } + + public AvailablePropertiesInner1MediaListInner tagList(List tagList) { + + this.tagList = tagList; + return this; + } + + public AvailablePropertiesInner1MediaListInner addTagListItem(TagListEnum tagListItem) { + this.tagList.add(tagListItem); + return this; + } + + /** + * A list of tag codes for the media.<p>See also <a href=\"#imagetype-codes\">in the appendix</a>.</p> + * @return tagList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[3,55]", required = true, value = "A list of tag codes for the media.

See also in the appendix.

") + + public List getTagList() { + return tagList; + } + + + public void setTagList(List tagList) { + this.tagList = tagList; + } + + + public AvailablePropertiesInner1MediaListInner isMainImage(Boolean isMainImage) { + + this.isMainImage = isMainImage; + return this; + } + + /** + * Whether the media is the main image for the property. + * @return isMainImage + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Whether the media is the main image for the property.") + + public Boolean getIsMainImage() { + return isMainImage; + } + + + public void setIsMainImage(Boolean isMainImage) { + this.isMainImage = isMainImage; + } + + + public AvailablePropertiesInner1MediaListInner url(String url) { + + this.url = url; + return this; + } + + /** + * The URL for the media. + * @return url + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "5e3d9d49e9480.jpg", required = true, value = "The URL for the media.") + + public String getUrl() { + return url; + } + + + public void setUrl(String url) { + this.url = url; + } + + + public AvailablePropertiesInner1MediaListInner sortOrder(BigDecimal sortOrder) { + + this.sortOrder = sortOrder; + return this; + } + + /** + * The sort order for the media. + * @return sortOrder + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1000", required = true, value = "The sort order for the media.") + + public BigDecimal getSortOrder() { + return sortOrder; + } + + + public void setSortOrder(BigDecimal sortOrder) { + this.sortOrder = sortOrder; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AvailablePropertiesInner1MediaListInner availablePropertiesInner1MediaListInner = (AvailablePropertiesInner1MediaListInner) o; + return Objects.equals(this.tagList, availablePropertiesInner1MediaListInner.tagList) && + Objects.equals(this.isMainImage, availablePropertiesInner1MediaListInner.isMainImage) && + Objects.equals(this.url, availablePropertiesInner1MediaListInner.url) && + Objects.equals(this.sortOrder, availablePropertiesInner1MediaListInner.sortOrder); + } + + @Override + public int hashCode() { + return Objects.hash(tagList, isMainImage, url, sortOrder); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AvailablePropertiesInner1MediaListInner {\n"); + sb.append(" tagList: ").append(toIndentedString(tagList)).append("\n"); + sb.append(" isMainImage: ").append(toIndentedString(isMainImage)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" sortOrder: ").append(toIndentedString(sortOrder)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("tagList"); + openapiFields.add("isMainImage"); + openapiFields.add("url"); + openapiFields.add("sortOrder"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("tagList"); + openapiRequiredFields.add("isMainImage"); + openapiRequiredFields.add("url"); + openapiRequiredFields.add("sortOrder"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to AvailablePropertiesInner1MediaListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (AvailablePropertiesInner1MediaListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in AvailablePropertiesInner1MediaListInner is not found in the empty JSON string", AvailablePropertiesInner1MediaListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!AvailablePropertiesInner1MediaListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `AvailablePropertiesInner1MediaListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : AvailablePropertiesInner1MediaListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // ensure the json data is an array + if (jsonObj.get("tagList") != null && !jsonObj.get("tagList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `tagList` to be an array in the JSON string but got `%s`", jsonObj.get("tagList").toString())); + } + if (jsonObj.get("url") != null && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!AvailablePropertiesInner1MediaListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'AvailablePropertiesInner1MediaListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(AvailablePropertiesInner1MediaListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, AvailablePropertiesInner1MediaListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public AvailablePropertiesInner1MediaListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of AvailablePropertiesInner1MediaListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of AvailablePropertiesInner1MediaListInner + * @throws IOException if the JSON string is invalid with respect to AvailablePropertiesInner1MediaListInner + */ + public static AvailablePropertiesInner1MediaListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, AvailablePropertiesInner1MediaListInner.class); + } + + /** + * Convert an instance of AvailablePropertiesInner1MediaListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/LocationSearchPost200Response.java b/src/main/java/com/lodgea/model/LocationSearchPost200Response.java new file mode 100644 index 0000000..8270da8 --- /dev/null +++ b/src/main/java/com/lodgea/model/LocationSearchPost200Response.java @@ -0,0 +1,387 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * LocationSearchPost200Response + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class LocationSearchPost200Response { + /** + * The language code of the language in which the descriptive texts for each found location are returned.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(LanguageCodeEnum.Adapter.class) + public enum LanguageCodeEnum { + AF("af"), + + AR("ar"), + + BG("bg"), + + CA("ca"), + + CS("cs"), + + DA("da"), + + DE("de"), + + EL("el"), + + EN("en"), + + ES("es"), + + ET("et"), + + FI("fi"), + + FR("fr"), + + HE("he"), + + HI("hi"), + + HR("hr"), + + HU("hu"), + + ID("id"), + + IS("is"), + + IT("it"), + + JA("ja"), + + KO("ko"), + + LT("lt"), + + LV("lv"), + + NL("nl"), + + NO("no"), + + PL("pl"), + + PT("pt"), + + RO("ro"), + + RU("ru"), + + SK("sk"), + + SL("sl"), + + SR("sr"), + + SV("sv"), + + TH("th"), + + TR("tr"), + + VI("vi"), + + ZH("zh"); + + private String value; + + LanguageCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LanguageCodeEnum fromValue(String value) { + for (LanguageCodeEnum b : LanguageCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LanguageCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LanguageCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LanguageCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_LANGUAGE_CODE = "languageCode"; + @SerializedName(SERIALIZED_NAME_LANGUAGE_CODE) + private LanguageCodeEnum languageCode; + + public static final String SERIALIZED_NAME_LIST = "list"; + @SerializedName(SERIALIZED_NAME_LIST) + private List _list = new ArrayList<>(); + + public LocationSearchPost200Response() { + } + + public LocationSearchPost200Response languageCode(LanguageCodeEnum languageCode) { + + this.languageCode = languageCode; + return this; + } + + /** + * The language code of the language in which the descriptive texts for each found location are returned.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + * @return languageCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "en", required = true, value = "The language code of the language in which the descriptive texts for each found location are returned.

Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.

See also in the appendix.

") + + public LanguageCodeEnum getLanguageCode() { + return languageCode; + } + + + public void setLanguageCode(LanguageCodeEnum languageCode) { + this.languageCode = languageCode; + } + + + public LocationSearchPost200Response _list(List _list) { + + this._list = _list; + return this; + } + + public LocationSearchPost200Response addListItem(AvailablePropertiesInner _listItem) { + this._list.add(_listItem); + return this; + } + + /** + * A list of available properties matching the given criteria. + * @return _list + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of available properties matching the given criteria.") + + public List getList() { + return _list; + } + + + public void setList(List _list) { + this._list = _list; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LocationSearchPost200Response locationSearchPost200Response = (LocationSearchPost200Response) o; + return Objects.equals(this.languageCode, locationSearchPost200Response.languageCode) && + Objects.equals(this._list, locationSearchPost200Response._list); + } + + @Override + public int hashCode() { + return Objects.hash(languageCode, _list); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LocationSearchPost200Response {\n"); + sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n"); + sb.append(" _list: ").append(toIndentedString(_list)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("languageCode"); + openapiFields.add("list"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("languageCode"); + openapiRequiredFields.add("list"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LocationSearchPost200Response + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LocationSearchPost200Response.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in LocationSearchPost200Response is not found in the empty JSON string", LocationSearchPost200Response.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!LocationSearchPost200Response.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LocationSearchPost200Response` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : LocationSearchPost200Response.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("languageCode") != null && !jsonObj.get("languageCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `languageCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("languageCode").toString())); + } + JsonArray jsonArray_list = jsonObj.getAsJsonArray("list"); + if (jsonArray_list != null) { + // ensure the json data is an array + if (!jsonObj.get("list").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `list` to be an array in the JSON string but got `%s`", jsonObj.get("list").toString())); + } + + // validate the optional field `list` (array) + for (int i = 0; i < jsonArray_list.size(); i++) { + AvailablePropertiesInner.validateJsonObject(jsonArray_list.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!LocationSearchPost200Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LocationSearchPost200Response' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(LocationSearchPost200Response.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LocationSearchPost200Response value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public LocationSearchPost200Response read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of LocationSearchPost200Response given an JSON string + * + * @param jsonString JSON string + * @return An instance of LocationSearchPost200Response + * @throws IOException if the JSON string is invalid with respect to LocationSearchPost200Response + */ + public static LocationSearchPost200Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LocationSearchPost200Response.class); + } + + /** + * Convert an instance of LocationSearchPost200Response to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/LocationSearchPost400Response.java b/src/main/java/com/lodgea/model/LocationSearchPost400Response.java new file mode 100644 index 0000000..de5072f --- /dev/null +++ b/src/main/java/com/lodgea/model/LocationSearchPost400Response.java @@ -0,0 +1,234 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.LocationSearchPost400ResponseValidationErrorsInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * LocationSearchPost400Response + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class LocationSearchPost400Response { + public static final String SERIALIZED_NAME_VALIDATION_ERRORS = "validationErrors"; + @SerializedName(SERIALIZED_NAME_VALIDATION_ERRORS) + private List validationErrors = new ArrayList<>(); + + public LocationSearchPost400Response() { + } + + public LocationSearchPost400Response validationErrors(List validationErrors) { + + this.validationErrors = validationErrors; + return this; + } + + public LocationSearchPost400Response addValidationErrorsItem(LocationSearchPost400ResponseValidationErrorsInner validationErrorsItem) { + this.validationErrors.add(validationErrorsItem); + return this; + } + + /** + * Get validationErrors + * @return validationErrors + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public List getValidationErrors() { + return validationErrors; + } + + + public void setValidationErrors(List validationErrors) { + this.validationErrors = validationErrors; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LocationSearchPost400Response locationSearchPost400Response = (LocationSearchPost400Response) o; + return Objects.equals(this.validationErrors, locationSearchPost400Response.validationErrors); + } + + @Override + public int hashCode() { + return Objects.hash(validationErrors); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LocationSearchPost400Response {\n"); + sb.append(" validationErrors: ").append(toIndentedString(validationErrors)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("validationErrors"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("validationErrors"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LocationSearchPost400Response + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LocationSearchPost400Response.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in LocationSearchPost400Response is not found in the empty JSON string", LocationSearchPost400Response.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!LocationSearchPost400Response.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LocationSearchPost400Response` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : LocationSearchPost400Response.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + JsonArray jsonArrayvalidationErrors = jsonObj.getAsJsonArray("validationErrors"); + if (jsonArrayvalidationErrors != null) { + // ensure the json data is an array + if (!jsonObj.get("validationErrors").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `validationErrors` to be an array in the JSON string but got `%s`", jsonObj.get("validationErrors").toString())); + } + + // validate the optional field `validationErrors` (array) + for (int i = 0; i < jsonArrayvalidationErrors.size(); i++) { + LocationSearchPost400ResponseValidationErrorsInner.validateJsonObject(jsonArrayvalidationErrors.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!LocationSearchPost400Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LocationSearchPost400Response' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(LocationSearchPost400Response.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LocationSearchPost400Response value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public LocationSearchPost400Response read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of LocationSearchPost400Response given an JSON string + * + * @param jsonString JSON string + * @return An instance of LocationSearchPost400Response + * @throws IOException if the JSON string is invalid with respect to LocationSearchPost400Response + */ + public static LocationSearchPost400Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LocationSearchPost400Response.class); + } + + /** + * Convert an instance of LocationSearchPost400Response to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/LocationSearchPost400ResponseValidationErrorsInner.java b/src/main/java/com/lodgea/model/LocationSearchPost400ResponseValidationErrorsInner.java new file mode 100644 index 0000000..c2f8644 --- /dev/null +++ b/src/main/java/com/lodgea/model/LocationSearchPost400ResponseValidationErrorsInner.java @@ -0,0 +1,369 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * A Zod issue. More fields can be present depending on the issue type. + */ +@ApiModel(description = "A Zod issue. More fields can be present depending on the issue type.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class LocationSearchPost400ResponseValidationErrorsInner { + /** + * The ZodIssueCode describing the issue. + */ + @JsonAdapter(CodeEnum.Adapter.class) + public enum CodeEnum { + INVALID_TYPE("invalid_type"), + + INVALID_LITERAL("invalid_literal"), + + CUSTOM("custom"), + + INVALID_UNION("invalid_union"), + + INVALID_UNION_DISCRIMINATOR("invalid_union_discriminator"), + + INVALID_ENUM_VALUE("invalid_enum_value"), + + UNRECOGNIZED_KEYS("unrecognized_keys"), + + INVALID_ARGUMENTS("invalid_arguments"), + + INVALID_RETURN_TYPE("invalid_return_type"), + + INVALID_DATE("invalid_date"), + + INVALID_STRING("invalid_string"), + + TOO_SMALL("too_small"), + + TOO_BIG("too_big"), + + INVALID_INTERSECTION_TYPES("invalid_intersection_types"), + + NOT_MULTIPLE_OF("not_multiple_of"), + + NOT_FINITE("not_finite"); + + private String value; + + CodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CodeEnum fromValue(String value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private CodeEnum code; + + public static final String SERIALIZED_NAME_MESSAGE = "message"; + @SerializedName(SERIALIZED_NAME_MESSAGE) + private String message; + + public static final String SERIALIZED_NAME_PATH = "path"; + @SerializedName(SERIALIZED_NAME_PATH) + private List path = new ArrayList<>(); + + public LocationSearchPost400ResponseValidationErrorsInner() { + } + + public LocationSearchPost400ResponseValidationErrorsInner code(CodeEnum code) { + + this.code = code; + return this; + } + + /** + * The ZodIssueCode describing the issue. + * @return code + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "invalid_type", required = true, value = "The ZodIssueCode describing the issue.") + + public CodeEnum getCode() { + return code; + } + + + public void setCode(CodeEnum code) { + this.code = code; + } + + + public LocationSearchPost400ResponseValidationErrorsInner message(String message) { + + this.message = message; + return this; + } + + /** + * A message describing the error in a human readable way. + * @return message + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Invalid type. Expected string, received number.", required = true, value = "A message describing the error in a human readable way.") + + public String getMessage() { + return message; + } + + + public void setMessage(String message) { + this.message = message; + } + + + public LocationSearchPost400ResponseValidationErrorsInner path(List path) { + + this.path = path; + return this; + } + + public LocationSearchPost400ResponseValidationErrorsInner addPathItem(String pathItem) { + this.path.add(pathItem); + return this; + } + + /** + * An array describing the position of the faulty property. The first segment will always be either \"body\", \"pathParameters\" or \"queryParameters\" indicating on which part of your request the error occurred. + * @return path + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[\"body\",\"myObjectKey\"]", required = true, value = "An array describing the position of the faulty property. The first segment will always be either \"body\", \"pathParameters\" or \"queryParameters\" indicating on which part of your request the error occurred.") + + public List getPath() { + return path; + } + + + public void setPath(List path) { + this.path = path; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LocationSearchPost400ResponseValidationErrorsInner locationSearchPost400ResponseValidationErrorsInner = (LocationSearchPost400ResponseValidationErrorsInner) o; + return Objects.equals(this.code, locationSearchPost400ResponseValidationErrorsInner.code) && + Objects.equals(this.message, locationSearchPost400ResponseValidationErrorsInner.message) && + Objects.equals(this.path, locationSearchPost400ResponseValidationErrorsInner.path); + } + + @Override + public int hashCode() { + return Objects.hash(code, message, path); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LocationSearchPost400ResponseValidationErrorsInner {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("code"); + openapiFields.add("message"); + openapiFields.add("path"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("code"); + openapiRequiredFields.add("message"); + openapiRequiredFields.add("path"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LocationSearchPost400ResponseValidationErrorsInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LocationSearchPost400ResponseValidationErrorsInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in LocationSearchPost400ResponseValidationErrorsInner is not found in the empty JSON string", LocationSearchPost400ResponseValidationErrorsInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!LocationSearchPost400ResponseValidationErrorsInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LocationSearchPost400ResponseValidationErrorsInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : LocationSearchPost400ResponseValidationErrorsInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("code") != null && !jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + if (jsonObj.get("message") != null && !jsonObj.get("message").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `message` to be a primitive type in the JSON string but got `%s`", jsonObj.get("message").toString())); + } + // ensure the json data is an array + if (jsonObj.get("path") != null && !jsonObj.get("path").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `path` to be an array in the JSON string but got `%s`", jsonObj.get("path").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!LocationSearchPost400ResponseValidationErrorsInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LocationSearchPost400ResponseValidationErrorsInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(LocationSearchPost400ResponseValidationErrorsInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LocationSearchPost400ResponseValidationErrorsInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public LocationSearchPost400ResponseValidationErrorsInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of LocationSearchPost400ResponseValidationErrorsInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of LocationSearchPost400ResponseValidationErrorsInner + * @throws IOException if the JSON string is invalid with respect to LocationSearchPost400ResponseValidationErrorsInner + */ + public static LocationSearchPost400ResponseValidationErrorsInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LocationSearchPost400ResponseValidationErrorsInner.class); + } + + /** + * Convert an instance of LocationSearchPost400ResponseValidationErrorsInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/LocationSearchPostRequest.java b/src/main/java/com/lodgea/model/LocationSearchPostRequest.java new file mode 100644 index 0000000..9c1000e --- /dev/null +++ b/src/main/java/com/lodgea/model/LocationSearchPostRequest.java @@ -0,0 +1,547 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * LocationSearchPostRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class LocationSearchPostRequest { + public static final String SERIALIZED_NAME_SEARCH_TEXT = "searchText"; + @SerializedName(SERIALIZED_NAME_SEARCH_TEXT) + private String searchText; + + /** + * The currency code of the currency in which the lowest price for each found location should be returned.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> + */ + @JsonAdapter(CurrencyCodeEnum.Adapter.class) + public enum CurrencyCodeEnum { + AED("AED"), + + ARS("ARS"), + + AUD("AUD"), + + AZN("AZN"), + + BGN("BGN"), + + BHD("BHD"), + + BRL("BRL"), + + CAD("CAD"), + + CHF("CHF"), + + CLP("CLP"), + + CNY("CNY"), + + COP("COP"), + + CZK("CZK"), + + DKK("DKK"), + + EGP("EGP"), + + EUR("EUR"), + + FJD("FJD"), + + GBP("GBP"), + + GEL("GEL"), + + HKD("HKD"), + + HUF("HUF"), + + IDR("IDR"), + + ILS("ILS"), + + INR("INR"), + + JOD("JOD"), + + JPY("JPY"), + + KRW("KRW"), + + KWD("KWD"), + + KZT("KZT"), + + MDL("MDL"), + + MXN("MXN"), + + MYR("MYR"), + + NAD("NAD"), + + NOK("NOK"), + + NZD("NZD"), + + OMR("OMR"), + + PLN("PLN"), + + QAR("QAR"), + + RON("RON"), + + RUB("RUB"), + + SAR("SAR"), + + SEK("SEK"), + + SGD("SGD"), + + THB("THB"), + + TRY("TRY"), + + TWD("TWD"), + + UAH("UAH"), + + USD("USD"), + + XOF("XOF"), + + ZAR("ZAR"); + + private String value; + + CurrencyCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CurrencyCodeEnum fromValue(String value) { + for (CurrencyCodeEnum b : CurrencyCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CurrencyCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CurrencyCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CurrencyCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CURRENCY_CODE = "currencyCode"; + @SerializedName(SERIALIZED_NAME_CURRENCY_CODE) + private CurrencyCodeEnum currencyCode; + + /** + * The language code of the language in which the descriptive texts for each found location should be returned.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(LanguageCodeEnum.Adapter.class) + public enum LanguageCodeEnum { + AF("af"), + + AR("ar"), + + BG("bg"), + + CA("ca"), + + CS("cs"), + + DA("da"), + + DE("de"), + + EL("el"), + + EN("en"), + + ES("es"), + + ET("et"), + + FI("fi"), + + FR("fr"), + + HE("he"), + + HI("hi"), + + HR("hr"), + + HU("hu"), + + ID("id"), + + IS("is"), + + IT("it"), + + JA("ja"), + + KO("ko"), + + LT("lt"), + + LV("lv"), + + NL("nl"), + + NO("no"), + + PL("pl"), + + PT("pt"), + + RO("ro"), + + RU("ru"), + + SK("sk"), + + SL("sl"), + + SR("sr"), + + SV("sv"), + + TH("th"), + + TR("tr"), + + VI("vi"), + + ZH("zh"); + + private String value; + + LanguageCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LanguageCodeEnum fromValue(String value) { + for (LanguageCodeEnum b : LanguageCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LanguageCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LanguageCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LanguageCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_LANGUAGE_CODE = "languageCode"; + @SerializedName(SERIALIZED_NAME_LANGUAGE_CODE) + private LanguageCodeEnum languageCode; + + public LocationSearchPostRequest() { + } + + public LocationSearchPostRequest searchText(String searchText) { + + this.searchText = searchText; + return this; + } + + /** + * A search text in free form to search locations by. + * @return searchText + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Hotel Stadt Hamburg", required = true, value = "A search text in free form to search locations by.") + + public String getSearchText() { + return searchText; + } + + + public void setSearchText(String searchText) { + this.searchText = searchText; + } + + + public LocationSearchPostRequest currencyCode(CurrencyCodeEnum currencyCode) { + + this.currencyCode = currencyCode; + return this; + } + + /** + * The currency code of the currency in which the lowest price for each found location should be returned.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> + * @return currencyCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "EUR", required = true, value = "The currency code of the currency in which the lowest price for each found location should be returned.

See also in the appendix.

") + + public CurrencyCodeEnum getCurrencyCode() { + return currencyCode; + } + + + public void setCurrencyCode(CurrencyCodeEnum currencyCode) { + this.currencyCode = currencyCode; + } + + + public LocationSearchPostRequest languageCode(LanguageCodeEnum languageCode) { + + this.languageCode = languageCode; + return this; + } + + /** + * The language code of the language in which the descriptive texts for each found location should be returned.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + * @return languageCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "en", required = true, value = "The language code of the language in which the descriptive texts for each found location should be returned.

Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.

See also in the appendix.

") + + public LanguageCodeEnum getLanguageCode() { + return languageCode; + } + + + public void setLanguageCode(LanguageCodeEnum languageCode) { + this.languageCode = languageCode; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LocationSearchPostRequest locationSearchPostRequest = (LocationSearchPostRequest) o; + return Objects.equals(this.searchText, locationSearchPostRequest.searchText) && + Objects.equals(this.currencyCode, locationSearchPostRequest.currencyCode) && + Objects.equals(this.languageCode, locationSearchPostRequest.languageCode); + } + + @Override + public int hashCode() { + return Objects.hash(searchText, currencyCode, languageCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LocationSearchPostRequest {\n"); + sb.append(" searchText: ").append(toIndentedString(searchText)).append("\n"); + sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n"); + sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("searchText"); + openapiFields.add("currencyCode"); + openapiFields.add("languageCode"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("searchText"); + openapiRequiredFields.add("currencyCode"); + openapiRequiredFields.add("languageCode"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to LocationSearchPostRequest + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (LocationSearchPostRequest.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in LocationSearchPostRequest is not found in the empty JSON string", LocationSearchPostRequest.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!LocationSearchPostRequest.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `LocationSearchPostRequest` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : LocationSearchPostRequest.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("searchText") != null && !jsonObj.get("searchText").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `searchText` to be a primitive type in the JSON string but got `%s`", jsonObj.get("searchText").toString())); + } + if (jsonObj.get("currencyCode") != null && !jsonObj.get("currencyCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currencyCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currencyCode").toString())); + } + if (jsonObj.get("languageCode") != null && !jsonObj.get("languageCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `languageCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("languageCode").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!LocationSearchPostRequest.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'LocationSearchPostRequest' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(LocationSearchPostRequest.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, LocationSearchPostRequest value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public LocationSearchPostRequest read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of LocationSearchPostRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of LocationSearchPostRequest + * @throws IOException if the JSON string is invalid with respect to LocationSearchPostRequest + */ + public static LocationSearchPostRequest fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, LocationSearchPostRequest.class); + } + + /** + * Convert an instance of LocationSearchPostRequest to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesGet200Response.java b/src/main/java/com/lodgea/model/PropertiesGet200Response.java new file mode 100644 index 0000000..610958c --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesGet200Response.java @@ -0,0 +1,267 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesGet200ResponseListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesGet200Response + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesGet200Response { + public static final String SERIALIZED_NAME_LIST = "list"; + @SerializedName(SERIALIZED_NAME_LIST) + private List _list = new ArrayList<>(); + + public static final String SERIALIZED_NAME_PAGE_TOKEN = "pageToken"; + @SerializedName(SERIALIZED_NAME_PAGE_TOKEN) + private String pageToken; + + public PropertiesGet200Response() { + } + + public PropertiesGet200Response _list(List _list) { + + this._list = _list; + return this; + } + + public PropertiesGet200Response addListItem(PropertiesGet200ResponseListInner _listItem) { + this._list.add(_listItem); + return this; + } + + /** + * Get _list + * @return _list + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public List getList() { + return _list; + } + + + public void setList(List _list) { + this._list = _list; + } + + + public PropertiesGet200Response pageToken(String pageToken) { + + this.pageToken = pageToken; + return this; + } + + /** + * The page token to pass in the subsequent call to retrieve more results, only returned if more results are available. + * @return pageToken + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "eyJ0ZW5hbnRDb2RlIjoiZG1vLWRlbW8iLCJuYW1lIjoiTGFuZGhhdXMgVHJlc2tlcnNhbmQiLCJwcm9wZXJ0eUlkIjoibGFuZGhhdXMtdHJlc2tlcnNhbmQifQ==", value = "The page token to pass in the subsequent call to retrieve more results, only returned if more results are available.") + + public String getPageToken() { + return pageToken; + } + + + public void setPageToken(String pageToken) { + this.pageToken = pageToken; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesGet200Response propertiesGet200Response = (PropertiesGet200Response) o; + return Objects.equals(this._list, propertiesGet200Response._list) && + Objects.equals(this.pageToken, propertiesGet200Response.pageToken); + } + + @Override + public int hashCode() { + return Objects.hash(_list, pageToken); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesGet200Response {\n"); + sb.append(" _list: ").append(toIndentedString(_list)).append("\n"); + sb.append(" pageToken: ").append(toIndentedString(pageToken)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("list"); + openapiFields.add("pageToken"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("list"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesGet200Response + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesGet200Response.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesGet200Response is not found in the empty JSON string", PropertiesGet200Response.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesGet200Response.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesGet200Response` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesGet200Response.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + JsonArray jsonArray_list = jsonObj.getAsJsonArray("list"); + if (jsonArray_list != null) { + // ensure the json data is an array + if (!jsonObj.get("list").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `list` to be an array in the JSON string but got `%s`", jsonObj.get("list").toString())); + } + + // validate the optional field `list` (array) + for (int i = 0; i < jsonArray_list.size(); i++) { + PropertiesGet200ResponseListInner.validateJsonObject(jsonArray_list.get(i).getAsJsonObject()); + }; + } + if (jsonObj.get("pageToken") != null && !jsonObj.get("pageToken").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `pageToken` to be a primitive type in the JSON string but got `%s`", jsonObj.get("pageToken").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesGet200Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesGet200Response' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesGet200Response.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesGet200Response value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesGet200Response read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesGet200Response given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesGet200Response + * @throws IOException if the JSON string is invalid with respect to PropertiesGet200Response + */ + public static PropertiesGet200Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesGet200Response.class); + } + + /** + * Convert an instance of PropertiesGet200Response to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesGet200ResponseListInner.java b/src/main/java/com/lodgea/model/PropertiesGet200ResponseListInner.java new file mode 100644 index 0000000..662c48e --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesGet200ResponseListInner.java @@ -0,0 +1,382 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesGet200ResponseListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesGet200ResponseListInner { + public static final String SERIALIZED_NAME_PUBLISHED = "published"; + @SerializedName(SERIALIZED_NAME_PUBLISHED) + private Boolean published; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_PROPERTY_ID = "propertyId"; + @SerializedName(SERIALIZED_NAME_PROPERTY_ID) + private String propertyId; + + public static final String SERIALIZED_NAME_IMAGE = "image"; + @SerializedName(SERIALIZED_NAME_IMAGE) + private String image; + + public static final String SERIALIZED_NAME_ADDRESS = "address"; + @SerializedName(SERIALIZED_NAME_ADDRESS) + private String address; + + public static final String SERIALIZED_NAME_LAST_UPDATED = "lastUpdated"; + @SerializedName(SERIALIZED_NAME_LAST_UPDATED) + private BigDecimal lastUpdated; + + public PropertiesGet200ResponseListInner() { + } + + public PropertiesGet200ResponseListInner published(Boolean published) { + + this.published = published; + return this; + } + + /** + * Whether the property is in published state. + * @return published + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "false", required = true, value = "Whether the property is in published state.") + + public Boolean getPublished() { + return published; + } + + + public void setPublished(Boolean published) { + this.published = published; + } + + + public PropertiesGet200ResponseListInner name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the property. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Strandresidenz Sylt", required = true, value = "The name of the property.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public PropertiesGet200ResponseListInner propertyId(String propertyId) { + + this.propertyId = propertyId; + return this; + } + + /** + * The unique identifier for the property. + * @return propertyId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "strandresidenz-sylt", required = true, value = "The unique identifier for the property.") + + public String getPropertyId() { + return propertyId; + } + + + public void setPropertyId(String propertyId) { + this.propertyId = propertyId; + } + + + public PropertiesGet200ResponseListInner image(String image) { + + this.image = image; + return this; + } + + /** + * The file name of the image for the property. + * @return image + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "obj_1280x960_54620_001.jpg", required = true, value = "The file name of the image for the property.") + + public String getImage() { + return image; + } + + + public void setImage(String image) { + this.image = image; + } + + + public PropertiesGet200ResponseListInner address(String address) { + + this.address = address; + return this; + } + + /** + * The address of the property. + * @return address + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Nordhedig 20 25980 Sylt Germany", required = true, value = "The address of the property.") + + public String getAddress() { + return address; + } + + + public void setAddress(String address) { + this.address = address; + } + + + public PropertiesGet200ResponseListInner lastUpdated(BigDecimal lastUpdated) { + + this.lastUpdated = lastUpdated; + return this; + } + + /** + * The timestamp of the last update to the property (Unix in ms). + * @return lastUpdated + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1652091337389", required = true, value = "The timestamp of the last update to the property (Unix in ms).") + + public BigDecimal getLastUpdated() { + return lastUpdated; + } + + + public void setLastUpdated(BigDecimal lastUpdated) { + this.lastUpdated = lastUpdated; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesGet200ResponseListInner propertiesGet200ResponseListInner = (PropertiesGet200ResponseListInner) o; + return Objects.equals(this.published, propertiesGet200ResponseListInner.published) && + Objects.equals(this.name, propertiesGet200ResponseListInner.name) && + Objects.equals(this.propertyId, propertiesGet200ResponseListInner.propertyId) && + Objects.equals(this.image, propertiesGet200ResponseListInner.image) && + Objects.equals(this.address, propertiesGet200ResponseListInner.address) && + Objects.equals(this.lastUpdated, propertiesGet200ResponseListInner.lastUpdated); + } + + @Override + public int hashCode() { + return Objects.hash(published, name, propertyId, image, address, lastUpdated); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesGet200ResponseListInner {\n"); + sb.append(" published: ").append(toIndentedString(published)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" propertyId: ").append(toIndentedString(propertyId)).append("\n"); + sb.append(" image: ").append(toIndentedString(image)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" lastUpdated: ").append(toIndentedString(lastUpdated)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("published"); + openapiFields.add("name"); + openapiFields.add("propertyId"); + openapiFields.add("image"); + openapiFields.add("address"); + openapiFields.add("lastUpdated"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("published"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("propertyId"); + openapiRequiredFields.add("image"); + openapiRequiredFields.add("address"); + openapiRequiredFields.add("lastUpdated"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesGet200ResponseListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesGet200ResponseListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesGet200ResponseListInner is not found in the empty JSON string", PropertiesGet200ResponseListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesGet200ResponseListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesGet200ResponseListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesGet200ResponseListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (jsonObj.get("propertyId") != null && !jsonObj.get("propertyId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `propertyId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("propertyId").toString())); + } + if (jsonObj.get("image") != null && !jsonObj.get("image").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `image` to be a primitive type in the JSON string but got `%s`", jsonObj.get("image").toString())); + } + if (jsonObj.get("address") != null && !jsonObj.get("address").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `address` to be a primitive type in the JSON string but got `%s`", jsonObj.get("address").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesGet200ResponseListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesGet200ResponseListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesGet200ResponseListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesGet200ResponseListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesGet200ResponseListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesGet200ResponseListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesGet200ResponseListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesGet200ResponseListInner + */ + public static PropertiesGet200ResponseListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesGet200ResponseListInner.class); + } + + /** + * Convert an instance of PropertiesGet200ResponseListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200Response.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200Response.java new file mode 100644 index 0000000..b005acf --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200Response.java @@ -0,0 +1,234 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdAvailabilityGet200Response + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdAvailabilityGet200Response { + public static final String SERIALIZED_NAME_AVAILABILITY_LIST = "availabilityList"; + @SerializedName(SERIALIZED_NAME_AVAILABILITY_LIST) + private List availabilityList = new ArrayList<>(); + + public PropertiesPropertyIdAvailabilityGet200Response() { + } + + public PropertiesPropertyIdAvailabilityGet200Response availabilityList(List availabilityList) { + + this.availabilityList = availabilityList; + return this; + } + + public PropertiesPropertyIdAvailabilityGet200Response addAvailabilityListItem(PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner availabilityListItem) { + this.availabilityList.add(availabilityListItem); + return this; + } + + /** + * An array of objects describing the available booking options. + * @return availabilityList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "An array of objects describing the available booking options.") + + public List getAvailabilityList() { + return availabilityList; + } + + + public void setAvailabilityList(List availabilityList) { + this.availabilityList = availabilityList; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdAvailabilityGet200Response propertiesPropertyIdAvailabilityGet200Response = (PropertiesPropertyIdAvailabilityGet200Response) o; + return Objects.equals(this.availabilityList, propertiesPropertyIdAvailabilityGet200Response.availabilityList); + } + + @Override + public int hashCode() { + return Objects.hash(availabilityList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdAvailabilityGet200Response {\n"); + sb.append(" availabilityList: ").append(toIndentedString(availabilityList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("availabilityList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("availabilityList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdAvailabilityGet200Response + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdAvailabilityGet200Response.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdAvailabilityGet200Response is not found in the empty JSON string", PropertiesPropertyIdAvailabilityGet200Response.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdAvailabilityGet200Response.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdAvailabilityGet200Response` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdAvailabilityGet200Response.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + JsonArray jsonArrayavailabilityList = jsonObj.getAsJsonArray("availabilityList"); + if (jsonArrayavailabilityList != null) { + // ensure the json data is an array + if (!jsonObj.get("availabilityList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `availabilityList` to be an array in the JSON string but got `%s`", jsonObj.get("availabilityList").toString())); + } + + // validate the optional field `availabilityList` (array) + for (int i = 0; i < jsonArrayavailabilityList.size(); i++) { + PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.validateJsonObject(jsonArrayavailabilityList.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdAvailabilityGet200Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdAvailabilityGet200Response' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdAvailabilityGet200Response.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdAvailabilityGet200Response value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdAvailabilityGet200Response read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdAvailabilityGet200Response given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdAvailabilityGet200Response + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdAvailabilityGet200Response + */ + public static PropertiesPropertyIdAvailabilityGet200Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdAvailabilityGet200Response.class); + } + + /** + * Convert an instance of PropertiesPropertyIdAvailabilityGet200Response to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.java new file mode 100644 index 0000000..5f65969 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.java @@ -0,0 +1,442 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner { + public static final String SERIALIZED_NAME_RATE_PLAN_LIST = "ratePlanList"; + @SerializedName(SERIALIZED_NAME_RATE_PLAN_LIST) + private List ratePlanList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + /** + * Gets or Sets mealPlanList + */ + @JsonAdapter(MealPlanListEnum.Adapter.class) + public enum MealPlanListEnum { + NUMBER_0(new BigDecimal("0")), + + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_90001(new BigDecimal("90001")); + + private BigDecimal value; + + MealPlanListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MealPlanListEnum fromValue(BigDecimal value) { + for (MealPlanListEnum b : MealPlanListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MealPlanListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MealPlanListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MealPlanListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_MEAL_PLAN_LIST = "mealPlanList"; + @SerializedName(SERIALIZED_NAME_MEAL_PLAN_LIST) + private List mealPlanList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ROOM_TYPE_LIST = "roomTypeList"; + @SerializedName(SERIALIZED_NAME_ROOM_TYPE_LIST) + private List roomTypeList = new ArrayList<>(); + + public PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner() { + } + + public PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner ratePlanList(List ratePlanList) { + + this.ratePlanList = ratePlanList; + return this; + } + + public PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner addRatePlanListItem(PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner ratePlanListItem) { + this.ratePlanList.add(ratePlanListItem); + return this; + } + + /** + * A list of available rate plans. + * @return ratePlanList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of available rate plans.") + + public List getRatePlanList() { + return ratePlanList; + } + + + public void setRatePlanList(List ratePlanList) { + this.ratePlanList = ratePlanList; + } + + + public PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the rate plan group. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Standard", required = true, value = "The name of the rate plan group.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner mealPlanList(List mealPlanList) { + + this.mealPlanList = mealPlanList; + return this; + } + + public PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner addMealPlanListItem(MealPlanListEnum mealPlanListItem) { + this.mealPlanList.add(mealPlanListItem); + return this; + } + + /** + * The available meal plans.<p>See also <a href=\"#mealplan-type-codes\">in the appendix</a>.</p> + * @return mealPlanList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The available meal plans.

See also in the appendix.

") + + public List getMealPlanList() { + return mealPlanList; + } + + + public void setMealPlanList(List mealPlanList) { + this.mealPlanList = mealPlanList; + } + + + public PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner roomTypeList(List roomTypeList) { + + this.roomTypeList = roomTypeList; + return this; + } + + public PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner addRoomTypeListItem(String roomTypeListItem) { + this.roomTypeList.add(roomTypeListItem); + return this; + } + + /** + * The rooms this availability is for. + * @return roomTypeList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The rooms this availability is for.") + + public List getRoomTypeList() { + return roomTypeList; + } + + + public void setRoomTypeList(List roomTypeList) { + this.roomTypeList = roomTypeList; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner propertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner = (PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner) o; + return Objects.equals(this.ratePlanList, propertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.ratePlanList) && + Objects.equals(this.name, propertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.name) && + Objects.equals(this.mealPlanList, propertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.mealPlanList) && + Objects.equals(this.roomTypeList, propertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.roomTypeList); + } + + @Override + public int hashCode() { + return Objects.hash(ratePlanList, name, mealPlanList, roomTypeList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner {\n"); + sb.append(" ratePlanList: ").append(toIndentedString(ratePlanList)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mealPlanList: ").append(toIndentedString(mealPlanList)).append("\n"); + sb.append(" roomTypeList: ").append(toIndentedString(roomTypeList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("ratePlanList"); + openapiFields.add("name"); + openapiFields.add("mealPlanList"); + openapiFields.add("roomTypeList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("ratePlanList"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("mealPlanList"); + openapiRequiredFields.add("roomTypeList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner is not found in the empty JSON string", PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + JsonArray jsonArrayratePlanList = jsonObj.getAsJsonArray("ratePlanList"); + if (jsonArrayratePlanList != null) { + // ensure the json data is an array + if (!jsonObj.get("ratePlanList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ratePlanList` to be an array in the JSON string but got `%s`", jsonObj.get("ratePlanList").toString())); + } + + // validate the optional field `ratePlanList` (array) + for (int i = 0; i < jsonArrayratePlanList.size(); i++) { + PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.validateJsonObject(jsonArrayratePlanList.get(i).getAsJsonObject()); + }; + } + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // ensure the json data is an array + if (jsonObj.get("mealPlanList") != null && !jsonObj.get("mealPlanList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `mealPlanList` to be an array in the JSON string but got `%s`", jsonObj.get("mealPlanList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("roomTypeList") != null && !jsonObj.get("roomTypeList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `roomTypeList` to be an array in the JSON string but got `%s`", jsonObj.get("roomTypeList").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner + */ + public static PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200Response.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200Response.java new file mode 100644 index 0000000..11ea0ed --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200Response.java @@ -0,0 +1,270 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponseProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200Response + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200Response { + public static final String SERIALIZED_NAME_PROPERTY = "property"; + @SerializedName(SERIALIZED_NAME_PROPERTY) + private PropertiesPropertyIdGet200ResponseProperty property; + + public static final String SERIALIZED_NAME_PRODUCT_LIST = "productList"; + @SerializedName(SERIALIZED_NAME_PRODUCT_LIST) + private List productList = new ArrayList<>(); + + public PropertiesPropertyIdGet200Response() { + } + + public PropertiesPropertyIdGet200Response property(PropertiesPropertyIdGet200ResponseProperty property) { + + this.property = property; + return this; + } + + /** + * Get property + * @return property + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public PropertiesPropertyIdGet200ResponseProperty getProperty() { + return property; + } + + + public void setProperty(PropertiesPropertyIdGet200ResponseProperty property) { + this.property = property; + } + + + public PropertiesPropertyIdGet200Response productList(List productList) { + + this.productList = productList; + return this; + } + + public PropertiesPropertyIdGet200Response addProductListItem(PropertiesPropertyIdGet200ResponseProductListInner productListItem) { + this.productList.add(productListItem); + return this; + } + + /** + * Get productList + * @return productList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public List getProductList() { + return productList; + } + + + public void setProductList(List productList) { + this.productList = productList; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200Response propertiesPropertyIdGet200Response = (PropertiesPropertyIdGet200Response) o; + return Objects.equals(this.property, propertiesPropertyIdGet200Response.property) && + Objects.equals(this.productList, propertiesPropertyIdGet200Response.productList); + } + + @Override + public int hashCode() { + return Objects.hash(property, productList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200Response {\n"); + sb.append(" property: ").append(toIndentedString(property)).append("\n"); + sb.append(" productList: ").append(toIndentedString(productList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("property"); + openapiFields.add("productList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("property"); + openapiRequiredFields.add("productList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200Response + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200Response.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200Response is not found in the empty JSON string", PropertiesPropertyIdGet200Response.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200Response.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200Response` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200Response.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + // validate the optional field `property` + if (jsonObj.getAsJsonObject("property") != null) { + PropertiesPropertyIdGet200ResponseProperty.validateJsonObject(jsonObj.getAsJsonObject("property")); + } + JsonArray jsonArrayproductList = jsonObj.getAsJsonArray("productList"); + if (jsonArrayproductList != null) { + // ensure the json data is an array + if (!jsonObj.get("productList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `productList` to be an array in the JSON string but got `%s`", jsonObj.get("productList").toString())); + } + + // validate the optional field `productList` (array) + for (int i = 0; i < jsonArrayproductList.size(); i++) { + PropertiesPropertyIdGet200ResponseProductListInner.validateJsonObject(jsonArrayproductList.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200Response.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200Response' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200Response.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200Response value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200Response read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200Response given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200Response + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200Response + */ + public static PropertiesPropertyIdGet200Response fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200Response.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200Response to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInner.java new file mode 100644 index 0000000..bc52823 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInner.java @@ -0,0 +1,572 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo; +import com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * A list of available products for this property. + */ +@ApiModel(description = "A list of available products for this property.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponseProductListInner { + public static final String SERIALIZED_NAME_PROPERTY_ID = "propertyId"; + @SerializedName(SERIALIZED_NAME_PROPERTY_ID) + private String propertyId; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + /** + * The code of the meal plan.<p>See also <a href=\"#mealplan-type-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(MealPlanListEnum.Adapter.class) + public enum MealPlanListEnum { + NUMBER_0(new BigDecimal("0")), + + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_90001(new BigDecimal("90001")); + + private BigDecimal value; + + MealPlanListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static MealPlanListEnum fromValue(BigDecimal value) { + for (MealPlanListEnum b : MealPlanListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final MealPlanListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public MealPlanListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return MealPlanListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_MEAL_PLAN_LIST = "mealPlanList"; + @SerializedName(SERIALIZED_NAME_MEAL_PLAN_LIST) + private List mealPlanList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ROOM_TYPE_LIST = "roomTypeList"; + @SerializedName(SERIALIZED_NAME_ROOM_TYPE_LIST) + private List roomTypeList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_IS_L_O_S_PRICING = "isLOSPricing"; + @SerializedName(SERIALIZED_NAME_IS_L_O_S_PRICING) + private Boolean isLOSPricing; + + public static final String SERIALIZED_NAME_IS_O_B_P_PRICING = "isOBPPricing"; + @SerializedName(SERIALIZED_NAME_IS_O_B_P_PRICING) + private Boolean isOBPPricing; + + public static final String SERIALIZED_NAME_RATE_PLAN_LIST = "ratePlanList"; + @SerializedName(SERIALIZED_NAME_RATE_PLAN_LIST) + private List ratePlanList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_POLICY_INFO = "policyInfo"; + @SerializedName(SERIALIZED_NAME_POLICY_INFO) + private PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo policyInfo; + + public PropertiesPropertyIdGet200ResponseProductListInner() { + } + + public PropertiesPropertyIdGet200ResponseProductListInner propertyId(String propertyId) { + + this.propertyId = propertyId; + return this; + } + + /** + * The ID of the property. + * @return propertyId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "strandresidenz-sylt", required = true, value = "The ID of the property.") + + public String getPropertyId() { + return propertyId; + } + + + public void setPropertyId(String propertyId) { + this.propertyId = propertyId; + } + + + public PropertiesPropertyIdGet200ResponseProductListInner name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the product. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Standard Amrum", required = true, value = "The name of the product.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public PropertiesPropertyIdGet200ResponseProductListInner mealPlanList(List mealPlanList) { + + this.mealPlanList = mealPlanList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProductListInner addMealPlanListItem(MealPlanListEnum mealPlanListItem) { + this.mealPlanList.add(mealPlanListItem); + return this; + } + + /** + * A list of meal type codes included in this product. + * @return mealPlanList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of meal type codes included in this product.") + + public List getMealPlanList() { + return mealPlanList; + } + + + public void setMealPlanList(List mealPlanList) { + this.mealPlanList = mealPlanList; + } + + + public PropertiesPropertyIdGet200ResponseProductListInner roomTypeList(List roomTypeList) { + + this.roomTypeList = roomTypeList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProductListInner addRoomTypeListItem(String roomTypeListItem) { + this.roomTypeList.add(roomTypeListItem); + return this; + } + + /** + * An array of strings describing the room types included in this product. + * @return roomTypeList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "An array of strings describing the room types included in this product.") + + public List getRoomTypeList() { + return roomTypeList; + } + + + public void setRoomTypeList(List roomTypeList) { + this.roomTypeList = roomTypeList; + } + + + public PropertiesPropertyIdGet200ResponseProductListInner isLOSPricing(Boolean isLOSPricing) { + + this.isLOSPricing = isLOSPricing; + return this; + } + + /** + * Whether this product is length of stay pricing. + * @return isLOSPricing + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Whether this product is length of stay pricing.") + + public Boolean getIsLOSPricing() { + return isLOSPricing; + } + + + public void setIsLOSPricing(Boolean isLOSPricing) { + this.isLOSPricing = isLOSPricing; + } + + + public PropertiesPropertyIdGet200ResponseProductListInner isOBPPricing(Boolean isOBPPricing) { + + this.isOBPPricing = isOBPPricing; + return this; + } + + /** + * Whether this product is occupancy based pricing. + * @return isOBPPricing + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Whether this product is occupancy based pricing.") + + public Boolean getIsOBPPricing() { + return isOBPPricing; + } + + + public void setIsOBPPricing(Boolean isOBPPricing) { + this.isOBPPricing = isOBPPricing; + } + + + public PropertiesPropertyIdGet200ResponseProductListInner ratePlanList(List ratePlanList) { + + this.ratePlanList = ratePlanList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProductListInner addRatePlanListItem(PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner ratePlanListItem) { + this.ratePlanList.add(ratePlanListItem); + return this; + } + + /** + * The rate plans for this product. + * @return ratePlanList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The rate plans for this product.") + + public List getRatePlanList() { + return ratePlanList; + } + + + public void setRatePlanList(List ratePlanList) { + this.ratePlanList = ratePlanList; + } + + + public PropertiesPropertyIdGet200ResponseProductListInner policyInfo(PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo policyInfo) { + + this.policyInfo = policyInfo; + return this; + } + + /** + * Get policyInfo + * @return policyInfo + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo getPolicyInfo() { + return policyInfo; + } + + + public void setPolicyInfo(PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo policyInfo) { + this.policyInfo = policyInfo; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponseProductListInner propertiesPropertyIdGet200ResponseProductListInner = (PropertiesPropertyIdGet200ResponseProductListInner) o; + return Objects.equals(this.propertyId, propertiesPropertyIdGet200ResponseProductListInner.propertyId) && + Objects.equals(this.name, propertiesPropertyIdGet200ResponseProductListInner.name) && + Objects.equals(this.mealPlanList, propertiesPropertyIdGet200ResponseProductListInner.mealPlanList) && + Objects.equals(this.roomTypeList, propertiesPropertyIdGet200ResponseProductListInner.roomTypeList) && + Objects.equals(this.isLOSPricing, propertiesPropertyIdGet200ResponseProductListInner.isLOSPricing) && + Objects.equals(this.isOBPPricing, propertiesPropertyIdGet200ResponseProductListInner.isOBPPricing) && + Objects.equals(this.ratePlanList, propertiesPropertyIdGet200ResponseProductListInner.ratePlanList) && + Objects.equals(this.policyInfo, propertiesPropertyIdGet200ResponseProductListInner.policyInfo); + } + + @Override + public int hashCode() { + return Objects.hash(propertyId, name, mealPlanList, roomTypeList, isLOSPricing, isOBPPricing, ratePlanList, policyInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponseProductListInner {\n"); + sb.append(" propertyId: ").append(toIndentedString(propertyId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mealPlanList: ").append(toIndentedString(mealPlanList)).append("\n"); + sb.append(" roomTypeList: ").append(toIndentedString(roomTypeList)).append("\n"); + sb.append(" isLOSPricing: ").append(toIndentedString(isLOSPricing)).append("\n"); + sb.append(" isOBPPricing: ").append(toIndentedString(isOBPPricing)).append("\n"); + sb.append(" ratePlanList: ").append(toIndentedString(ratePlanList)).append("\n"); + sb.append(" policyInfo: ").append(toIndentedString(policyInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("propertyId"); + openapiFields.add("name"); + openapiFields.add("mealPlanList"); + openapiFields.add("roomTypeList"); + openapiFields.add("isLOSPricing"); + openapiFields.add("isOBPPricing"); + openapiFields.add("ratePlanList"); + openapiFields.add("policyInfo"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("propertyId"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("mealPlanList"); + openapiRequiredFields.add("roomTypeList"); + openapiRequiredFields.add("ratePlanList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponseProductListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponseProductListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponseProductListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponseProductListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponseProductListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponseProductListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponseProductListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("propertyId") != null && !jsonObj.get("propertyId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `propertyId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("propertyId").toString())); + } + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // ensure the json data is an array + if (jsonObj.get("mealPlanList") != null && !jsonObj.get("mealPlanList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `mealPlanList` to be an array in the JSON string but got `%s`", jsonObj.get("mealPlanList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("roomTypeList") != null && !jsonObj.get("roomTypeList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `roomTypeList` to be an array in the JSON string but got `%s`", jsonObj.get("roomTypeList").toString())); + } + JsonArray jsonArrayratePlanList = jsonObj.getAsJsonArray("ratePlanList"); + if (jsonArrayratePlanList != null) { + // ensure the json data is an array + if (!jsonObj.get("ratePlanList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `ratePlanList` to be an array in the JSON string but got `%s`", jsonObj.get("ratePlanList").toString())); + } + + // validate the optional field `ratePlanList` (array) + for (int i = 0; i < jsonArrayratePlanList.size(); i++) { + PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.validateJsonObject(jsonArrayratePlanList.get(i).getAsJsonObject()); + }; + } + // validate the optional field `policyInfo` + if (jsonObj.getAsJsonObject("policyInfo") != null) { + PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.validateJsonObject(jsonObj.getAsJsonObject("policyInfo")); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponseProductListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponseProductListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponseProductListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponseProductListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponseProductListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponseProductListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponseProductListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponseProductListInner + */ + public static PropertiesPropertyIdGet200ResponseProductListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponseProductListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponseProductListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.java new file mode 100644 index 0000000..fa46ebc --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.java @@ -0,0 +1,671 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * The policy info for this product. + */ +@ApiModel(description = "The policy info for this product.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo { + public static final String SERIALIZED_NAME_CHECK_IN_TIME = "checkInTime"; + @SerializedName(SERIALIZED_NAME_CHECK_IN_TIME) + private BigDecimal checkInTime; + + public static final String SERIALIZED_NAME_CHECK_OUT_TIME = "checkOutTime"; + @SerializedName(SERIALIZED_NAME_CHECK_OUT_TIME) + private BigDecimal checkOutTime; + + public static final String SERIALIZED_NAME_TOTAL_GUEST_COUNT = "totalGuestCount"; + @SerializedName(SERIALIZED_NAME_TOTAL_GUEST_COUNT) + private BigDecimal totalGuestCount; + + public static final String SERIALIZED_NAME_CANCELLATION_POLICY_LIST = "cancellationPolicyList"; + @SerializedName(SERIALIZED_NAME_CANCELLATION_POLICY_LIST) + private List cancellationPolicyList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ADVANCE_BOOKING_MIN = "advanceBookingMin"; + @SerializedName(SERIALIZED_NAME_ADVANCE_BOOKING_MIN) + private BigDecimal advanceBookingMin; + + public static final String SERIALIZED_NAME_ADVANCE_BOOKING_MAX = "advanceBookingMax"; + @SerializedName(SERIALIZED_NAME_ADVANCE_BOOKING_MAX) + private BigDecimal advanceBookingMax; + + public static final String SERIALIZED_NAME_PETS_POLICY = "petsPolicy"; + @SerializedName(SERIALIZED_NAME_PETS_POLICY) + private PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy petsPolicy; + + /** + * The type of the prepayment policy. + */ + @JsonAdapter(PrepaymentPolicyEnum.Adapter.class) + public enum PrepaymentPolicyEnum { + CANCELLATION_FEE_BEGINS("after_cancellation_fee_begins"), + + RESERVATION_IS_MADE("after_reservation_is_made"); + + private String value; + + PrepaymentPolicyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PrepaymentPolicyEnum fromValue(String value) { + for (PrepaymentPolicyEnum b : PrepaymentPolicyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final PrepaymentPolicyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PrepaymentPolicyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PrepaymentPolicyEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PREPAYMENT_POLICY = "prepaymentPolicy"; + @SerializedName(SERIALIZED_NAME_PREPAYMENT_POLICY) + private PrepaymentPolicyEnum prepaymentPolicy; + + public static final String SERIALIZED_NAME_GUARANTEE_POLICY = "guaranteePolicy"; + @SerializedName(SERIALIZED_NAME_GUARANTEE_POLICY) + private PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy guaranteePolicy; + + public static final String SERIALIZED_NAME_TAX_POLICY_LIST = "taxPolicyList"; + @SerializedName(SERIALIZED_NAME_TAX_POLICY_LIST) + private List taxPolicyList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_FEE_POLICY_LIST = "feePolicyList"; + @SerializedName(SERIALIZED_NAME_FEE_POLICY_LIST) + private List feePolicyList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo() { + } + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo checkInTime(BigDecimal checkInTime) { + + this.checkInTime = checkInTime; + return this; + } + + /** + * Check-in time (unix timestamp in ms). + * @return checkInTime + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "54000000", required = true, value = "Check-in time (unix timestamp in ms).") + + public BigDecimal getCheckInTime() { + return checkInTime; + } + + + public void setCheckInTime(BigDecimal checkInTime) { + this.checkInTime = checkInTime; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo checkOutTime(BigDecimal checkOutTime) { + + this.checkOutTime = checkOutTime; + return this; + } + + /** + * Check-out time (unix timestamp in ms). + * @return checkOutTime + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "43200000", required = true, value = "Check-out time (unix timestamp in ms).") + + public BigDecimal getCheckOutTime() { + return checkOutTime; + } + + + public void setCheckOutTime(BigDecimal checkOutTime) { + this.checkOutTime = checkOutTime; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo totalGuestCount(BigDecimal totalGuestCount) { + + this.totalGuestCount = totalGuestCount; + return this; + } + + /** + * The maximum number of guests allowed. + * @return totalGuestCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "10", value = "The maximum number of guests allowed.") + + public BigDecimal getTotalGuestCount() { + return totalGuestCount; + } + + + public void setTotalGuestCount(BigDecimal totalGuestCount) { + this.totalGuestCount = totalGuestCount; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo cancellationPolicyList(List cancellationPolicyList) { + + this.cancellationPolicyList = cancellationPolicyList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo addCancellationPolicyListItem(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner cancellationPolicyListItem) { + this.cancellationPolicyList.add(cancellationPolicyListItem); + return this; + } + + /** + * List of cancellation policies. + * @return cancellationPolicyList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of cancellation policies.") + + public List getCancellationPolicyList() { + return cancellationPolicyList; + } + + + public void setCancellationPolicyList(List cancellationPolicyList) { + this.cancellationPolicyList = cancellationPolicyList; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo advanceBookingMin(BigDecimal advanceBookingMin) { + + this.advanceBookingMin = advanceBookingMin; + return this; + } + + /** + * The minimum number of days in advance a booking must be made + * @return advanceBookingMin + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "365", required = true, value = "The minimum number of days in advance a booking must be made") + + public BigDecimal getAdvanceBookingMin() { + return advanceBookingMin; + } + + + public void setAdvanceBookingMin(BigDecimal advanceBookingMin) { + this.advanceBookingMin = advanceBookingMin; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo advanceBookingMax(BigDecimal advanceBookingMax) { + + this.advanceBookingMax = advanceBookingMax; + return this; + } + + /** + * The maximum number of days in advance a booking can be made + * @return advanceBookingMax + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1", required = true, value = "The maximum number of days in advance a booking can be made") + + public BigDecimal getAdvanceBookingMax() { + return advanceBookingMax; + } + + + public void setAdvanceBookingMax(BigDecimal advanceBookingMax) { + this.advanceBookingMax = advanceBookingMax; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo petsPolicy(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy petsPolicy) { + + this.petsPolicy = petsPolicy; + return this; + } + + /** + * Get petsPolicy + * @return petsPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy getPetsPolicy() { + return petsPolicy; + } + + + public void setPetsPolicy(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy petsPolicy) { + this.petsPolicy = petsPolicy; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo prepaymentPolicy(PrepaymentPolicyEnum prepaymentPolicy) { + + this.prepaymentPolicy = prepaymentPolicy; + return this; + } + + /** + * The type of the prepayment policy. + * @return prepaymentPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "after_reservation_is_made", value = "The type of the prepayment policy.") + + public PrepaymentPolicyEnum getPrepaymentPolicy() { + return prepaymentPolicy; + } + + + public void setPrepaymentPolicy(PrepaymentPolicyEnum prepaymentPolicy) { + this.prepaymentPolicy = prepaymentPolicy; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo guaranteePolicy(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy guaranteePolicy) { + + this.guaranteePolicy = guaranteePolicy; + return this; + } + + /** + * Get guaranteePolicy + * @return guaranteePolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy getGuaranteePolicy() { + return guaranteePolicy; + } + + + public void setGuaranteePolicy(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy guaranteePolicy) { + this.guaranteePolicy = guaranteePolicy; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo taxPolicyList(List taxPolicyList) { + + this.taxPolicyList = taxPolicyList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo addTaxPolicyListItem(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner taxPolicyListItem) { + this.taxPolicyList.add(taxPolicyListItem); + return this; + } + + /** + * A list of taxes and their policies. + * @return taxPolicyList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of taxes and their policies.") + + public List getTaxPolicyList() { + return taxPolicyList; + } + + + public void setTaxPolicyList(List taxPolicyList) { + this.taxPolicyList = taxPolicyList; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo feePolicyList(List feePolicyList) { + + this.feePolicyList = feePolicyList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo addFeePolicyListItem(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner feePolicyListItem) { + this.feePolicyList.add(feePolicyListItem); + return this; + } + + /** + * A list of fees and their policies. + * @return feePolicyList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of fees and their policies.") + + public List getFeePolicyList() { + return feePolicyList; + } + + + public void setFeePolicyList(List feePolicyList) { + this.feePolicyList = feePolicyList; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo name(String name) { + + this.name = name; + return this; + } + + /** + * The name of this policy. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Standard Sylt Residenz Policy", value = "The name of this policy.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo = (PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo) o; + return Objects.equals(this.checkInTime, propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.checkInTime) && + Objects.equals(this.checkOutTime, propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.checkOutTime) && + Objects.equals(this.totalGuestCount, propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.totalGuestCount) && + Objects.equals(this.cancellationPolicyList, propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.cancellationPolicyList) && + Objects.equals(this.advanceBookingMin, propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.advanceBookingMin) && + Objects.equals(this.advanceBookingMax, propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.advanceBookingMax) && + Objects.equals(this.petsPolicy, propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.petsPolicy) && + Objects.equals(this.prepaymentPolicy, propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prepaymentPolicy) && + Objects.equals(this.guaranteePolicy, propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.guaranteePolicy) && + Objects.equals(this.taxPolicyList, propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.taxPolicyList) && + Objects.equals(this.feePolicyList, propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.feePolicyList) && + Objects.equals(this.name, propertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.name); + } + + @Override + public int hashCode() { + return Objects.hash(checkInTime, checkOutTime, totalGuestCount, cancellationPolicyList, advanceBookingMin, advanceBookingMax, petsPolicy, prepaymentPolicy, guaranteePolicy, taxPolicyList, feePolicyList, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo {\n"); + sb.append(" checkInTime: ").append(toIndentedString(checkInTime)).append("\n"); + sb.append(" checkOutTime: ").append(toIndentedString(checkOutTime)).append("\n"); + sb.append(" totalGuestCount: ").append(toIndentedString(totalGuestCount)).append("\n"); + sb.append(" cancellationPolicyList: ").append(toIndentedString(cancellationPolicyList)).append("\n"); + sb.append(" advanceBookingMin: ").append(toIndentedString(advanceBookingMin)).append("\n"); + sb.append(" advanceBookingMax: ").append(toIndentedString(advanceBookingMax)).append("\n"); + sb.append(" petsPolicy: ").append(toIndentedString(petsPolicy)).append("\n"); + sb.append(" prepaymentPolicy: ").append(toIndentedString(prepaymentPolicy)).append("\n"); + sb.append(" guaranteePolicy: ").append(toIndentedString(guaranteePolicy)).append("\n"); + sb.append(" taxPolicyList: ").append(toIndentedString(taxPolicyList)).append("\n"); + sb.append(" feePolicyList: ").append(toIndentedString(feePolicyList)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("checkInTime"); + openapiFields.add("checkOutTime"); + openapiFields.add("totalGuestCount"); + openapiFields.add("cancellationPolicyList"); + openapiFields.add("advanceBookingMin"); + openapiFields.add("advanceBookingMax"); + openapiFields.add("petsPolicy"); + openapiFields.add("prepaymentPolicy"); + openapiFields.add("guaranteePolicy"); + openapiFields.add("taxPolicyList"); + openapiFields.add("feePolicyList"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("checkInTime"); + openapiRequiredFields.add("checkOutTime"); + openapiRequiredFields.add("cancellationPolicyList"); + openapiRequiredFields.add("advanceBookingMin"); + openapiRequiredFields.add("advanceBookingMax"); + openapiRequiredFields.add("taxPolicyList"); + openapiRequiredFields.add("feePolicyList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo is not found in the empty JSON string", PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + JsonArray jsonArraycancellationPolicyList = jsonObj.getAsJsonArray("cancellationPolicyList"); + if (jsonArraycancellationPolicyList != null) { + // ensure the json data is an array + if (!jsonObj.get("cancellationPolicyList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `cancellationPolicyList` to be an array in the JSON string but got `%s`", jsonObj.get("cancellationPolicyList").toString())); + } + + // validate the optional field `cancellationPolicyList` (array) + for (int i = 0; i < jsonArraycancellationPolicyList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.validateJsonObject(jsonArraycancellationPolicyList.get(i).getAsJsonObject()); + }; + } + // validate the optional field `petsPolicy` + if (jsonObj.getAsJsonObject("petsPolicy") != null) { + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.validateJsonObject(jsonObj.getAsJsonObject("petsPolicy")); + } + if (jsonObj.get("prepaymentPolicy") != null && !jsonObj.get("prepaymentPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `prepaymentPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prepaymentPolicy").toString())); + } + // validate the optional field `guaranteePolicy` + if (jsonObj.getAsJsonObject("guaranteePolicy") != null) { + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.validateJsonObject(jsonObj.getAsJsonObject("guaranteePolicy")); + } + JsonArray jsonArraytaxPolicyList = jsonObj.getAsJsonArray("taxPolicyList"); + if (jsonArraytaxPolicyList != null) { + // ensure the json data is an array + if (!jsonObj.get("taxPolicyList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `taxPolicyList` to be an array in the JSON string but got `%s`", jsonObj.get("taxPolicyList").toString())); + } + + // validate the optional field `taxPolicyList` (array) + for (int i = 0; i < jsonArraytaxPolicyList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.validateJsonObject(jsonArraytaxPolicyList.get(i).getAsJsonObject()); + }; + } + JsonArray jsonArrayfeePolicyList = jsonObj.getAsJsonArray("feePolicyList"); + if (jsonArrayfeePolicyList != null) { + // ensure the json data is an array + if (!jsonObj.get("feePolicyList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `feePolicyList` to be an array in the JSON string but got `%s`", jsonObj.get("feePolicyList").toString())); + } + + // validate the optional field `feePolicyList` (array) + for (int i = 0; i < jsonArrayfeePolicyList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.validateJsonObject(jsonArrayfeePolicyList.get(i).getAsJsonObject()); + }; + } + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo + */ + public static PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.java new file mode 100644 index 0000000..4d40922 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.java @@ -0,0 +1,333 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner { + public static final String SERIALIZED_NAME_ACTIVE = "active"; + @SerializedName(SERIALIZED_NAME_ACTIVE) + private Boolean active; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private String code; + + public static final String SERIALIZED_NAME_PRICING_LIST = "pricingList"; + @SerializedName(SERIALIZED_NAME_PRICING_LIST) + private List pricingList = new ArrayList<>(); + + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner() { + } + + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner active(Boolean active) { + + this.active = active; + return this; + } + + /** + * Whether the rate plan is active. + * @return active + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "false", required = true, value = "Whether the rate plan is active.") + + public Boolean getActive() { + return active; + } + + + public void setActive(Boolean active) { + this.active = active; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the rate plan. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Standard 8436", required = true, value = "The name of the rate plan.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner code(String code) { + + this.code = code; + return this; + } + + /** + * The code identifying the rate plan. + * @return code + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "standard-8436", required = true, value = "The code identifying the rate plan.") + + public String getCode() { + return code; + } + + + public void setCode(String code) { + this.code = code; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner pricingList(List pricingList) { + + this.pricingList = pricingList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner addPricingListItem(PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner pricingListItem) { + this.pricingList.add(pricingListItem); + return this; + } + + /** + * Get pricingList + * @return pricingList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public List getPricingList() { + return pricingList; + } + + + public void setPricingList(List pricingList) { + this.pricingList = pricingList; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner propertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner = (PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner) o; + return Objects.equals(this.active, propertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.active) && + Objects.equals(this.name, propertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.name) && + Objects.equals(this.code, propertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.code) && + Objects.equals(this.pricingList, propertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.pricingList); + } + + @Override + public int hashCode() { + return Objects.hash(active, name, code, pricingList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner {\n"); + sb.append(" active: ").append(toIndentedString(active)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" pricingList: ").append(toIndentedString(pricingList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("active"); + openapiFields.add("name"); + openapiFields.add("code"); + openapiFields.add("pricingList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("active"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("code"); + openapiRequiredFields.add("pricingList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (jsonObj.get("code") != null && !jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + JsonArray jsonArraypricingList = jsonObj.getAsJsonArray("pricingList"); + if (jsonArraypricingList != null) { + // ensure the json data is an array + if (!jsonObj.get("pricingList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `pricingList` to be an array in the JSON string but got `%s`", jsonObj.get("pricingList").toString())); + } + + // validate the optional field `pricingList` (array) + for (int i = 0; i < jsonArraypricingList.size(); i++) { + PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.validateJsonObject(jsonArraypricingList.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner + */ + public static PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.java new file mode 100644 index 0000000..ec3ed29 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.java @@ -0,0 +1,319 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner { + public static final String SERIALIZED_NAME_DATE_TIME = "dateTime"; + @SerializedName(SERIALIZED_NAME_DATE_TIME) + private BigDecimal dateTime; + + public static final String SERIALIZED_NAME_OCCUPANCY = "occupancy"; + @SerializedName(SERIALIZED_NAME_OCCUPANCY) + private BigDecimal occupancy; + + public static final String SERIALIZED_NAME_PRICE_LIST = "priceList"; + @SerializedName(SERIALIZED_NAME_PRICE_LIST) + private Map priceList = new HashMap<>(); + + public static final String SERIALIZED_NAME_CURRENCY_CODE = "currencyCode"; + @SerializedName(SERIALIZED_NAME_CURRENCY_CODE) + private String currencyCode; + + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner() { + } + + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner dateTime(BigDecimal dateTime) { + + this.dateTime = dateTime; + return this; + } + + /** + * The timestamp of the pricing information. + * @return dateTime + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1662595200000", required = true, value = "The timestamp of the pricing information.") + + public BigDecimal getDateTime() { + return dateTime; + } + + + public void setDateTime(BigDecimal dateTime) { + this.dateTime = dateTime; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner occupancy(BigDecimal occupancy) { + + this.occupancy = occupancy; + return this; + } + + /** + * The number of occupants for which the pricing applies. + * @return occupancy + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1", required = true, value = "The number of occupants for which the pricing applies.") + + public BigDecimal getOccupancy() { + return occupancy; + } + + + public void setOccupancy(BigDecimal occupancy) { + this.occupancy = occupancy; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner priceList(Map priceList) { + + this.priceList = priceList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner putPriceListItem(String key, BigDecimal priceListItem) { + this.priceList.put(key, priceListItem); + return this; + } + + /** + * A mapping of number of days of stay to prices. + * @return priceList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "{\"1\":182,\"2\":364,\"3\":546,\"4\":728,\"5\":910,\"6\":1092,\"7\":1274,\"8\":1456,\"9\":1638,\"10\":1820,\"11\":2002,\"12\":2184,\"13\":2366,\"14\":2548,\"15\":2730,\"16\":2912,\"17\":3094,\"18\":3276,\"19\":3458,\"20\":3640,\"21\":3822,\"22\":4004,\"23\":4186,\"24\":4368,\"25\":4550,\"26\":4732,\"27\":4914,\"28\":5096,\"29\":5278,\"30\":5460}", required = true, value = "A mapping of number of days of stay to prices.") + + public Map getPriceList() { + return priceList; + } + + + public void setPriceList(Map priceList) { + this.priceList = priceList; + } + + + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner currencyCode(String currencyCode) { + + this.currencyCode = currencyCode; + return this; + } + + /** + * The currency code for the prices. + * @return currencyCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "EUR", required = true, value = "The currency code for the prices.") + + public String getCurrencyCode() { + return currencyCode; + } + + + public void setCurrencyCode(String currencyCode) { + this.currencyCode = currencyCode; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner propertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner = (PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner) o; + return Objects.equals(this.dateTime, propertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.dateTime) && + Objects.equals(this.occupancy, propertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.occupancy) && + Objects.equals(this.priceList, propertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.priceList) && + Objects.equals(this.currencyCode, propertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.currencyCode); + } + + @Override + public int hashCode() { + return Objects.hash(dateTime, occupancy, priceList, currencyCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner {\n"); + sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n"); + sb.append(" occupancy: ").append(toIndentedString(occupancy)).append("\n"); + sb.append(" priceList: ").append(toIndentedString(priceList)).append("\n"); + sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("dateTime"); + openapiFields.add("occupancy"); + openapiFields.add("priceList"); + openapiFields.add("currencyCode"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("dateTime"); + openapiRequiredFields.add("occupancy"); + openapiRequiredFields.add("priceList"); + openapiRequiredFields.add("currencyCode"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("currencyCode") != null && !jsonObj.get("currencyCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currencyCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currencyCode").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner + */ + public static PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProperty.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProperty.java new file mode 100644 index 0000000..7f782c3 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProperty.java @@ -0,0 +1,817 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner1Geo; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyAwardListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyContactListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfo; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyGuestInfo; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyRecordCreated; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyRecordModified; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyServiceListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * An object containing all available base data for the requested property. + */ +@ApiModel(description = "An object containing all available base data for the requested property.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponseProperty { + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private String code; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_RECORD_CREATED = "recordCreated"; + @SerializedName(SERIALIZED_NAME_RECORD_CREATED) + private PropertiesPropertyIdGet200ResponsePropertyRecordCreated recordCreated; + + public static final String SERIALIZED_NAME_RECORD_MODIFIED = "recordModified"; + @SerializedName(SERIALIZED_NAME_RECORD_MODIFIED) + private PropertiesPropertyIdGet200ResponsePropertyRecordModified recordModified; + + public static final String SERIALIZED_NAME_PROPERTY_INFO = "propertyInfo"; + @SerializedName(SERIALIZED_NAME_PROPERTY_INFO) + private PropertiesPropertyIdGet200ResponsePropertyPropertyInfo propertyInfo; + + public static final String SERIALIZED_NAME_GUEST_INFO = "guestInfo"; + @SerializedName(SERIALIZED_NAME_GUEST_INFO) + private PropertiesPropertyIdGet200ResponsePropertyGuestInfo guestInfo; + + public static final String SERIALIZED_NAME_AWARD_LIST = "awardList"; + @SerializedName(SERIALIZED_NAME_AWARD_LIST) + private List awardList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_CONTACT_LIST = "contactList"; + @SerializedName(SERIALIZED_NAME_CONTACT_LIST) + private List contactList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_FACILITY_INFO = "facilityInfo"; + @SerializedName(SERIALIZED_NAME_FACILITY_INFO) + private PropertiesPropertyIdGet200ResponsePropertyFacilityInfo facilityInfo; + + public static final String SERIALIZED_NAME_MEDIA_LIST = "mediaList"; + @SerializedName(SERIALIZED_NAME_MEDIA_LIST) + private List mediaList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_GEO = "geo"; + @SerializedName(SERIALIZED_NAME_GEO) + private Map geo = null; + + public static final String SERIALIZED_NAME_PUBLISHED = "published"; + @SerializedName(SERIALIZED_NAME_PUBLISHED) + private Boolean published; + + public static final String SERIALIZED_NAME_POLICY_LIST = "policyList"; + @SerializedName(SERIALIZED_NAME_POLICY_LIST) + private List policyList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_URI = "uri"; + @SerializedName(SERIALIZED_NAME_URI) + private String uri; + + public static final String SERIALIZED_NAME_CANCELLATION_GRACE_PERIOD = "cancellationGracePeriod"; + @SerializedName(SERIALIZED_NAME_CANCELLATION_GRACE_PERIOD) + private PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod cancellationGracePeriod; + + public static final String SERIALIZED_NAME_SERVICE_LIST = "serviceList"; + @SerializedName(SERIALIZED_NAME_SERVICE_LIST) + private List serviceList = new ArrayList<>(); + + public PropertiesPropertyIdGet200ResponseProperty() { + } + + public PropertiesPropertyIdGet200ResponseProperty code(String code) { + + this.code = code; + return this; + } + + /** + * The properties unique identifier. + * @return code + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "strandresidenz-sylt", required = true, value = "The properties unique identifier.") + + public String getCode() { + return code; + } + + + public void setCode(String code) { + this.code = code; + } + + + public PropertiesPropertyIdGet200ResponseProperty name(String name) { + + this.name = name; + return this; + } + + /** + * The properties name. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Strandresidenz Sylt", required = true, value = "The properties name.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public PropertiesPropertyIdGet200ResponseProperty recordCreated(PropertiesPropertyIdGet200ResponsePropertyRecordCreated recordCreated) { + + this.recordCreated = recordCreated; + return this; + } + + /** + * Get recordCreated + * @return recordCreated + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public PropertiesPropertyIdGet200ResponsePropertyRecordCreated getRecordCreated() { + return recordCreated; + } + + + public void setRecordCreated(PropertiesPropertyIdGet200ResponsePropertyRecordCreated recordCreated) { + this.recordCreated = recordCreated; + } + + + public PropertiesPropertyIdGet200ResponseProperty recordModified(PropertiesPropertyIdGet200ResponsePropertyRecordModified recordModified) { + + this.recordModified = recordModified; + return this; + } + + /** + * Get recordModified + * @return recordModified + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public PropertiesPropertyIdGet200ResponsePropertyRecordModified getRecordModified() { + return recordModified; + } + + + public void setRecordModified(PropertiesPropertyIdGet200ResponsePropertyRecordModified recordModified) { + this.recordModified = recordModified; + } + + + public PropertiesPropertyIdGet200ResponseProperty propertyInfo(PropertiesPropertyIdGet200ResponsePropertyPropertyInfo propertyInfo) { + + this.propertyInfo = propertyInfo; + return this; + } + + /** + * Get propertyInfo + * @return propertyInfo + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo getPropertyInfo() { + return propertyInfo; + } + + + public void setPropertyInfo(PropertiesPropertyIdGet200ResponsePropertyPropertyInfo propertyInfo) { + this.propertyInfo = propertyInfo; + } + + + public PropertiesPropertyIdGet200ResponseProperty guestInfo(PropertiesPropertyIdGet200ResponsePropertyGuestInfo guestInfo) { + + this.guestInfo = guestInfo; + return this; + } + + /** + * Get guestInfo + * @return guestInfo + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PropertiesPropertyIdGet200ResponsePropertyGuestInfo getGuestInfo() { + return guestInfo; + } + + + public void setGuestInfo(PropertiesPropertyIdGet200ResponsePropertyGuestInfo guestInfo) { + this.guestInfo = guestInfo; + } + + + public PropertiesPropertyIdGet200ResponseProperty awardList(List awardList) { + + this.awardList = awardList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProperty addAwardListItem(PropertiesPropertyIdGet200ResponsePropertyAwardListInner awardListItem) { + this.awardList.add(awardListItem); + return this; + } + + /** + * A list of the ratings available for this property. + * @return awardList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of the ratings available for this property.") + + public List getAwardList() { + return awardList; + } + + + public void setAwardList(List awardList) { + this.awardList = awardList; + } + + + public PropertiesPropertyIdGet200ResponseProperty contactList(List contactList) { + + this.contactList = contactList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProperty addContactListItem(PropertiesPropertyIdGet200ResponsePropertyContactListInner contactListItem) { + this.contactList.add(contactListItem); + return this; + } + + /** + * A contact with a profile type and a list of addresses + * @return contactList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A contact with a profile type and a list of addresses") + + public List getContactList() { + return contactList; + } + + + public void setContactList(List contactList) { + this.contactList = contactList; + } + + + public PropertiesPropertyIdGet200ResponseProperty facilityInfo(PropertiesPropertyIdGet200ResponsePropertyFacilityInfo facilityInfo) { + + this.facilityInfo = facilityInfo; + return this; + } + + /** + * Get facilityInfo + * @return facilityInfo + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfo getFacilityInfo() { + return facilityInfo; + } + + + public void setFacilityInfo(PropertiesPropertyIdGet200ResponsePropertyFacilityInfo facilityInfo) { + this.facilityInfo = facilityInfo; + } + + + public PropertiesPropertyIdGet200ResponseProperty mediaList(List mediaList) { + + this.mediaList = mediaList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProperty addMediaListItem(PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner mediaListItem) { + this.mediaList.add(mediaListItem); + return this; + } + + /** + * A list of media objects for the property. + * @return mediaList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of media objects for the property.") + + public List getMediaList() { + return mediaList; + } + + + public void setMediaList(List mediaList) { + this.mediaList = mediaList; + } + + + public PropertiesPropertyIdGet200ResponseProperty geo(Map geo) { + + this.geo = geo; + return this; + } + + public PropertiesPropertyIdGet200ResponseProperty putGeoItem(String key, AvailablePropertiesInner1Geo geoItem) { + if (this.geo == null) { + this.geo = new HashMap<>(); + } + this.geo.put(key, geoItem); + return this; + } + + /** + * An object containing language codes as keys and objects describing the properties geographical location as values. + * @return geo + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "{\"de\":{\"location\":{\"lat\":54.9157118,\"lng\":8.304857},\"formatted_address\":\"Nordhedig 20, 25980 Sylt, Deutschland\",\"place_id\":\"ChIJVaxqTevetEcRyfs8PGHK6mw\",\"street_number\":\"20\",\"route\":\"Nordhedig\",\"sublocality\":\"Westerland\",\"sublocality_level_1\":\"Westerland\",\"locality\":\"Sylt\",\"administrative_area_level_3\":\"Nordfriesland\",\"administrative_area_level_1\":\"Schleswig-Holstein\",\"state_code\":\"SH\",\"country\":\"Deutschland\",\"country_code\":\"DE\",\"postal_code\":\"25980\",\"language\":\"de\"},\"en\":{\"location\":{\"lat\":54.9157118,\"lng\":8.304857},\"formatted_address\":\"Nordhedig 20, 25980 Sylt, Germany\",\"place_id\":\"ChIJVaxqTevetEcRyfs8PGHK6mw\",\"street_number\":\"20\",\"route\":\"Nordhedig\",\"sublocality\":\"Westerland\",\"sublocality_level_1\":\"Westerland\",\"locality\":\"Sylt\",\"administrative_area_level_3\":\"Nordfriesland\",\"administrative_area_level_1\":\"Schleswig-Holstein\",\"state_code\":\"SH\",\"country\":\"Germany\",\"country_code\":\"DE\",\"postal_code\":\"25980\",\"language\":\"en\"},\"da\":{\"location\":{\"lat\":54.9157118,\"lng\":8.304857},\"formatted_address\":\"Nordhedig 20, 25980 Sylt, Tyskland\",\"place_id\":\"ChIJVaxqTevetEcRyfs8PGHK6mw\",\"street_number\":\"20\",\"route\":\"Nordhedig\",\"sublocality\":\"Westerland\",\"sublocality_level_1\":\"Westerland\",\"locality\":\"Sylt\",\"administrative_area_level_3\":\"Nordfriesland\",\"administrative_area_level_1\":\"Schleswig-Holstein\",\"state_code\":\"SH\",\"country\":\"Tyskland\",\"country_code\":\"DE\",\"postal_code\":\"25980\",\"language\":\"da\"},\"nl\":{\"location\":{\"lat\":54.9157118,\"lng\":8.304857},\"formatted_address\":\"Nordhedig 20, 25980 Sylt, Duitsland\",\"place_id\":\"ChIJVaxqTevetEcRyfs8PGHK6mw\",\"street_number\":\"20\",\"route\":\"Nordhedig\",\"sublocality\":\"Westerland\",\"sublocality_level_1\":\"Westerland\",\"locality\":\"Sylt\",\"administrative_area_level_3\":\"Nordfriesland\",\"administrative_area_level_1\":\"Schleswig-Holstein\",\"state_code\":\"SH\",\"country\":\"Duitsland\",\"country_code\":\"DE\",\"postal_code\":\"25980\",\"language\":\"nl\"}}", value = "An object containing language codes as keys and objects describing the properties geographical location as values.") + + public Map getGeo() { + return geo; + } + + + public void setGeo(Map geo) { + this.geo = geo; + } + + + public PropertiesPropertyIdGet200ResponseProperty published(Boolean published) { + + this.published = published; + return this; + } + + /** + * Indicates whether the policy has been published or not. + * @return published + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Indicates whether the policy has been published or not.") + + public Boolean getPublished() { + return published; + } + + + public void setPublished(Boolean published) { + this.published = published; + } + + + public PropertiesPropertyIdGet200ResponseProperty policyList(List policyList) { + + this.policyList = policyList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProperty addPolicyListItem(PropertiesPropertyIdGet200ResponsePropertyPolicyListInner policyListItem) { + this.policyList.add(policyListItem); + return this; + } + + /** + * A list of policies associated with the property. + * @return policyList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of policies associated with the property.") + + public List getPolicyList() { + return policyList; + } + + + public void setPolicyList(List policyList) { + this.policyList = policyList; + } + + + public PropertiesPropertyIdGet200ResponseProperty uri(String uri) { + + this.uri = uri; + return this; + } + + /** + * A unique identifier for the accommodation. + * @return uri + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "strandresidenz-sylt", value = "A unique identifier for the accommodation.") + + public String getUri() { + return uri; + } + + + public void setUri(String uri) { + this.uri = uri; + } + + + public PropertiesPropertyIdGet200ResponseProperty cancellationGracePeriod(PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod cancellationGracePeriod) { + + this.cancellationGracePeriod = cancellationGracePeriod; + return this; + } + + /** + * Get cancellationGracePeriod + * @return cancellationGracePeriod + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod getCancellationGracePeriod() { + return cancellationGracePeriod; + } + + + public void setCancellationGracePeriod(PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod cancellationGracePeriod) { + this.cancellationGracePeriod = cancellationGracePeriod; + } + + + public PropertiesPropertyIdGet200ResponseProperty serviceList(List serviceList) { + + this.serviceList = serviceList; + return this; + } + + public PropertiesPropertyIdGet200ResponseProperty addServiceListItem(PropertiesPropertyIdGet200ResponsePropertyServiceListInner serviceListItem) { + this.serviceList.add(serviceListItem); + return this; + } + + /** + * A list of objects each describing an available service, its pricing and its availability. + * @return serviceList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of objects each describing an available service, its pricing and its availability.") + + public List getServiceList() { + return serviceList; + } + + + public void setServiceList(List serviceList) { + this.serviceList = serviceList; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponseProperty propertiesPropertyIdGet200ResponseProperty = (PropertiesPropertyIdGet200ResponseProperty) o; + return Objects.equals(this.code, propertiesPropertyIdGet200ResponseProperty.code) && + Objects.equals(this.name, propertiesPropertyIdGet200ResponseProperty.name) && + Objects.equals(this.recordCreated, propertiesPropertyIdGet200ResponseProperty.recordCreated) && + Objects.equals(this.recordModified, propertiesPropertyIdGet200ResponseProperty.recordModified) && + Objects.equals(this.propertyInfo, propertiesPropertyIdGet200ResponseProperty.propertyInfo) && + Objects.equals(this.guestInfo, propertiesPropertyIdGet200ResponseProperty.guestInfo) && + Objects.equals(this.awardList, propertiesPropertyIdGet200ResponseProperty.awardList) && + Objects.equals(this.contactList, propertiesPropertyIdGet200ResponseProperty.contactList) && + Objects.equals(this.facilityInfo, propertiesPropertyIdGet200ResponseProperty.facilityInfo) && + Objects.equals(this.mediaList, propertiesPropertyIdGet200ResponseProperty.mediaList) && + Objects.equals(this.geo, propertiesPropertyIdGet200ResponseProperty.geo) && + Objects.equals(this.published, propertiesPropertyIdGet200ResponseProperty.published) && + Objects.equals(this.policyList, propertiesPropertyIdGet200ResponseProperty.policyList) && + Objects.equals(this.uri, propertiesPropertyIdGet200ResponseProperty.uri) && + Objects.equals(this.cancellationGracePeriod, propertiesPropertyIdGet200ResponseProperty.cancellationGracePeriod) && + Objects.equals(this.serviceList, propertiesPropertyIdGet200ResponseProperty.serviceList); + } + + @Override + public int hashCode() { + return Objects.hash(code, name, recordCreated, recordModified, propertyInfo, guestInfo, awardList, contactList, facilityInfo, mediaList, geo, published, policyList, uri, cancellationGracePeriod, serviceList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponseProperty {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" recordCreated: ").append(toIndentedString(recordCreated)).append("\n"); + sb.append(" recordModified: ").append(toIndentedString(recordModified)).append("\n"); + sb.append(" propertyInfo: ").append(toIndentedString(propertyInfo)).append("\n"); + sb.append(" guestInfo: ").append(toIndentedString(guestInfo)).append("\n"); + sb.append(" awardList: ").append(toIndentedString(awardList)).append("\n"); + sb.append(" contactList: ").append(toIndentedString(contactList)).append("\n"); + sb.append(" facilityInfo: ").append(toIndentedString(facilityInfo)).append("\n"); + sb.append(" mediaList: ").append(toIndentedString(mediaList)).append("\n"); + sb.append(" geo: ").append(toIndentedString(geo)).append("\n"); + sb.append(" published: ").append(toIndentedString(published)).append("\n"); + sb.append(" policyList: ").append(toIndentedString(policyList)).append("\n"); + sb.append(" uri: ").append(toIndentedString(uri)).append("\n"); + sb.append(" cancellationGracePeriod: ").append(toIndentedString(cancellationGracePeriod)).append("\n"); + sb.append(" serviceList: ").append(toIndentedString(serviceList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("code"); + openapiFields.add("name"); + openapiFields.add("recordCreated"); + openapiFields.add("recordModified"); + openapiFields.add("propertyInfo"); + openapiFields.add("guestInfo"); + openapiFields.add("awardList"); + openapiFields.add("contactList"); + openapiFields.add("facilityInfo"); + openapiFields.add("mediaList"); + openapiFields.add("geo"); + openapiFields.add("published"); + openapiFields.add("policyList"); + openapiFields.add("uri"); + openapiFields.add("cancellationGracePeriod"); + openapiFields.add("serviceList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("code"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("recordCreated"); + openapiRequiredFields.add("recordModified"); + openapiRequiredFields.add("propertyInfo"); + openapiRequiredFields.add("awardList"); + openapiRequiredFields.add("contactList"); + openapiRequiredFields.add("mediaList"); + openapiRequiredFields.add("published"); + openapiRequiredFields.add("policyList"); + openapiRequiredFields.add("serviceList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponseProperty + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponseProperty.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponseProperty is not found in the empty JSON string", PropertiesPropertyIdGet200ResponseProperty.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponseProperty.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponseProperty` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponseProperty.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("code") != null && !jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + // validate the optional field `recordCreated` + if (jsonObj.getAsJsonObject("recordCreated") != null) { + PropertiesPropertyIdGet200ResponsePropertyRecordCreated.validateJsonObject(jsonObj.getAsJsonObject("recordCreated")); + } + // validate the optional field `recordModified` + if (jsonObj.getAsJsonObject("recordModified") != null) { + PropertiesPropertyIdGet200ResponsePropertyRecordModified.validateJsonObject(jsonObj.getAsJsonObject("recordModified")); + } + // validate the optional field `propertyInfo` + if (jsonObj.getAsJsonObject("propertyInfo") != null) { + PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.validateJsonObject(jsonObj.getAsJsonObject("propertyInfo")); + } + // validate the optional field `guestInfo` + if (jsonObj.getAsJsonObject("guestInfo") != null) { + PropertiesPropertyIdGet200ResponsePropertyGuestInfo.validateJsonObject(jsonObj.getAsJsonObject("guestInfo")); + } + JsonArray jsonArrayawardList = jsonObj.getAsJsonArray("awardList"); + if (jsonArrayawardList != null) { + // ensure the json data is an array + if (!jsonObj.get("awardList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `awardList` to be an array in the JSON string but got `%s`", jsonObj.get("awardList").toString())); + } + + // validate the optional field `awardList` (array) + for (int i = 0; i < jsonArrayawardList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyAwardListInner.validateJsonObject(jsonArrayawardList.get(i).getAsJsonObject()); + }; + } + JsonArray jsonArraycontactList = jsonObj.getAsJsonArray("contactList"); + if (jsonArraycontactList != null) { + // ensure the json data is an array + if (!jsonObj.get("contactList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `contactList` to be an array in the JSON string but got `%s`", jsonObj.get("contactList").toString())); + } + + // validate the optional field `contactList` (array) + for (int i = 0; i < jsonArraycontactList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyContactListInner.validateJsonObject(jsonArraycontactList.get(i).getAsJsonObject()); + }; + } + // validate the optional field `facilityInfo` + if (jsonObj.getAsJsonObject("facilityInfo") != null) { + PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.validateJsonObject(jsonObj.getAsJsonObject("facilityInfo")); + } + JsonArray jsonArraymediaList = jsonObj.getAsJsonArray("mediaList"); + if (jsonArraymediaList != null) { + // ensure the json data is an array + if (!jsonObj.get("mediaList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `mediaList` to be an array in the JSON string but got `%s`", jsonObj.get("mediaList").toString())); + } + + // validate the optional field `mediaList` (array) + for (int i = 0; i < jsonArraymediaList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.validateJsonObject(jsonArraymediaList.get(i).getAsJsonObject()); + }; + } + JsonArray jsonArraypolicyList = jsonObj.getAsJsonArray("policyList"); + if (jsonArraypolicyList != null) { + // ensure the json data is an array + if (!jsonObj.get("policyList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `policyList` to be an array in the JSON string but got `%s`", jsonObj.get("policyList").toString())); + } + + // validate the optional field `policyList` (array) + for (int i = 0; i < jsonArraypolicyList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.validateJsonObject(jsonArraypolicyList.get(i).getAsJsonObject()); + }; + } + if (jsonObj.get("uri") != null && !jsonObj.get("uri").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `uri` to be a primitive type in the JSON string but got `%s`", jsonObj.get("uri").toString())); + } + // validate the optional field `cancellationGracePeriod` + if (jsonObj.getAsJsonObject("cancellationGracePeriod") != null) { + PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.validateJsonObject(jsonObj.getAsJsonObject("cancellationGracePeriod")); + } + JsonArray jsonArrayserviceList = jsonObj.getAsJsonArray("serviceList"); + if (jsonArrayserviceList != null) { + // ensure the json data is an array + if (!jsonObj.get("serviceList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `serviceList` to be an array in the JSON string but got `%s`", jsonObj.get("serviceList").toString())); + } + + // validate the optional field `serviceList` (array) + for (int i = 0; i < jsonArrayserviceList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyServiceListInner.validateJsonObject(jsonArrayserviceList.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponseProperty.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponseProperty' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponseProperty.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponseProperty value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponseProperty read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponseProperty given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponseProperty + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponseProperty + */ + public static PropertiesPropertyIdGet200ResponseProperty fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponseProperty.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponseProperty to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.java new file mode 100644 index 0000000..70f0710 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.java @@ -0,0 +1,294 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyAwardListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyAwardListInner { + /** + * The source of this rating. Currently only <code>star-rating</code> is possible. + */ + @JsonAdapter(ProviderEnum.Adapter.class) + public enum ProviderEnum { + STAR_RATING("star-rating"); + + private String value; + + ProviderEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ProviderEnum fromValue(String value) { + for (ProviderEnum b : ProviderEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ProviderEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ProviderEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ProviderEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PROVIDER = "provider"; + @SerializedName(SERIALIZED_NAME_PROVIDER) + private ProviderEnum provider; + + public static final String SERIALIZED_NAME_RATING = "rating"; + @SerializedName(SERIALIZED_NAME_RATING) + private BigDecimal rating; + + public PropertiesPropertyIdGet200ResponsePropertyAwardListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyAwardListInner provider(ProviderEnum provider) { + + this.provider = provider; + return this; + } + + /** + * The source of this rating. Currently only <code>star-rating</code> is possible. + * @return provider + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "star-rating", required = true, value = "The source of this rating. Currently only star-rating is possible.") + + public ProviderEnum getProvider() { + return provider; + } + + + public void setProvider(ProviderEnum provider) { + this.provider = provider; + } + + + public PropertiesPropertyIdGet200ResponsePropertyAwardListInner rating(BigDecimal rating) { + + this.rating = rating; + return this; + } + + /** + * The value of this rating + * @return rating + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "5", required = true, value = "The value of this rating") + + public BigDecimal getRating() { + return rating; + } + + + public void setRating(BigDecimal rating) { + this.rating = rating; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyAwardListInner propertiesPropertyIdGet200ResponsePropertyAwardListInner = (PropertiesPropertyIdGet200ResponsePropertyAwardListInner) o; + return Objects.equals(this.provider, propertiesPropertyIdGet200ResponsePropertyAwardListInner.provider) && + Objects.equals(this.rating, propertiesPropertyIdGet200ResponsePropertyAwardListInner.rating); + } + + @Override + public int hashCode() { + return Objects.hash(provider, rating); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyAwardListInner {\n"); + sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); + sb.append(" rating: ").append(toIndentedString(rating)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("provider"); + openapiFields.add("rating"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("provider"); + openapiRequiredFields.add("rating"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyAwardListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyAwardListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyAwardListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyAwardListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyAwardListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyAwardListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyAwardListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("provider") != null && !jsonObj.get("provider").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `provider` to be a primitive type in the JSON string but got `%s`", jsonObj.get("provider").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyAwardListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyAwardListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyAwardListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyAwardListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyAwardListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyAwardListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyAwardListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyAwardListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyAwardListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyAwardListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyAwardListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.java new file mode 100644 index 0000000..fb74946 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.java @@ -0,0 +1,247 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * An object describing the cancellation grace periods. + */ +@ApiModel(description = "An object describing the cancellation grace periods.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod { + public static final String SERIALIZED_NAME_HOURS_AFTER_BOOKING = "hoursAfterBooking"; + @SerializedName(SERIALIZED_NAME_HOURS_AFTER_BOOKING) + private BigDecimal hoursAfterBooking; + + public static final String SERIALIZED_NAME_WEEKS_BEFORE_CHECK_IN = "weeksBeforeCheckIn"; + @SerializedName(SERIALIZED_NAME_WEEKS_BEFORE_CHECK_IN) + private BigDecimal weeksBeforeCheckIn; + + public PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod() { + } + + public PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod hoursAfterBooking(BigDecimal hoursAfterBooking) { + + this.hoursAfterBooking = hoursAfterBooking; + return this; + } + + /** + * The number of hours after booking that the cancellation grace period starts. + * @return hoursAfterBooking + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The number of hours after booking that the cancellation grace period starts.") + + public BigDecimal getHoursAfterBooking() { + return hoursAfterBooking; + } + + + public void setHoursAfterBooking(BigDecimal hoursAfterBooking) { + this.hoursAfterBooking = hoursAfterBooking; + } + + + public PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod weeksBeforeCheckIn(BigDecimal weeksBeforeCheckIn) { + + this.weeksBeforeCheckIn = weeksBeforeCheckIn; + return this; + } + + /** + * The number of weeks before check-in that the cancellation grace period starts. + * @return weeksBeforeCheckIn + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The number of weeks before check-in that the cancellation grace period starts.") + + public BigDecimal getWeeksBeforeCheckIn() { + return weeksBeforeCheckIn; + } + + + public void setWeeksBeforeCheckIn(BigDecimal weeksBeforeCheckIn) { + this.weeksBeforeCheckIn = weeksBeforeCheckIn; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod propertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod = (PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod) o; + return Objects.equals(this.hoursAfterBooking, propertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.hoursAfterBooking) && + Objects.equals(this.weeksBeforeCheckIn, propertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.weeksBeforeCheckIn); + } + + @Override + public int hashCode() { + return Objects.hash(hoursAfterBooking, weeksBeforeCheckIn); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod {\n"); + sb.append(" hoursAfterBooking: ").append(toIndentedString(hoursAfterBooking)).append("\n"); + sb.append(" weeksBeforeCheckIn: ").append(toIndentedString(weeksBeforeCheckIn)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("hoursAfterBooking"); + openapiFields.add("weeksBeforeCheckIn"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("hoursAfterBooking"); + openapiRequiredFields.add("weeksBeforeCheckIn"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod + */ + public static PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.java new file mode 100644 index 0000000..6031299 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.java @@ -0,0 +1,331 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyContactListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyContactListInner { + /** + * The type of profile this contact belongs to. + */ + @JsonAdapter(ProfileTypeEnum.Adapter.class) + public enum ProfileTypeEnum { + GENERAL("general"), + + CONTRACT("contract"), + + RESERVATIONS("reservations"), + + INVOICES("invoices"), + + AVAILABILITY("availability"), + + SITE_CONTENT("site_content"), + + PARITY("parity"), + + REQUESTS("requests"), + + CENTRAL_RESERVATIONS("central_reservations"), + + PHYSICALLOCATION("physicallocation"); + + private String value; + + ProfileTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ProfileTypeEnum fromValue(String value) { + for (ProfileTypeEnum b : ProfileTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ProfileTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ProfileTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ProfileTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PROFILE_TYPE = "profileType"; + @SerializedName(SERIALIZED_NAME_PROFILE_TYPE) + private ProfileTypeEnum profileType; + + public static final String SERIALIZED_NAME_ADDRESS_LIST = "addressList"; + @SerializedName(SERIALIZED_NAME_ADDRESS_LIST) + private List addressList = new ArrayList<>(); + + public PropertiesPropertyIdGet200ResponsePropertyContactListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyContactListInner profileType(ProfileTypeEnum profileType) { + + this.profileType = profileType; + return this; + } + + /** + * The type of profile this contact belongs to. + * @return profileType + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "physicallocation", required = true, value = "The type of profile this contact belongs to.") + + public ProfileTypeEnum getProfileType() { + return profileType; + } + + + public void setProfileType(ProfileTypeEnum profileType) { + this.profileType = profileType; + } + + + public PropertiesPropertyIdGet200ResponsePropertyContactListInner addressList(List addressList) { + + this.addressList = addressList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyContactListInner addAddressListItem(PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner addressListItem) { + this.addressList.add(addressListItem); + return this; + } + + /** + * A list of addresses for this contact + * @return addressList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of addresses for this contact") + + public List getAddressList() { + return addressList; + } + + + public void setAddressList(List addressList) { + this.addressList = addressList; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyContactListInner propertiesPropertyIdGet200ResponsePropertyContactListInner = (PropertiesPropertyIdGet200ResponsePropertyContactListInner) o; + return Objects.equals(this.profileType, propertiesPropertyIdGet200ResponsePropertyContactListInner.profileType) && + Objects.equals(this.addressList, propertiesPropertyIdGet200ResponsePropertyContactListInner.addressList); + } + + @Override + public int hashCode() { + return Objects.hash(profileType, addressList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyContactListInner {\n"); + sb.append(" profileType: ").append(toIndentedString(profileType)).append("\n"); + sb.append(" addressList: ").append(toIndentedString(addressList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("profileType"); + openapiFields.add("addressList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("profileType"); + openapiRequiredFields.add("addressList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyContactListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyContactListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyContactListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyContactListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyContactListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyContactListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyContactListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("profileType") != null && !jsonObj.get("profileType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `profileType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("profileType").toString())); + } + JsonArray jsonArrayaddressList = jsonObj.getAsJsonArray("addressList"); + if (jsonArrayaddressList != null) { + // ensure the json data is an array + if (!jsonObj.get("addressList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `addressList` to be an array in the JSON string but got `%s`", jsonObj.get("addressList").toString())); + } + + // validate the optional field `addressList` (array) + for (int i = 0; i < jsonArrayaddressList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.validateJsonObject(jsonArrayaddressList.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyContactListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyContactListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyContactListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyContactListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyContactListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyContactListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyContactListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyContactListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyContactListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyContactListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyContactListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.java new file mode 100644 index 0000000..d8a9474 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.java @@ -0,0 +1,384 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner { + public static final String SERIALIZED_NAME_ADDRESS_LINE = "addressLine"; + @SerializedName(SERIALIZED_NAME_ADDRESS_LINE) + private String addressLine; + + public static final String SERIALIZED_NAME_PROPERTY_NAME = "propertyName"; + @SerializedName(SERIALIZED_NAME_PROPERTY_NAME) + private String propertyName; + + public static final String SERIALIZED_NAME_CITY_NAME = "cityName"; + @SerializedName(SERIALIZED_NAME_CITY_NAME) + private String cityName; + + public static final String SERIALIZED_NAME_POSTAL_CODE = "postalCode"; + @SerializedName(SERIALIZED_NAME_POSTAL_CODE) + private String postalCode; + + public static final String SERIALIZED_NAME_STATE = "state"; + @SerializedName(SERIALIZED_NAME_STATE) + private String state; + + public static final String SERIALIZED_NAME_COUNTRY_CODE = "countryCode"; + @SerializedName(SERIALIZED_NAME_COUNTRY_CODE) + private String countryCode; + + public PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner addressLine(String addressLine) { + + this.addressLine = addressLine; + return this; + } + + /** + * The first line of the address for this contact + * @return addressLine + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Nordhedig 20", required = true, value = "The first line of the address for this contact") + + public String getAddressLine() { + return addressLine; + } + + + public void setAddressLine(String addressLine) { + this.addressLine = addressLine; + } + + + public PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner propertyName(String propertyName) { + + this.propertyName = propertyName; + return this; + } + + /** + * The name of the property for this contact + * @return propertyName + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Strandresidenz Sylt", value = "The name of the property for this contact") + + public String getPropertyName() { + return propertyName; + } + + + public void setPropertyName(String propertyName) { + this.propertyName = propertyName; + } + + + public PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner cityName(String cityName) { + + this.cityName = cityName; + return this; + } + + /** + * The city of this contact + * @return cityName + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Sylt", required = true, value = "The city of this contact") + + public String getCityName() { + return cityName; + } + + + public void setCityName(String cityName) { + this.cityName = cityName; + } + + + public PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner postalCode(String postalCode) { + + this.postalCode = postalCode; + return this; + } + + /** + * The postal code of this contact + * @return postalCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "25980", required = true, value = "The postal code of this contact") + + public String getPostalCode() { + return postalCode; + } + + + public void setPostalCode(String postalCode) { + this.postalCode = postalCode; + } + + + public PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner state(String state) { + + this.state = state; + return this; + } + + /** + * The state/region of this contact + * @return state + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "SH", value = "The state/region of this contact") + + public String getState() { + return state; + } + + + public void setState(String state) { + this.state = state; + } + + + public PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner countryCode(String countryCode) { + + this.countryCode = countryCode; + return this; + } + + /** + * The country code of this contact + * @return countryCode + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "DE", value = "The country code of this contact") + + public String getCountryCode() { + return countryCode; + } + + + public void setCountryCode(String countryCode) { + this.countryCode = countryCode; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner propertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner = (PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner) o; + return Objects.equals(this.addressLine, propertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.addressLine) && + Objects.equals(this.propertyName, propertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.propertyName) && + Objects.equals(this.cityName, propertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.cityName) && + Objects.equals(this.postalCode, propertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.postalCode) && + Objects.equals(this.state, propertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.state) && + Objects.equals(this.countryCode, propertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.countryCode); + } + + @Override + public int hashCode() { + return Objects.hash(addressLine, propertyName, cityName, postalCode, state, countryCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner {\n"); + sb.append(" addressLine: ").append(toIndentedString(addressLine)).append("\n"); + sb.append(" propertyName: ").append(toIndentedString(propertyName)).append("\n"); + sb.append(" cityName: ").append(toIndentedString(cityName)).append("\n"); + sb.append(" postalCode: ").append(toIndentedString(postalCode)).append("\n"); + sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("addressLine"); + openapiFields.add("propertyName"); + openapiFields.add("cityName"); + openapiFields.add("postalCode"); + openapiFields.add("state"); + openapiFields.add("countryCode"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("addressLine"); + openapiRequiredFields.add("cityName"); + openapiRequiredFields.add("postalCode"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("addressLine") != null && !jsonObj.get("addressLine").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `addressLine` to be a primitive type in the JSON string but got `%s`", jsonObj.get("addressLine").toString())); + } + if (jsonObj.get("propertyName") != null && !jsonObj.get("propertyName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `propertyName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("propertyName").toString())); + } + if (jsonObj.get("cityName") != null && !jsonObj.get("cityName").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `cityName` to be a primitive type in the JSON string but got `%s`", jsonObj.get("cityName").toString())); + } + if (jsonObj.get("postalCode") != null && !jsonObj.get("postalCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `postalCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("postalCode").toString())); + } + if (jsonObj.get("state") != null && !jsonObj.get("state").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + } + if (jsonObj.get("countryCode") != null && !jsonObj.get("countryCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `countryCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("countryCode").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.java new file mode 100644 index 0000000..d7f74ee --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.java @@ -0,0 +1,235 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * Further information regarding the facility. + */ +@ApiModel(description = "Further information regarding the facility.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyFacilityInfo { + public static final String SERIALIZED_NAME_GUEST_ROOM_LIST = "guestRoomList"; + @SerializedName(SERIALIZED_NAME_GUEST_ROOM_LIST) + private List guestRoomList = new ArrayList<>(); + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfo() { + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfo guestRoomList(List guestRoomList) { + + this.guestRoomList = guestRoomList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfo addGuestRoomListItem(PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner guestRoomListItem) { + this.guestRoomList.add(guestRoomListItem); + return this; + } + + /** + * An array of objects representing a room in the property. + * @return guestRoomList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "An array of objects representing a room in the property.") + + public List getGuestRoomList() { + return guestRoomList; + } + + + public void setGuestRoomList(List guestRoomList) { + this.guestRoomList = guestRoomList; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyFacilityInfo propertiesPropertyIdGet200ResponsePropertyFacilityInfo = (PropertiesPropertyIdGet200ResponsePropertyFacilityInfo) o; + return Objects.equals(this.guestRoomList, propertiesPropertyIdGet200ResponsePropertyFacilityInfo.guestRoomList); + } + + @Override + public int hashCode() { + return Objects.hash(guestRoomList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyFacilityInfo {\n"); + sb.append(" guestRoomList: ").append(toIndentedString(guestRoomList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("guestRoomList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("guestRoomList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyFacilityInfo is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyFacilityInfo` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + JsonArray jsonArrayguestRoomList = jsonObj.getAsJsonArray("guestRoomList"); + if (jsonArrayguestRoomList != null) { + // ensure the json data is an array + if (!jsonObj.get("guestRoomList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `guestRoomList` to be an array in the JSON string but got `%s`", jsonObj.get("guestRoomList").toString())); + } + + // validate the optional field `guestRoomList` (array) + for (int i = 0; i < jsonArrayguestRoomList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.validateJsonObject(jsonArrayguestRoomList.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyFacilityInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyFacilityInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfo + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfo + */ + public static PropertiesPropertyIdGet200ResponsePropertyFacilityInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.java new file mode 100644 index 0000000..f4aab83 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.java @@ -0,0 +1,667 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * An object representing a room in the property. + */ +@ApiModel(description = "An object representing a room in the property.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner { + public static final String SERIALIZED_NAME_IS_ACTIVE = "isActive"; + @SerializedName(SERIALIZED_NAME_IS_ACTIVE) + private Boolean isActive; + + public static final String SERIALIZED_NAME_ROOM_ID = "roomId"; + @SerializedName(SERIALIZED_NAME_ROOM_ID) + private String roomId; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_MEDIA_LIST = "mediaList"; + @SerializedName(SERIALIZED_NAME_MEDIA_LIST) + private List mediaList = new ArrayList<>(); + + /** + * The unit and room type code.<p>See also <a href=\"#unitand-room-type-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(RoomTypeCodeEnum.Adapter.class) + public enum RoomTypeCodeEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")); + + private BigDecimal value; + + RoomTypeCodeEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RoomTypeCodeEnum fromValue(BigDecimal value) { + for (RoomTypeCodeEnum b : RoomTypeCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final RoomTypeCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RoomTypeCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RoomTypeCodeEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_ROOM_TYPE_CODE = "roomTypeCode"; + @SerializedName(SERIALIZED_NAME_ROOM_TYPE_CODE) + private RoomTypeCodeEnum roomTypeCode; + + public static final String SERIALIZED_NAME_IS_NON_SMOKING = "isNonSmoking"; + @SerializedName(SERIALIZED_NAME_IS_NON_SMOKING) + private Boolean isNonSmoking; + + public static final String SERIALIZED_NAME_AMENITY_LIST = "amenityList"; + @SerializedName(SERIALIZED_NAME_AMENITY_LIST) + private List amenityList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_MESSAGE_LIST = "messageList"; + @SerializedName(SERIALIZED_NAME_MESSAGE_LIST) + private List messageList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_MAX_OCCUPANCY = "maxOccupancy"; + @SerializedName(SERIALIZED_NAME_MAX_OCCUPANCY) + private BigDecimal maxOccupancy; + + public static final String SERIALIZED_NAME_MAX_ADULT_OCCUPANCY = "maxAdultOccupancy"; + @SerializedName(SERIALIZED_NAME_MAX_ADULT_OCCUPANCY) + private BigDecimal maxAdultOccupancy; + + public static final String SERIALIZED_NAME_MAX_CHILD_OCCUPANCY = "maxChildOccupancy"; + @SerializedName(SERIALIZED_NAME_MAX_CHILD_OCCUPANCY) + private BigDecimal maxChildOccupancy; + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner isActive(Boolean isActive) { + + this.isActive = isActive; + return this; + } + + /** + * Indicates whether the room is active or not. + * @return isActive + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Indicates whether the room is active or not.") + + public Boolean getIsActive() { + return isActive; + } + + + public void setIsActive(Boolean isActive) { + this.isActive = isActive; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner roomId(String roomId) { + + this.roomId = roomId; + return this; + } + + /** + * The unique identifier for the room. + * @return roomId + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "amrum", required = true, value = "The unique identifier for the room.") + + public String getRoomId() { + return roomId; + } + + + public void setRoomId(String roomId) { + this.roomId = roomId; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the room. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Amrum", required = true, value = "The name of the room.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner mediaList(List mediaList) { + + this.mediaList = mediaList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner addMediaListItem(PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner mediaListItem) { + this.mediaList.add(mediaListItem); + return this; + } + + /** + * A list of media objects for the room. + * @return mediaList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of media objects for the room.") + + public List getMediaList() { + return mediaList; + } + + + public void setMediaList(List mediaList) { + this.mediaList = mediaList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner roomTypeCode(RoomTypeCodeEnum roomTypeCode) { + + this.roomTypeCode = roomTypeCode; + return this; + } + + /** + * The unit and room type code.<p>See also <a href=\"#unitand-room-type-codes\">in the appendix</a>.</p> + * @return roomTypeCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1", required = true, value = "The unit and room type code.

See also in the appendix.

") + + public RoomTypeCodeEnum getRoomTypeCode() { + return roomTypeCode; + } + + + public void setRoomTypeCode(RoomTypeCodeEnum roomTypeCode) { + this.roomTypeCode = roomTypeCode; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner isNonSmoking(Boolean isNonSmoking) { + + this.isNonSmoking = isNonSmoking; + return this; + } + + /** + * Indicates whether the room is designated as non-smoking. + * @return isNonSmoking + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "false", required = true, value = "Indicates whether the room is designated as non-smoking.") + + public Boolean getIsNonSmoking() { + return isNonSmoking; + } + + + public void setIsNonSmoking(Boolean isNonSmoking) { + this.isNonSmoking = isNonSmoking; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner amenityList(List amenityList) { + + this.amenityList = amenityList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner addAmenityListItem(PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner amenityListItem) { + this.amenityList.add(amenityListItem); + return this; + } + + /** + * A list of amenities provided in the room. + * @return amenityList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[{\"code\":5005,\"quantity\":1},{\"code\":13,\"quantity\":1}]", required = true, value = "A list of amenities provided in the room.") + + public List getAmenityList() { + return amenityList; + } + + + public void setAmenityList(List amenityList) { + this.amenityList = amenityList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner messageList(List messageList) { + + this.messageList = messageList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner addMessageListItem(PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner messageListItem) { + this.messageList.add(messageListItem); + return this; + } + + /** + * A list of messages associated with the room. + * @return messageList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[{\"languageCode\":\"en\",\"text\":\"Maisonette apartment up/attic Living room: including a spacious leather seat, spacious dining table with chairs for 4 people, large cable flat screen TV, DVD/BluRay player, music system with CD and docking station, free Wi-Fi and telephone flat rate (German landline). Kitchen: branded fitted kitchen with dishwasher, cooker with ceramic hob, Oven, microwave, fridge/freezer, Nespresso coffee machine.Bedrooms: One double bedroom including Treca box spring beds with fitted wardrobes with ample storage space and with cable flat screen TV and safe.Bathroom: including spa shower, bathtub, washbasin, underfloor heating, towel warmer, radio, hairdryer, Cosmetic mirror, window.Balcony (south facing position): with seating group.Other: Washer dryer, ironing station, private parking in front of the house, bicycle storage with charging connection for pedelecs... and fantastic location, right at the beach crossing!Maisonette apartment up/attic living room: including spacious leather seating, spacious dining table with chairs for 4 people, large cable flat screen TV, DVD/Blueray player, music system with CD and docking station, free Wi-Fi and telephone flat rate (German landline) .Kitchen: branded fitted kitchen with dishwasher, cooker with ceramic hob, among others, oven, microwave, fridge/freezer, Nespresso coffee machine.Bedrooms: One double bedroom including Treca box spring beds with fitted wardrobes with ample storage space and with cable flat screen TV and safe.Bathroom: including spa shower, bathtub, washbasin, underfloor heating, towel warmer, radio, hairdryer, Vanity mirror, window.Balcony (south facing position): with seating group.Other: washer-dryer, ironing station, private parking in front of the house, bicycle storage with charging connection for pedelecs.\"},{\"languageCode\":\"da\",\"text\":\"Maisonette lejlighed op/loftsrum Stue: herunder en rummelig lædersæde, rummeligt spisebord med stole til 4 personer, stort kabel-fladskærms TV, dvd/Bluray-afspiller, musiksystem med cd og dockingstation, gratis trådløs internetadgang og telefon fast (tysk fastnet). Køkken: mærkevarer udstyret køkken med opvaskemaskine, komfur med keramisk komfur, Ovn, mikroovn, køleskab/fryser, Nespresso kaffemaskine.Soveværelser: Et soveværelse med dobbeltseng herunder Treca box foråret senge med indbyggede garderobeskabe med rigelig opbevaringsplads og med kabel-fladskærms TV og sikker.Badeværelse: herunder spa-bruser, badekar, håndvask, gulvvarme, håndklædevarmer, radio, hårtørrer, Kosmetiske spejl, vindue.Balkon (sydvendt position): med siddepladser gruppe.Andre: Vaskemaskine tørretumbler, strygestation, privat parkering foran huset, cykelopbevaring med opladningsforbindelse for pedelecs... og fantastisk beliggenhed, lige ved siden af stranden krydser!Maisonette lejlighed op/loftsrum stue: herunder rummelige læder siddepladser, rummelige spisebord med stole til 4 personer, stort kabel fladskærms TV, DVD/Blueray afspiller, musikanlæg med cd og docking station, gratis trådløs internetadgang og telefon fast (tysk fastnet) .Køkken: mærkevarer udstyret køkken med opvaskemaskine, komfur med keramisk komfur, blandt andre ovn, mikroovn, køleskab/fryser, Nespresso kaffemaskine.Soveværelser: Et dobbeltværelse herunder Treca box foråret senge med indbyggede garderobeskabe med rigelig opbevaringsplads og med kabel fladskærms TV og penge.Badeværelse: herunder spa bruser, badekar, håndvask, gulvvarme, håndklædevarmer, radio, hårtørrer, Vanity spejl, vindue.Balkon (sydvendt position): med siddepladser gruppe.Andre: vaskemaskine-tørretumbler, strygestation, privat parkering foran huset, cykel opbevaring med opladning tilslutning til pedelecs.\"},{\"languageCode\":\"nl\",\"text\":\"Maisonnette appartement boven/zolder Woonkamer: inclusief een ruime lederen stoel, ruime eettafel met stoelen voor 4 personen, grote flatscreen tv met kabelzenders, dvd/Bluray-speler, muziekinstallatie met cd en docking station, gratis Wi-Fi en vaste telefoon (vaste lijn Duitsland). Keuken: branded ingerichte keuken met vaatwasser, fornuis met keramische kookplaat, oven, magnetron, koelkast/vriezer, Nespresso koffiemachine.Slaapkamers: Een tweepersoons slaapkamer inclusief Treca boxspring bedden met ingebouwde kasten met voldoende bergruimte en met kabel flatscreen TV en kluis.Badkamer: inclusief spa douche, bad, wastafel, vloerverwarming, handdoekverwarmer, radio, haardroger, cosmetische spiegel, venster.Balkon (op het zuiden gelegen): met zitgroep.Overig: Wasdroger, strijkplank, eigen parkeerplaats voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs... en fantastische locatie, direct aan De oversteek van het strand!Maisonnette appartement boven/zolderwoonkamer: inclusief ruime lederen zitplaatsen, ruime eettafel met stoelen voor 4 personen, grote flatscreen tv met kabelkanalen, DVD/BlueRay speler, muziekinstallatie met CD en docking station, gratis Wi-Fi en vaste telefoon vaatwasser, fornuis met keramische kookplaat, o.a., oven, magnetron, koelkast/vriezer, Nespresso koffiemachine.Slaapkamers: Een tweepersoons slaapkamer inclusief Treca boxspring bedden met ingebouwde kasten met veel bergruimte en met kabel flatscreen TV en kluis.Badkamer: inclusief spa douche, bad, wastafel, vloerverwarming, handdoekwarmer, radio, haardroger, make-upspiegel, raam.Balkon (op het zuiden gelegen): met zitgroep.Overig: wasmachine-droger, strijkplank, eigen parkeerplaats voor het huis, fietsenstalling met oplaadaansluiting voor pedelecs.\"},{\"languageCode\":\"de\",\"text\":\"Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a. mit grosszügiger Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen für 4 Personen, grossem Kabel-Flat-TV, DVD-/Bluray-Player, Musikanlage mit CD und Docking-Station, kostenfreies WLan sowie Telefon-Flatrate (dt. Festnetz).Küche: Marken-Einbauküche u.a. mit Geschirrspülmaschine, Herd mit Ceranfeld, Backofen, Mikrowelle, Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafräume: Ein Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschränken mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer: u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung, Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation, privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit mit Aufladeanschluß für Pedelecs ...... und traumhafte Lage, direkt am Strandübergang!Maisonettewohnung Ober-/DachgeschoßWohnzimmer: u.a. mit grosszügiger Leder-Sitzguppe, grosszügigem Eßtisch mit Stühlen für 4 Personen, grossem Kabel-Flat-TV, DVD-/Blueray-Player, Musikanlage mit CD und Docking-Station, kostenfreies WLan sowie Telefon-Flatrate (dt. Festnetz).Küche: Marken-Einbauküche u.a. mit Geschirrspülmaschine, Herd mit Ceranfeld, Backofen, Mikrowelle, Kühl-/Gefrierkombination, Nespresso-Kaffeemaschine.Schlafräume: Ein Doppelschlafraum u.a. mit TRECA-Boxspringbetten mit Einbauschränken mit ausreichend Stauraum sowie mit Kabel-Flat-TV und Safe.Badezimmer: u.a. mit Wellness-Dusche, Badewanne, Waschtischanlage, Fußbodenheizung, Handtuchwärmer, Radioanlage, Haartrockner, Kosmetikspiegel, Fenster.Balkon (Südlage): mit Sitzgruppe.Sonstiges: Waschtrockner, Bügelstation, privater Parkplatz vor dem Haus, Fahrradunterstellmöglichkeit mit Aufladeanschluß für Pedelecs.\"}]", required = true, value = "A list of messages associated with the room.") + + public List getMessageList() { + return messageList; + } + + + public void setMessageList(List messageList) { + this.messageList = messageList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner maxOccupancy(BigDecimal maxOccupancy) { + + this.maxOccupancy = maxOccupancy; + return this; + } + + /** + * The maximum occupancy of the room. + * @return maxOccupancy + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "4", required = true, value = "The maximum occupancy of the room.") + + public BigDecimal getMaxOccupancy() { + return maxOccupancy; + } + + + public void setMaxOccupancy(BigDecimal maxOccupancy) { + this.maxOccupancy = maxOccupancy; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner maxAdultOccupancy(BigDecimal maxAdultOccupancy) { + + this.maxAdultOccupancy = maxAdultOccupancy; + return this; + } + + /** + * The maximum number of adults that can occupy the room. + * @return maxAdultOccupancy + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "2", required = true, value = "The maximum number of adults that can occupy the room.") + + public BigDecimal getMaxAdultOccupancy() { + return maxAdultOccupancy; + } + + + public void setMaxAdultOccupancy(BigDecimal maxAdultOccupancy) { + this.maxAdultOccupancy = maxAdultOccupancy; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner maxChildOccupancy(BigDecimal maxChildOccupancy) { + + this.maxChildOccupancy = maxChildOccupancy; + return this; + } + + /** + * The maximum number of children that can occupy the room. + * @return maxChildOccupancy + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "4", required = true, value = "The maximum number of children that can occupy the room.") + + public BigDecimal getMaxChildOccupancy() { + return maxChildOccupancy; + } + + + public void setMaxChildOccupancy(BigDecimal maxChildOccupancy) { + this.maxChildOccupancy = maxChildOccupancy; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner = (PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner) o; + return Objects.equals(this.isActive, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.isActive) && + Objects.equals(this.roomId, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.roomId) && + Objects.equals(this.name, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.name) && + Objects.equals(this.mediaList, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.mediaList) && + Objects.equals(this.roomTypeCode, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.roomTypeCode) && + Objects.equals(this.isNonSmoking, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.isNonSmoking) && + Objects.equals(this.amenityList, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.amenityList) && + Objects.equals(this.messageList, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.messageList) && + Objects.equals(this.maxOccupancy, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.maxOccupancy) && + Objects.equals(this.maxAdultOccupancy, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.maxAdultOccupancy) && + Objects.equals(this.maxChildOccupancy, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.maxChildOccupancy); + } + + @Override + public int hashCode() { + return Objects.hash(isActive, roomId, name, mediaList, roomTypeCode, isNonSmoking, amenityList, messageList, maxOccupancy, maxAdultOccupancy, maxChildOccupancy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner {\n"); + sb.append(" isActive: ").append(toIndentedString(isActive)).append("\n"); + sb.append(" roomId: ").append(toIndentedString(roomId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mediaList: ").append(toIndentedString(mediaList)).append("\n"); + sb.append(" roomTypeCode: ").append(toIndentedString(roomTypeCode)).append("\n"); + sb.append(" isNonSmoking: ").append(toIndentedString(isNonSmoking)).append("\n"); + sb.append(" amenityList: ").append(toIndentedString(amenityList)).append("\n"); + sb.append(" messageList: ").append(toIndentedString(messageList)).append("\n"); + sb.append(" maxOccupancy: ").append(toIndentedString(maxOccupancy)).append("\n"); + sb.append(" maxAdultOccupancy: ").append(toIndentedString(maxAdultOccupancy)).append("\n"); + sb.append(" maxChildOccupancy: ").append(toIndentedString(maxChildOccupancy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("isActive"); + openapiFields.add("roomId"); + openapiFields.add("name"); + openapiFields.add("mediaList"); + openapiFields.add("roomTypeCode"); + openapiFields.add("isNonSmoking"); + openapiFields.add("amenityList"); + openapiFields.add("messageList"); + openapiFields.add("maxOccupancy"); + openapiFields.add("maxAdultOccupancy"); + openapiFields.add("maxChildOccupancy"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("isActive"); + openapiRequiredFields.add("roomId"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("mediaList"); + openapiRequiredFields.add("roomTypeCode"); + openapiRequiredFields.add("isNonSmoking"); + openapiRequiredFields.add("amenityList"); + openapiRequiredFields.add("messageList"); + openapiRequiredFields.add("maxOccupancy"); + openapiRequiredFields.add("maxAdultOccupancy"); + openapiRequiredFields.add("maxChildOccupancy"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("roomId") != null && !jsonObj.get("roomId").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `roomId` to be a primitive type in the JSON string but got `%s`", jsonObj.get("roomId").toString())); + } + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + JsonArray jsonArraymediaList = jsonObj.getAsJsonArray("mediaList"); + if (jsonArraymediaList != null) { + // ensure the json data is an array + if (!jsonObj.get("mediaList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `mediaList` to be an array in the JSON string but got `%s`", jsonObj.get("mediaList").toString())); + } + + // validate the optional field `mediaList` (array) + for (int i = 0; i < jsonArraymediaList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.validateJsonObject(jsonArraymediaList.get(i).getAsJsonObject()); + }; + } + JsonArray jsonArrayamenityList = jsonObj.getAsJsonArray("amenityList"); + if (jsonArrayamenityList != null) { + // ensure the json data is an array + if (!jsonObj.get("amenityList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `amenityList` to be an array in the JSON string but got `%s`", jsonObj.get("amenityList").toString())); + } + + // validate the optional field `amenityList` (array) + for (int i = 0; i < jsonArrayamenityList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.validateJsonObject(jsonArrayamenityList.get(i).getAsJsonObject()); + }; + } + JsonArray jsonArraymessageList = jsonObj.getAsJsonArray("messageList"); + if (jsonArraymessageList != null) { + // ensure the json data is an array + if (!jsonObj.get("messageList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `messageList` to be an array in the JSON string but got `%s`", jsonObj.get("messageList").toString())); + } + + // validate the optional field `messageList` (array) + for (int i = 0; i < jsonArraymessageList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.validateJsonObject(jsonArraymessageList.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.java new file mode 100644 index 0000000..0190979 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.java @@ -0,0 +1,1233 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner { + /** + * The code indicating the room amenity type.<p>See also <a href=\"#unitand-room-amenity-type-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(CodeEnum.Adapter.class) + public enum CodeEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_30(new BigDecimal("30")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")), + + NUMBER_34(new BigDecimal("34")), + + NUMBER_35(new BigDecimal("35")), + + NUMBER_36(new BigDecimal("36")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_38(new BigDecimal("38")), + + NUMBER_39(new BigDecimal("39")), + + NUMBER_40(new BigDecimal("40")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_44(new BigDecimal("44")), + + NUMBER_45(new BigDecimal("45")), + + NUMBER_46(new BigDecimal("46")), + + NUMBER_47(new BigDecimal("47")), + + NUMBER_48(new BigDecimal("48")), + + NUMBER_49(new BigDecimal("49")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_51(new BigDecimal("51")), + + NUMBER_52(new BigDecimal("52")), + + NUMBER_53(new BigDecimal("53")), + + NUMBER_54(new BigDecimal("54")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_56(new BigDecimal("56")), + + NUMBER_57(new BigDecimal("57")), + + NUMBER_58(new BigDecimal("58")), + + NUMBER_59(new BigDecimal("59")), + + NUMBER_60(new BigDecimal("60")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_62(new BigDecimal("62")), + + NUMBER_63(new BigDecimal("63")), + + NUMBER_64(new BigDecimal("64")), + + NUMBER_65(new BigDecimal("65")), + + NUMBER_66(new BigDecimal("66")), + + NUMBER_67(new BigDecimal("67")), + + NUMBER_68(new BigDecimal("68")), + + NUMBER_69(new BigDecimal("69")), + + NUMBER_70(new BigDecimal("70")), + + NUMBER_71(new BigDecimal("71")), + + NUMBER_72(new BigDecimal("72")), + + NUMBER_73(new BigDecimal("73")), + + NUMBER_74(new BigDecimal("74")), + + NUMBER_75(new BigDecimal("75")), + + NUMBER_76(new BigDecimal("76")), + + NUMBER_77(new BigDecimal("77")), + + NUMBER_78(new BigDecimal("78")), + + NUMBER_79(new BigDecimal("79")), + + NUMBER_80(new BigDecimal("80")), + + NUMBER_81(new BigDecimal("81")), + + NUMBER_82(new BigDecimal("82")), + + NUMBER_83(new BigDecimal("83")), + + NUMBER_84(new BigDecimal("84")), + + NUMBER_85(new BigDecimal("85")), + + NUMBER_86(new BigDecimal("86")), + + NUMBER_87(new BigDecimal("87")), + + NUMBER_88(new BigDecimal("88")), + + NUMBER_89(new BigDecimal("89")), + + NUMBER_90(new BigDecimal("90")), + + NUMBER_91(new BigDecimal("91")), + + NUMBER_92(new BigDecimal("92")), + + NUMBER_93(new BigDecimal("93")), + + NUMBER_94(new BigDecimal("94")), + + NUMBER_95(new BigDecimal("95")), + + NUMBER_96(new BigDecimal("96")), + + NUMBER_97(new BigDecimal("97")), + + NUMBER_98(new BigDecimal("98")), + + NUMBER_99(new BigDecimal("99")), + + NUMBER_100(new BigDecimal("100")), + + NUMBER_101(new BigDecimal("101")), + + NUMBER_102(new BigDecimal("102")), + + NUMBER_103(new BigDecimal("103")), + + NUMBER_104(new BigDecimal("104")), + + NUMBER_105(new BigDecimal("105")), + + NUMBER_106(new BigDecimal("106")), + + NUMBER_107(new BigDecimal("107")), + + NUMBER_108(new BigDecimal("108")), + + NUMBER_109(new BigDecimal("109")), + + NUMBER_110(new BigDecimal("110")), + + NUMBER_111(new BigDecimal("111")), + + NUMBER_112(new BigDecimal("112")), + + NUMBER_113(new BigDecimal("113")), + + NUMBER_114(new BigDecimal("114")), + + NUMBER_115(new BigDecimal("115")), + + NUMBER_116(new BigDecimal("116")), + + NUMBER_117(new BigDecimal("117")), + + NUMBER_118(new BigDecimal("118")), + + NUMBER_119(new BigDecimal("119")), + + NUMBER_120(new BigDecimal("120")), + + NUMBER_121(new BigDecimal("121")), + + NUMBER_122(new BigDecimal("122")), + + NUMBER_123(new BigDecimal("123")), + + NUMBER_124(new BigDecimal("124")), + + NUMBER_125(new BigDecimal("125")), + + NUMBER_126(new BigDecimal("126")), + + NUMBER_127(new BigDecimal("127")), + + NUMBER_128(new BigDecimal("128")), + + NUMBER_129(new BigDecimal("129")), + + NUMBER_130(new BigDecimal("130")), + + NUMBER_131(new BigDecimal("131")), + + NUMBER_132(new BigDecimal("132")), + + NUMBER_133(new BigDecimal("133")), + + NUMBER_134(new BigDecimal("134")), + + NUMBER_135(new BigDecimal("135")), + + NUMBER_136(new BigDecimal("136")), + + NUMBER_137(new BigDecimal("137")), + + NUMBER_138(new BigDecimal("138")), + + NUMBER_139(new BigDecimal("139")), + + NUMBER_140(new BigDecimal("140")), + + NUMBER_141(new BigDecimal("141")), + + NUMBER_142(new BigDecimal("142")), + + NUMBER_143(new BigDecimal("143")), + + NUMBER_144(new BigDecimal("144")), + + NUMBER_145(new BigDecimal("145")), + + NUMBER_146(new BigDecimal("146")), + + NUMBER_147(new BigDecimal("147")), + + NUMBER_148(new BigDecimal("148")), + + NUMBER_149(new BigDecimal("149")), + + NUMBER_150(new BigDecimal("150")), + + NUMBER_151(new BigDecimal("151")), + + NUMBER_152(new BigDecimal("152")), + + NUMBER_153(new BigDecimal("153")), + + NUMBER_154(new BigDecimal("154")), + + NUMBER_155(new BigDecimal("155")), + + NUMBER_156(new BigDecimal("156")), + + NUMBER_157(new BigDecimal("157")), + + NUMBER_158(new BigDecimal("158")), + + NUMBER_159(new BigDecimal("159")), + + NUMBER_160(new BigDecimal("160")), + + NUMBER_161(new BigDecimal("161")), + + NUMBER_162(new BigDecimal("162")), + + NUMBER_163(new BigDecimal("163")), + + NUMBER_164(new BigDecimal("164")), + + NUMBER_165(new BigDecimal("165")), + + NUMBER_166(new BigDecimal("166")), + + NUMBER_167(new BigDecimal("167")), + + NUMBER_168(new BigDecimal("168")), + + NUMBER_169(new BigDecimal("169")), + + NUMBER_170(new BigDecimal("170")), + + NUMBER_171(new BigDecimal("171")), + + NUMBER_172(new BigDecimal("172")), + + NUMBER_173(new BigDecimal("173")), + + NUMBER_174(new BigDecimal("174")), + + NUMBER_175(new BigDecimal("175")), + + NUMBER_176(new BigDecimal("176")), + + NUMBER_177(new BigDecimal("177")), + + NUMBER_178(new BigDecimal("178")), + + NUMBER_179(new BigDecimal("179")), + + NUMBER_180(new BigDecimal("180")), + + NUMBER_181(new BigDecimal("181")), + + NUMBER_182(new BigDecimal("182")), + + NUMBER_183(new BigDecimal("183")), + + NUMBER_184(new BigDecimal("184")), + + NUMBER_185(new BigDecimal("185")), + + NUMBER_186(new BigDecimal("186")), + + NUMBER_187(new BigDecimal("187")), + + NUMBER_188(new BigDecimal("188")), + + NUMBER_189(new BigDecimal("189")), + + NUMBER_190(new BigDecimal("190")), + + NUMBER_191(new BigDecimal("191")), + + NUMBER_192(new BigDecimal("192")), + + NUMBER_193(new BigDecimal("193")), + + NUMBER_194(new BigDecimal("194")), + + NUMBER_195(new BigDecimal("195")), + + NUMBER_196(new BigDecimal("196")), + + NUMBER_197(new BigDecimal("197")), + + NUMBER_198(new BigDecimal("198")), + + NUMBER_199(new BigDecimal("199")), + + NUMBER_200(new BigDecimal("200")), + + NUMBER_201(new BigDecimal("201")), + + NUMBER_202(new BigDecimal("202")), + + NUMBER_203(new BigDecimal("203")), + + NUMBER_204(new BigDecimal("204")), + + NUMBER_205(new BigDecimal("205")), + + NUMBER_206(new BigDecimal("206")), + + NUMBER_207(new BigDecimal("207")), + + NUMBER_208(new BigDecimal("208")), + + NUMBER_209(new BigDecimal("209")), + + NUMBER_210(new BigDecimal("210")), + + NUMBER_211(new BigDecimal("211")), + + NUMBER_212(new BigDecimal("212")), + + NUMBER_213(new BigDecimal("213")), + + NUMBER_214(new BigDecimal("214")), + + NUMBER_215(new BigDecimal("215")), + + NUMBER_216(new BigDecimal("216")), + + NUMBER_217(new BigDecimal("217")), + + NUMBER_218(new BigDecimal("218")), + + NUMBER_219(new BigDecimal("219")), + + NUMBER_220(new BigDecimal("220")), + + NUMBER_221(new BigDecimal("221")), + + NUMBER_222(new BigDecimal("222")), + + NUMBER_223(new BigDecimal("223")), + + NUMBER_224(new BigDecimal("224")), + + NUMBER_225(new BigDecimal("225")), + + NUMBER_226(new BigDecimal("226")), + + NUMBER_227(new BigDecimal("227")), + + NUMBER_228(new BigDecimal("228")), + + NUMBER_229(new BigDecimal("229")), + + NUMBER_230(new BigDecimal("230")), + + NUMBER_231(new BigDecimal("231")), + + NUMBER_232(new BigDecimal("232")), + + NUMBER_233(new BigDecimal("233")), + + NUMBER_234(new BigDecimal("234")), + + NUMBER_235(new BigDecimal("235")), + + NUMBER_236(new BigDecimal("236")), + + NUMBER_237(new BigDecimal("237")), + + NUMBER_238(new BigDecimal("238")), + + NUMBER_239(new BigDecimal("239")), + + NUMBER_240(new BigDecimal("240")), + + NUMBER_241(new BigDecimal("241")), + + NUMBER_242(new BigDecimal("242")), + + NUMBER_243(new BigDecimal("243")), + + NUMBER_244(new BigDecimal("244")), + + NUMBER_245(new BigDecimal("245")), + + NUMBER_246(new BigDecimal("246")), + + NUMBER_247(new BigDecimal("247")), + + NUMBER_248(new BigDecimal("248")), + + NUMBER_249(new BigDecimal("249")), + + NUMBER_250(new BigDecimal("250")), + + NUMBER_251(new BigDecimal("251")), + + NUMBER_252(new BigDecimal("252")), + + NUMBER_253(new BigDecimal("253")), + + NUMBER_254(new BigDecimal("254")), + + NUMBER_255(new BigDecimal("255")), + + NUMBER_256(new BigDecimal("256")), + + NUMBER_257(new BigDecimal("257")), + + NUMBER_258(new BigDecimal("258")), + + NUMBER_259(new BigDecimal("259")), + + NUMBER_260(new BigDecimal("260")), + + NUMBER_261(new BigDecimal("261")), + + NUMBER_262(new BigDecimal("262")), + + NUMBER_263(new BigDecimal("263")), + + NUMBER_264(new BigDecimal("264")), + + NUMBER_265(new BigDecimal("265")), + + NUMBER_266(new BigDecimal("266")), + + NUMBER_267(new BigDecimal("267")), + + NUMBER_268(new BigDecimal("268")), + + NUMBER_269(new BigDecimal("269")), + + NUMBER_270(new BigDecimal("270")), + + NUMBER_271(new BigDecimal("271")), + + NUMBER_272(new BigDecimal("272")), + + NUMBER_273(new BigDecimal("273")), + + NUMBER_274(new BigDecimal("274")), + + NUMBER_275(new BigDecimal("275")), + + NUMBER_276(new BigDecimal("276")), + + NUMBER_277(new BigDecimal("277")), + + NUMBER_278(new BigDecimal("278")), + + NUMBER_279(new BigDecimal("279")), + + NUMBER_280(new BigDecimal("280")), + + NUMBER_281(new BigDecimal("281")), + + NUMBER_282(new BigDecimal("282")), + + NUMBER_283(new BigDecimal("283")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")), + + NUMBER_5009(new BigDecimal("5009")), + + NUMBER_5010(new BigDecimal("5010")), + + NUMBER_5011(new BigDecimal("5011")), + + NUMBER_5012(new BigDecimal("5012")), + + NUMBER_5013(new BigDecimal("5013")), + + NUMBER_5014(new BigDecimal("5014")), + + NUMBER_5015(new BigDecimal("5015")), + + NUMBER_5016(new BigDecimal("5016")), + + NUMBER_5017(new BigDecimal("5017")), + + NUMBER_5018(new BigDecimal("5018")), + + NUMBER_5019(new BigDecimal("5019")), + + NUMBER_5020(new BigDecimal("5020")), + + NUMBER_5021(new BigDecimal("5021")), + + NUMBER_5022(new BigDecimal("5022")), + + NUMBER_5023(new BigDecimal("5023")), + + NUMBER_5024(new BigDecimal("5024")), + + NUMBER_5025(new BigDecimal("5025")), + + NUMBER_5026(new BigDecimal("5026")), + + NUMBER_5027(new BigDecimal("5027")), + + NUMBER_5028(new BigDecimal("5028")), + + NUMBER_5029(new BigDecimal("5029")), + + NUMBER_5030(new BigDecimal("5030")), + + NUMBER_5031(new BigDecimal("5031")), + + NUMBER_5032(new BigDecimal("5032")), + + NUMBER_5033(new BigDecimal("5033")), + + NUMBER_5034(new BigDecimal("5034")), + + NUMBER_5035(new BigDecimal("5035")), + + NUMBER_5036(new BigDecimal("5036")), + + NUMBER_5037(new BigDecimal("5037")), + + NUMBER_5038(new BigDecimal("5038")), + + NUMBER_5039(new BigDecimal("5039")), + + NUMBER_5040(new BigDecimal("5040")), + + NUMBER_5041(new BigDecimal("5041")), + + NUMBER_5042(new BigDecimal("5042")), + + NUMBER_5043(new BigDecimal("5043")), + + NUMBER_5044(new BigDecimal("5044")), + + NUMBER_5045(new BigDecimal("5045")), + + NUMBER_5046(new BigDecimal("5046")), + + NUMBER_5068(new BigDecimal("5068")), + + NUMBER_5069(new BigDecimal("5069")), + + NUMBER_5070(new BigDecimal("5070")), + + NUMBER_5071(new BigDecimal("5071")), + + NUMBER_5072(new BigDecimal("5072")), + + NUMBER_5073(new BigDecimal("5073")), + + NUMBER_5074(new BigDecimal("5074")), + + NUMBER_5075(new BigDecimal("5075")), + + NUMBER_5076(new BigDecimal("5076")), + + NUMBER_5077(new BigDecimal("5077")), + + NUMBER_5079(new BigDecimal("5079")), + + NUMBER_5080(new BigDecimal("5080")), + + NUMBER_5081(new BigDecimal("5081")), + + NUMBER_5082(new BigDecimal("5082")), + + NUMBER_5083(new BigDecimal("5083")), + + NUMBER_5084(new BigDecimal("5084")), + + NUMBER_5085(new BigDecimal("5085")), + + NUMBER_5086(new BigDecimal("5086")), + + NUMBER_5087(new BigDecimal("5087")), + + NUMBER_5088(new BigDecimal("5088")), + + NUMBER_5089(new BigDecimal("5089")), + + NUMBER_5090(new BigDecimal("5090")), + + NUMBER_5091(new BigDecimal("5091")), + + NUMBER_5092(new BigDecimal("5092")), + + NUMBER_5093(new BigDecimal("5093")), + + NUMBER_5094(new BigDecimal("5094")), + + NUMBER_5095(new BigDecimal("5095")), + + NUMBER_5096(new BigDecimal("5096")), + + NUMBER_5097(new BigDecimal("5097")), + + NUMBER_5098(new BigDecimal("5098")), + + NUMBER_5099(new BigDecimal("5099")), + + NUMBER_5100(new BigDecimal("5100")), + + NUMBER_5101(new BigDecimal("5101")), + + NUMBER_5102(new BigDecimal("5102")), + + NUMBER_5103(new BigDecimal("5103")), + + NUMBER_5104(new BigDecimal("5104")), + + NUMBER_5105(new BigDecimal("5105")), + + NUMBER_5106(new BigDecimal("5106")), + + NUMBER_5107(new BigDecimal("5107")), + + NUMBER_5108(new BigDecimal("5108")), + + NUMBER_5109(new BigDecimal("5109")), + + NUMBER_5110(new BigDecimal("5110")), + + NUMBER_5111(new BigDecimal("5111")), + + NUMBER_5112(new BigDecimal("5112")), + + NUMBER_5113(new BigDecimal("5113")), + + NUMBER_5114(new BigDecimal("5114")), + + NUMBER_5115(new BigDecimal("5115")), + + NUMBER_5116(new BigDecimal("5116")), + + NUMBER_5117(new BigDecimal("5117")), + + NUMBER_5118(new BigDecimal("5118")), + + NUMBER_5119(new BigDecimal("5119")), + + NUMBER_5120(new BigDecimal("5120")), + + NUMBER_5121(new BigDecimal("5121")), + + NUMBER_5122(new BigDecimal("5122")), + + NUMBER_5123(new BigDecimal("5123")), + + NUMBER_5124(new BigDecimal("5124")), + + NUMBER_5125(new BigDecimal("5125")), + + NUMBER_5126(new BigDecimal("5126")), + + NUMBER_5127(new BigDecimal("5127")), + + NUMBER_5129(new BigDecimal("5129")), + + NUMBER_5130(new BigDecimal("5130")), + + NUMBER_5131(new BigDecimal("5131")), + + NUMBER_5132(new BigDecimal("5132")), + + NUMBER_5133(new BigDecimal("5133")), + + NUMBER_5134(new BigDecimal("5134")), + + NUMBER_5135(new BigDecimal("5135")), + + NUMBER_5136(new BigDecimal("5136")), + + NUMBER_5137(new BigDecimal("5137")), + + NUMBER_5138(new BigDecimal("5138")), + + NUMBER_5139(new BigDecimal("5139")), + + NUMBER_5140(new BigDecimal("5140")), + + NUMBER_5141(new BigDecimal("5141")), + + NUMBER_5142(new BigDecimal("5142")), + + NUMBER_5143(new BigDecimal("5143")), + + NUMBER_5144(new BigDecimal("5144")), + + NUMBER_5145(new BigDecimal("5145")), + + NUMBER_5146(new BigDecimal("5146")), + + NUMBER_5147(new BigDecimal("5147")), + + NUMBER_5148(new BigDecimal("5148")), + + NUMBER_5149(new BigDecimal("5149")), + + NUMBER_5150(new BigDecimal("5150")), + + NUMBER_5151(new BigDecimal("5151")), + + NUMBER_5152(new BigDecimal("5152")), + + NUMBER_5153(new BigDecimal("5153")), + + NUMBER_5154(new BigDecimal("5154")), + + NUMBER_5157(new BigDecimal("5157")), + + NUMBER_5158(new BigDecimal("5158")), + + NUMBER_5159(new BigDecimal("5159")), + + NUMBER_5160(new BigDecimal("5160")), + + NUMBER_5161(new BigDecimal("5161")), + + NUMBER_5162(new BigDecimal("5162")), + + NUMBER_5163(new BigDecimal("5163")), + + NUMBER_5164(new BigDecimal("5164")), + + NUMBER_5165(new BigDecimal("5165")), + + NUMBER_5166(new BigDecimal("5166")), + + NUMBER_5167(new BigDecimal("5167")), + + NUMBER_5168(new BigDecimal("5168")), + + NUMBER_5169(new BigDecimal("5169")), + + NUMBER_5170(new BigDecimal("5170")), + + NUMBER_5171(new BigDecimal("5171")), + + NUMBER_5172(new BigDecimal("5172")), + + NUMBER_5173(new BigDecimal("5173")), + + NUMBER_5174(new BigDecimal("5174")), + + NUMBER_5175(new BigDecimal("5175")), + + NUMBER_5176(new BigDecimal("5176")), + + NUMBER_5177(new BigDecimal("5177")), + + NUMBER_5178(new BigDecimal("5178")), + + NUMBER_5179(new BigDecimal("5179")), + + NUMBER_5180(new BigDecimal("5180")), + + NUMBER_5181(new BigDecimal("5181")), + + NUMBER_5182(new BigDecimal("5182")), + + NUMBER_5184(new BigDecimal("5184")), + + NUMBER_5185(new BigDecimal("5185")), + + NUMBER_5186(new BigDecimal("5186")), + + NUMBER_5187(new BigDecimal("5187")), + + NUMBER_5188(new BigDecimal("5188")), + + NUMBER_5189(new BigDecimal("5189")), + + NUMBER_5190(new BigDecimal("5190")), + + NUMBER_5191(new BigDecimal("5191")), + + NUMBER_5196(new BigDecimal("5196")), + + NUMBER_5198(new BigDecimal("5198")), + + NUMBER_5199(new BigDecimal("5199")), + + NUMBER_5200(new BigDecimal("5200")), + + NUMBER_5201(new BigDecimal("5201")), + + NUMBER_5202(new BigDecimal("5202")), + + NUMBER_5203(new BigDecimal("5203")), + + NUMBER_5204(new BigDecimal("5204")), + + NUMBER_5205(new BigDecimal("5205")), + + NUMBER_5206(new BigDecimal("5206")), + + NUMBER_5207(new BigDecimal("5207")), + + NUMBER_5211(new BigDecimal("5211")), + + NUMBER_5212(new BigDecimal("5212")), + + NUMBER_90001(new BigDecimal("90001")), + + NUMBER_90002(new BigDecimal("90002")), + + NUMBER_90003(new BigDecimal("90003")), + + NUMBER_90004(new BigDecimal("90004")), + + NUMBER_90005(new BigDecimal("90005")), + + NUMBER_90006(new BigDecimal("90006")), + + NUMBER_90007(new BigDecimal("90007")), + + NUMBER_90008(new BigDecimal("90008")), + + NUMBER_90009(new BigDecimal("90009")), + + NUMBER_90010(new BigDecimal("90010")), + + NUMBER_90011(new BigDecimal("90011")); + + private BigDecimal value; + + CodeEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CodeEnum fromValue(BigDecimal value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CodeEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private CodeEnum code; + + public static final String SERIALIZED_NAME_QUANTITY = "quantity"; + @SerializedName(SERIALIZED_NAME_QUANTITY) + private BigDecimal quantity; + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner code(CodeEnum code) { + + this.code = code; + return this; + } + + /** + * The code indicating the room amenity type.<p>See also <a href=\"#unitand-room-amenity-type-codes\">in the appendix</a>.</p> + * @return code + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The code indicating the room amenity type.

See also in the appendix.

") + + public CodeEnum getCode() { + return code; + } + + + public void setCode(CodeEnum code) { + this.code = code; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner quantity(BigDecimal quantity) { + + this.quantity = quantity; + return this; + } + + /** + * The quantity of this amenity type in this room. + * @return quantity + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1", required = true, value = "The quantity of this amenity type in this room.") + + public BigDecimal getQuantity() { + return quantity; + } + + + public void setQuantity(BigDecimal quantity) { + this.quantity = quantity; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner = (PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner) o; + return Objects.equals(this.code, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.code) && + Objects.equals(this.quantity, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.quantity); + } + + @Override + public int hashCode() { + return Objects.hash(code, quantity); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("code"); + openapiFields.add("quantity"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("code"); + openapiRequiredFields.add("quantity"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.java new file mode 100644 index 0000000..b0178bd --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.java @@ -0,0 +1,2879 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner { + public static final String SERIALIZED_NAME_IS_MAIN_IMAGE = "isMainImage"; + @SerializedName(SERIALIZED_NAME_IS_MAIN_IMAGE) + private Boolean isMainImage; + + public static final String SERIALIZED_NAME_URL = "url"; + @SerializedName(SERIALIZED_NAME_URL) + private String url; + + public static final String SERIALIZED_NAME_SORT_ORDER = "sortOrder"; + @SerializedName(SERIALIZED_NAME_SORT_ORDER) + private BigDecimal sortOrder; + + /** + * Gets or Sets tagList + */ + @JsonAdapter(TagListEnum.Adapter.class) + public enum TagListEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_70(new BigDecimal("70")), + + NUMBER_74(new BigDecimal("74")), + + NUMBER_81(new BigDecimal("81")), + + NUMBER_82(new BigDecimal("82")), + + NUMBER_87(new BigDecimal("87")), + + NUMBER_89(new BigDecimal("89")), + + NUMBER_90(new BigDecimal("90")), + + NUMBER_94(new BigDecimal("94")), + + NUMBER_95(new BigDecimal("95")), + + NUMBER_96(new BigDecimal("96")), + + NUMBER_97(new BigDecimal("97")), + + NUMBER_100(new BigDecimal("100")), + + NUMBER_102(new BigDecimal("102")), + + NUMBER_103(new BigDecimal("103")), + + NUMBER_104(new BigDecimal("104")), + + NUMBER_106(new BigDecimal("106")), + + NUMBER_107(new BigDecimal("107")), + + NUMBER_108(new BigDecimal("108")), + + NUMBER_112(new BigDecimal("112")), + + NUMBER_113(new BigDecimal("113")), + + NUMBER_114(new BigDecimal("114")), + + NUMBER_115(new BigDecimal("115")), + + NUMBER_116(new BigDecimal("116")), + + NUMBER_124(new BigDecimal("124")), + + NUMBER_125(new BigDecimal("125")), + + NUMBER_128(new BigDecimal("128")), + + NUMBER_131(new BigDecimal("131")), + + NUMBER_133(new BigDecimal("133")), + + NUMBER_134(new BigDecimal("134")), + + NUMBER_137(new BigDecimal("137")), + + NUMBER_141(new BigDecimal("141")), + + NUMBER_143(new BigDecimal("143")), + + NUMBER_153(new BigDecimal("153")), + + NUMBER_154(new BigDecimal("154")), + + NUMBER_155(new BigDecimal("155")), + + NUMBER_156(new BigDecimal("156")), + + NUMBER_157(new BigDecimal("157")), + + NUMBER_158(new BigDecimal("158")), + + NUMBER_159(new BigDecimal("159")), + + NUMBER_160(new BigDecimal("160")), + + NUMBER_161(new BigDecimal("161")), + + NUMBER_164(new BigDecimal("164")), + + NUMBER_165(new BigDecimal("165")), + + NUMBER_167(new BigDecimal("167")), + + NUMBER_172(new BigDecimal("172")), + + NUMBER_173(new BigDecimal("173")), + + NUMBER_177(new BigDecimal("177")), + + NUMBER_178(new BigDecimal("178")), + + NUMBER_179(new BigDecimal("179")), + + NUMBER_182(new BigDecimal("182")), + + NUMBER_183(new BigDecimal("183")), + + NUMBER_184(new BigDecimal("184")), + + NUMBER_185(new BigDecimal("185")), + + NUMBER_186(new BigDecimal("186")), + + NUMBER_187(new BigDecimal("187")), + + NUMBER_188(new BigDecimal("188")), + + NUMBER_189(new BigDecimal("189")), + + NUMBER_190(new BigDecimal("190")), + + NUMBER_191(new BigDecimal("191")), + + NUMBER_192(new BigDecimal("192")), + + NUMBER_193(new BigDecimal("193")), + + NUMBER_194(new BigDecimal("194")), + + NUMBER_197(new BigDecimal("197")), + + NUMBER_198(new BigDecimal("198")), + + NUMBER_199(new BigDecimal("199")), + + NUMBER_204(new BigDecimal("204")), + + NUMBER_205(new BigDecimal("205")), + + NUMBER_240(new BigDecimal("240")), + + NUMBER_241(new BigDecimal("241")), + + NUMBER_242(new BigDecimal("242")), + + NUMBER_245(new BigDecimal("245")), + + NUMBER_246(new BigDecimal("246")), + + NUMBER_247(new BigDecimal("247")), + + NUMBER_248(new BigDecimal("248")), + + NUMBER_249(new BigDecimal("249")), + + NUMBER_250(new BigDecimal("250")), + + NUMBER_251(new BigDecimal("251")), + + NUMBER_252(new BigDecimal("252")), + + NUMBER_253(new BigDecimal("253")), + + NUMBER_254(new BigDecimal("254")), + + NUMBER_255(new BigDecimal("255")), + + NUMBER_256(new BigDecimal("256")), + + NUMBER_257(new BigDecimal("257")), + + NUMBER_258(new BigDecimal("258")), + + NUMBER_259(new BigDecimal("259")), + + NUMBER_260(new BigDecimal("260")), + + NUMBER_261(new BigDecimal("261")), + + NUMBER_262(new BigDecimal("262")), + + NUMBER_263(new BigDecimal("263")), + + NUMBER_264(new BigDecimal("264")), + + NUMBER_265(new BigDecimal("265")), + + NUMBER_266(new BigDecimal("266")), + + NUMBER_267(new BigDecimal("267")), + + NUMBER_268(new BigDecimal("268")), + + NUMBER_269(new BigDecimal("269")), + + NUMBER_270(new BigDecimal("270")), + + NUMBER_271(new BigDecimal("271")), + + NUMBER_272(new BigDecimal("272")), + + NUMBER_273(new BigDecimal("273")), + + NUMBER_276(new BigDecimal("276")), + + NUMBER_277(new BigDecimal("277")), + + NUMBER_278(new BigDecimal("278")), + + NUMBER_279(new BigDecimal("279")), + + NUMBER_280(new BigDecimal("280")), + + NUMBER_281(new BigDecimal("281")), + + NUMBER_282(new BigDecimal("282")), + + NUMBER_283(new BigDecimal("283")), + + NUMBER_284(new BigDecimal("284")), + + NUMBER_285(new BigDecimal("285")), + + NUMBER_286(new BigDecimal("286")), + + NUMBER_287(new BigDecimal("287")), + + NUMBER_289(new BigDecimal("289")), + + NUMBER_290(new BigDecimal("290")), + + NUMBER_291(new BigDecimal("291")); + + private BigDecimal value; + + TagListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TagListEnum fromValue(BigDecimal value) { + for (TagListEnum b : TagListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TagListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TagListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TagListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_TAG_LIST = "tagList"; + @SerializedName(SERIALIZED_NAME_TAG_LIST) + private List tagList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_MODERATION_LABEL_LIST = "moderationLabelList"; + @SerializedName(SERIALIZED_NAME_MODERATION_LABEL_LIST) + private List moderationLabelList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_DETECTION_LABEL_LIST = "detectionLabelList"; + @SerializedName(SERIALIZED_NAME_DETECTION_LABEL_LIST) + private List detectionLabelList = null; + + /** + * Gets or Sets propertyAmenityList + */ + @JsonAdapter(PropertyAmenityListEnum.Adapter.class) + public enum PropertyAmenityListEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_30(new BigDecimal("30")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")), + + NUMBER_34(new BigDecimal("34")), + + NUMBER_35(new BigDecimal("35")), + + NUMBER_36(new BigDecimal("36")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_38(new BigDecimal("38")), + + NUMBER_39(new BigDecimal("39")), + + NUMBER_40(new BigDecimal("40")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_44(new BigDecimal("44")), + + NUMBER_45(new BigDecimal("45")), + + NUMBER_46(new BigDecimal("46")), + + NUMBER_47(new BigDecimal("47")), + + NUMBER_48(new BigDecimal("48")), + + NUMBER_49(new BigDecimal("49")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_51(new BigDecimal("51")), + + NUMBER_52(new BigDecimal("52")), + + NUMBER_53(new BigDecimal("53")), + + NUMBER_54(new BigDecimal("54")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_56(new BigDecimal("56")), + + NUMBER_57(new BigDecimal("57")), + + NUMBER_58(new BigDecimal("58")), + + NUMBER_59(new BigDecimal("59")), + + NUMBER_60(new BigDecimal("60")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_62(new BigDecimal("62")), + + NUMBER_63(new BigDecimal("63")), + + NUMBER_64(new BigDecimal("64")), + + NUMBER_65(new BigDecimal("65")), + + NUMBER_66(new BigDecimal("66")), + + NUMBER_67(new BigDecimal("67")), + + NUMBER_68(new BigDecimal("68")), + + NUMBER_69(new BigDecimal("69")), + + NUMBER_70(new BigDecimal("70")), + + NUMBER_71(new BigDecimal("71")), + + NUMBER_72(new BigDecimal("72")), + + NUMBER_73(new BigDecimal("73")), + + NUMBER_74(new BigDecimal("74")), + + NUMBER_75(new BigDecimal("75")), + + NUMBER_76(new BigDecimal("76")), + + NUMBER_77(new BigDecimal("77")), + + NUMBER_78(new BigDecimal("78")), + + NUMBER_79(new BigDecimal("79")), + + NUMBER_80(new BigDecimal("80")), + + NUMBER_81(new BigDecimal("81")), + + NUMBER_82(new BigDecimal("82")), + + NUMBER_83(new BigDecimal("83")), + + NUMBER_84(new BigDecimal("84")), + + NUMBER_85(new BigDecimal("85")), + + NUMBER_86(new BigDecimal("86")), + + NUMBER_87(new BigDecimal("87")), + + NUMBER_88(new BigDecimal("88")), + + NUMBER_89(new BigDecimal("89")), + + NUMBER_90(new BigDecimal("90")), + + NUMBER_91(new BigDecimal("91")), + + NUMBER_92(new BigDecimal("92")), + + NUMBER_93(new BigDecimal("93")), + + NUMBER_94(new BigDecimal("94")), + + NUMBER_95(new BigDecimal("95")), + + NUMBER_96(new BigDecimal("96")), + + NUMBER_97(new BigDecimal("97")), + + NUMBER_98(new BigDecimal("98")), + + NUMBER_99(new BigDecimal("99")), + + NUMBER_100(new BigDecimal("100")), + + NUMBER_101(new BigDecimal("101")), + + NUMBER_102(new BigDecimal("102")), + + NUMBER_103(new BigDecimal("103")), + + NUMBER_104(new BigDecimal("104")), + + NUMBER_105(new BigDecimal("105")), + + NUMBER_106(new BigDecimal("106")), + + NUMBER_107(new BigDecimal("107")), + + NUMBER_108(new BigDecimal("108")), + + NUMBER_109(new BigDecimal("109")), + + NUMBER_110(new BigDecimal("110")), + + NUMBER_111(new BigDecimal("111")), + + NUMBER_112(new BigDecimal("112")), + + NUMBER_113(new BigDecimal("113")), + + NUMBER_114(new BigDecimal("114")), + + NUMBER_115(new BigDecimal("115")), + + NUMBER_116(new BigDecimal("116")), + + NUMBER_117(new BigDecimal("117")), + + NUMBER_118(new BigDecimal("118")), + + NUMBER_119(new BigDecimal("119")), + + NUMBER_120(new BigDecimal("120")), + + NUMBER_121(new BigDecimal("121")), + + NUMBER_122(new BigDecimal("122")), + + NUMBER_123(new BigDecimal("123")), + + NUMBER_124(new BigDecimal("124")), + + NUMBER_125(new BigDecimal("125")), + + NUMBER_126(new BigDecimal("126")), + + NUMBER_127(new BigDecimal("127")), + + NUMBER_128(new BigDecimal("128")), + + NUMBER_129(new BigDecimal("129")), + + NUMBER_130(new BigDecimal("130")), + + NUMBER_131(new BigDecimal("131")), + + NUMBER_132(new BigDecimal("132")), + + NUMBER_133(new BigDecimal("133")), + + NUMBER_134(new BigDecimal("134")), + + NUMBER_135(new BigDecimal("135")), + + NUMBER_136(new BigDecimal("136")), + + NUMBER_137(new BigDecimal("137")), + + NUMBER_138(new BigDecimal("138")), + + NUMBER_139(new BigDecimal("139")), + + NUMBER_140(new BigDecimal("140")), + + NUMBER_141(new BigDecimal("141")), + + NUMBER_142(new BigDecimal("142")), + + NUMBER_143(new BigDecimal("143")), + + NUMBER_144(new BigDecimal("144")), + + NUMBER_145(new BigDecimal("145")), + + NUMBER_146(new BigDecimal("146")), + + NUMBER_147(new BigDecimal("147")), + + NUMBER_148(new BigDecimal("148")), + + NUMBER_149(new BigDecimal("149")), + + NUMBER_150(new BigDecimal("150")), + + NUMBER_151(new BigDecimal("151")), + + NUMBER_152(new BigDecimal("152")), + + NUMBER_153(new BigDecimal("153")), + + NUMBER_154(new BigDecimal("154")), + + NUMBER_155(new BigDecimal("155")), + + NUMBER_156(new BigDecimal("156")), + + NUMBER_157(new BigDecimal("157")), + + NUMBER_158(new BigDecimal("158")), + + NUMBER_159(new BigDecimal("159")), + + NUMBER_160(new BigDecimal("160")), + + NUMBER_161(new BigDecimal("161")), + + NUMBER_162(new BigDecimal("162")), + + NUMBER_163(new BigDecimal("163")), + + NUMBER_164(new BigDecimal("164")), + + NUMBER_165(new BigDecimal("165")), + + NUMBER_166(new BigDecimal("166")), + + NUMBER_167(new BigDecimal("167")), + + NUMBER_168(new BigDecimal("168")), + + NUMBER_169(new BigDecimal("169")), + + NUMBER_170(new BigDecimal("170")), + + NUMBER_171(new BigDecimal("171")), + + NUMBER_172(new BigDecimal("172")), + + NUMBER_173(new BigDecimal("173")), + + NUMBER_174(new BigDecimal("174")), + + NUMBER_175(new BigDecimal("175")), + + NUMBER_176(new BigDecimal("176")), + + NUMBER_177(new BigDecimal("177")), + + NUMBER_178(new BigDecimal("178")), + + NUMBER_179(new BigDecimal("179")), + + NUMBER_180(new BigDecimal("180")), + + NUMBER_181(new BigDecimal("181")), + + NUMBER_182(new BigDecimal("182")), + + NUMBER_183(new BigDecimal("183")), + + NUMBER_184(new BigDecimal("184")), + + NUMBER_185(new BigDecimal("185")), + + NUMBER_186(new BigDecimal("186")), + + NUMBER_187(new BigDecimal("187")), + + NUMBER_188(new BigDecimal("188")), + + NUMBER_189(new BigDecimal("189")), + + NUMBER_190(new BigDecimal("190")), + + NUMBER_191(new BigDecimal("191")), + + NUMBER_192(new BigDecimal("192")), + + NUMBER_193(new BigDecimal("193")), + + NUMBER_194(new BigDecimal("194")), + + NUMBER_195(new BigDecimal("195")), + + NUMBER_196(new BigDecimal("196")), + + NUMBER_197(new BigDecimal("197")), + + NUMBER_198(new BigDecimal("198")), + + NUMBER_199(new BigDecimal("199")), + + NUMBER_200(new BigDecimal("200")), + + NUMBER_201(new BigDecimal("201")), + + NUMBER_202(new BigDecimal("202")), + + NUMBER_203(new BigDecimal("203")), + + NUMBER_204(new BigDecimal("204")), + + NUMBER_205(new BigDecimal("205")), + + NUMBER_206(new BigDecimal("206")), + + NUMBER_207(new BigDecimal("207")), + + NUMBER_208(new BigDecimal("208")), + + NUMBER_209(new BigDecimal("209")), + + NUMBER_210(new BigDecimal("210")), + + NUMBER_211(new BigDecimal("211")), + + NUMBER_212(new BigDecimal("212")), + + NUMBER_213(new BigDecimal("213")), + + NUMBER_214(new BigDecimal("214")), + + NUMBER_215(new BigDecimal("215")), + + NUMBER_216(new BigDecimal("216")), + + NUMBER_217(new BigDecimal("217")), + + NUMBER_218(new BigDecimal("218")), + + NUMBER_219(new BigDecimal("219")), + + NUMBER_220(new BigDecimal("220")), + + NUMBER_221(new BigDecimal("221")), + + NUMBER_222(new BigDecimal("222")), + + NUMBER_223(new BigDecimal("223")), + + NUMBER_224(new BigDecimal("224")), + + NUMBER_225(new BigDecimal("225")), + + NUMBER_226(new BigDecimal("226")), + + NUMBER_227(new BigDecimal("227")), + + NUMBER_228(new BigDecimal("228")), + + NUMBER_229(new BigDecimal("229")), + + NUMBER_230(new BigDecimal("230")), + + NUMBER_231(new BigDecimal("231")), + + NUMBER_232(new BigDecimal("232")), + + NUMBER_233(new BigDecimal("233")), + + NUMBER_234(new BigDecimal("234")), + + NUMBER_235(new BigDecimal("235")), + + NUMBER_236(new BigDecimal("236")), + + NUMBER_237(new BigDecimal("237")), + + NUMBER_238(new BigDecimal("238")), + + NUMBER_239(new BigDecimal("239")), + + NUMBER_240(new BigDecimal("240")), + + NUMBER_241(new BigDecimal("241")), + + NUMBER_242(new BigDecimal("242")), + + NUMBER_243(new BigDecimal("243")), + + NUMBER_244(new BigDecimal("244")), + + NUMBER_245(new BigDecimal("245")), + + NUMBER_246(new BigDecimal("246")), + + NUMBER_247(new BigDecimal("247")), + + NUMBER_248(new BigDecimal("248")), + + NUMBER_249(new BigDecimal("249")), + + NUMBER_250(new BigDecimal("250")), + + NUMBER_251(new BigDecimal("251")), + + NUMBER_252(new BigDecimal("252")), + + NUMBER_253(new BigDecimal("253")), + + NUMBER_254(new BigDecimal("254")), + + NUMBER_255(new BigDecimal("255")), + + NUMBER_256(new BigDecimal("256")), + + NUMBER_257(new BigDecimal("257")), + + NUMBER_258(new BigDecimal("258")), + + NUMBER_259(new BigDecimal("259")), + + NUMBER_260(new BigDecimal("260")), + + NUMBER_261(new BigDecimal("261")), + + NUMBER_262(new BigDecimal("262")), + + NUMBER_263(new BigDecimal("263")), + + NUMBER_264(new BigDecimal("264")), + + NUMBER_265(new BigDecimal("265")), + + NUMBER_266(new BigDecimal("266")), + + NUMBER_267(new BigDecimal("267")), + + NUMBER_268(new BigDecimal("268")), + + NUMBER_269(new BigDecimal("269")), + + NUMBER_270(new BigDecimal("270")), + + NUMBER_271(new BigDecimal("271")), + + NUMBER_272(new BigDecimal("272")), + + NUMBER_273(new BigDecimal("273")), + + NUMBER_274(new BigDecimal("274")), + + NUMBER_275(new BigDecimal("275")), + + NUMBER_276(new BigDecimal("276")), + + NUMBER_277(new BigDecimal("277")), + + NUMBER_278(new BigDecimal("278")), + + NUMBER_279(new BigDecimal("279")), + + NUMBER_280(new BigDecimal("280")), + + NUMBER_281(new BigDecimal("281")), + + NUMBER_282(new BigDecimal("282")), + + NUMBER_283(new BigDecimal("283")), + + NUMBER_284(new BigDecimal("284")), + + NUMBER_285(new BigDecimal("285")), + + NUMBER_286(new BigDecimal("286")), + + NUMBER_287(new BigDecimal("287")), + + NUMBER_288(new BigDecimal("288")), + + NUMBER_289(new BigDecimal("289")), + + NUMBER_290(new BigDecimal("290")), + + NUMBER_291(new BigDecimal("291")), + + NUMBER_292(new BigDecimal("292")), + + NUMBER_293(new BigDecimal("293")), + + NUMBER_294(new BigDecimal("294")), + + NUMBER_295(new BigDecimal("295")), + + NUMBER_296(new BigDecimal("296")), + + NUMBER_297(new BigDecimal("297")), + + NUMBER_298(new BigDecimal("298")), + + NUMBER_299(new BigDecimal("299")), + + NUMBER_300(new BigDecimal("300")), + + NUMBER_301(new BigDecimal("301")), + + NUMBER_302(new BigDecimal("302")), + + NUMBER_303(new BigDecimal("303")), + + NUMBER_304(new BigDecimal("304")), + + NUMBER_305(new BigDecimal("305")), + + NUMBER_306(new BigDecimal("306")), + + NUMBER_307(new BigDecimal("307")), + + NUMBER_308(new BigDecimal("308")), + + NUMBER_309(new BigDecimal("309")), + + NUMBER_310(new BigDecimal("310")), + + NUMBER_311(new BigDecimal("311")), + + NUMBER_312(new BigDecimal("312")), + + NUMBER_313(new BigDecimal("313")), + + NUMBER_314(new BigDecimal("314")), + + NUMBER_315(new BigDecimal("315")), + + NUMBER_316(new BigDecimal("316")), + + NUMBER_317(new BigDecimal("317")), + + NUMBER_318(new BigDecimal("318")), + + NUMBER_319(new BigDecimal("319")), + + NUMBER_320(new BigDecimal("320")), + + NUMBER_321(new BigDecimal("321")), + + NUMBER_322(new BigDecimal("322")), + + NUMBER_323(new BigDecimal("323")), + + NUMBER_324(new BigDecimal("324")), + + NUMBER_325(new BigDecimal("325")), + + NUMBER_326(new BigDecimal("326")), + + NUMBER_327(new BigDecimal("327")), + + NUMBER_328(new BigDecimal("328")), + + NUMBER_329(new BigDecimal("329")), + + NUMBER_331(new BigDecimal("331")), + + NUMBER_332(new BigDecimal("332")), + + NUMBER_333(new BigDecimal("333")), + + NUMBER_334(new BigDecimal("334")), + + NUMBER_335(new BigDecimal("335")), + + NUMBER_336(new BigDecimal("336")), + + NUMBER_337(new BigDecimal("337")), + + NUMBER_338(new BigDecimal("338")), + + NUMBER_339(new BigDecimal("339")), + + NUMBER_340(new BigDecimal("340")), + + NUMBER_341(new BigDecimal("341")), + + NUMBER_342(new BigDecimal("342")), + + NUMBER_343(new BigDecimal("343")), + + NUMBER_344(new BigDecimal("344")), + + NUMBER_345(new BigDecimal("345")), + + NUMBER_348(new BigDecimal("348")), + + NUMBER_349(new BigDecimal("349")), + + NUMBER_350(new BigDecimal("350")), + + NUMBER_351(new BigDecimal("351")), + + NUMBER_5000(new BigDecimal("5000")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")), + + NUMBER_5009(new BigDecimal("5009")), + + NUMBER_5010(new BigDecimal("5010")), + + NUMBER_5011(new BigDecimal("5011")), + + NUMBER_5012(new BigDecimal("5012")), + + NUMBER_5013(new BigDecimal("5013")), + + NUMBER_5014(new BigDecimal("5014")), + + NUMBER_5015(new BigDecimal("5015")), + + NUMBER_5016(new BigDecimal("5016")), + + NUMBER_5017(new BigDecimal("5017")), + + NUMBER_5018(new BigDecimal("5018")), + + NUMBER_5020(new BigDecimal("5020")), + + NUMBER_5021(new BigDecimal("5021")), + + NUMBER_5022(new BigDecimal("5022")), + + NUMBER_5023(new BigDecimal("5023")), + + NUMBER_5024(new BigDecimal("5024")), + + NUMBER_5025(new BigDecimal("5025")), + + NUMBER_5026(new BigDecimal("5026")), + + NUMBER_5027(new BigDecimal("5027")), + + NUMBER_5028(new BigDecimal("5028")), + + NUMBER_5029(new BigDecimal("5029")), + + NUMBER_5030(new BigDecimal("5030")), + + NUMBER_5031(new BigDecimal("5031")), + + NUMBER_5032(new BigDecimal("5032")), + + NUMBER_5033(new BigDecimal("5033")), + + NUMBER_5034(new BigDecimal("5034")), + + NUMBER_5035(new BigDecimal("5035")), + + NUMBER_5036(new BigDecimal("5036")), + + NUMBER_5037(new BigDecimal("5037")), + + NUMBER_5039(new BigDecimal("5039")), + + NUMBER_5040(new BigDecimal("5040")), + + NUMBER_5041(new BigDecimal("5041")), + + NUMBER_5042(new BigDecimal("5042")), + + NUMBER_5043(new BigDecimal("5043")), + + NUMBER_5044(new BigDecimal("5044")), + + NUMBER_5045(new BigDecimal("5045")), + + NUMBER_5046(new BigDecimal("5046")), + + NUMBER_5047(new BigDecimal("5047")), + + NUMBER_5048(new BigDecimal("5048")), + + NUMBER_5049(new BigDecimal("5049")), + + NUMBER_5050(new BigDecimal("5050")), + + NUMBER_5051(new BigDecimal("5051")), + + NUMBER_5052(new BigDecimal("5052")), + + NUMBER_5053(new BigDecimal("5053")), + + NUMBER_5054(new BigDecimal("5054")), + + NUMBER_5055(new BigDecimal("5055")), + + NUMBER_5056(new BigDecimal("5056")), + + NUMBER_5057(new BigDecimal("5057")), + + NUMBER_5058(new BigDecimal("5058")), + + NUMBER_5059(new BigDecimal("5059")), + + NUMBER_5060(new BigDecimal("5060")), + + NUMBER_5061(new BigDecimal("5061")), + + NUMBER_5062(new BigDecimal("5062")), + + NUMBER_5063(new BigDecimal("5063")), + + NUMBER_5064(new BigDecimal("5064")), + + NUMBER_5065(new BigDecimal("5065")), + + NUMBER_5066(new BigDecimal("5066")), + + NUMBER_5067(new BigDecimal("5067")), + + NUMBER_5068(new BigDecimal("5068")), + + NUMBER_5069(new BigDecimal("5069")), + + NUMBER_5070(new BigDecimal("5070")), + + NUMBER_5071(new BigDecimal("5071")), + + NUMBER_5072(new BigDecimal("5072")), + + NUMBER_5073(new BigDecimal("5073")), + + NUMBER_5074(new BigDecimal("5074")), + + NUMBER_5075(new BigDecimal("5075")), + + NUMBER_5076(new BigDecimal("5076")), + + NUMBER_5077(new BigDecimal("5077")), + + NUMBER_5078(new BigDecimal("5078")), + + NUMBER_5079(new BigDecimal("5079")), + + NUMBER_5080(new BigDecimal("5080")), + + NUMBER_5081(new BigDecimal("5081")), + + NUMBER_5082(new BigDecimal("5082")), + + NUMBER_5083(new BigDecimal("5083")), + + NUMBER_5084(new BigDecimal("5084")), + + NUMBER_5085(new BigDecimal("5085")), + + NUMBER_5086(new BigDecimal("5086")), + + NUMBER_5087(new BigDecimal("5087")), + + NUMBER_5088(new BigDecimal("5088")), + + NUMBER_5089(new BigDecimal("5089")), + + NUMBER_5090(new BigDecimal("5090")), + + NUMBER_5091(new BigDecimal("5091")), + + NUMBER_5092(new BigDecimal("5092")), + + NUMBER_5093(new BigDecimal("5093")), + + NUMBER_5094(new BigDecimal("5094")), + + NUMBER_5095(new BigDecimal("5095")), + + NUMBER_5096(new BigDecimal("5096")), + + NUMBER_5097(new BigDecimal("5097")), + + NUMBER_5098(new BigDecimal("5098")), + + NUMBER_5099(new BigDecimal("5099")), + + NUMBER_5100(new BigDecimal("5100")), + + NUMBER_5101(new BigDecimal("5101")), + + NUMBER_5102(new BigDecimal("5102")), + + NUMBER_5103(new BigDecimal("5103")), + + NUMBER_5104(new BigDecimal("5104")), + + NUMBER_5105(new BigDecimal("5105")), + + NUMBER_5106(new BigDecimal("5106")), + + NUMBER_5107(new BigDecimal("5107")), + + NUMBER_5108(new BigDecimal("5108")), + + NUMBER_5109(new BigDecimal("5109")), + + NUMBER_5110(new BigDecimal("5110")), + + NUMBER_5111(new BigDecimal("5111")), + + NUMBER_5112(new BigDecimal("5112")), + + NUMBER_5113(new BigDecimal("5113")), + + NUMBER_5114(new BigDecimal("5114")), + + NUMBER_5115(new BigDecimal("5115")), + + NUMBER_5116(new BigDecimal("5116")), + + NUMBER_5117(new BigDecimal("5117")), + + NUMBER_5118(new BigDecimal("5118")), + + NUMBER_5119(new BigDecimal("5119")), + + NUMBER_5120(new BigDecimal("5120")), + + NUMBER_5121(new BigDecimal("5121")), + + NUMBER_5122(new BigDecimal("5122")), + + NUMBER_5123(new BigDecimal("5123")), + + NUMBER_5124(new BigDecimal("5124")), + + NUMBER_5125(new BigDecimal("5125")), + + NUMBER_5126(new BigDecimal("5126")), + + NUMBER_5127(new BigDecimal("5127")), + + NUMBER_5128(new BigDecimal("5128")), + + NUMBER_5129(new BigDecimal("5129")), + + NUMBER_5130(new BigDecimal("5130")), + + NUMBER_5131(new BigDecimal("5131")), + + NUMBER_5132(new BigDecimal("5132")), + + NUMBER_5133(new BigDecimal("5133")), + + NUMBER_5134(new BigDecimal("5134")), + + NUMBER_5135(new BigDecimal("5135")), + + NUMBER_5136(new BigDecimal("5136")), + + NUMBER_5137(new BigDecimal("5137")), + + NUMBER_5138(new BigDecimal("5138")), + + NUMBER_5139(new BigDecimal("5139")), + + NUMBER_5140(new BigDecimal("5140")), + + NUMBER_5141(new BigDecimal("5141")), + + NUMBER_5142(new BigDecimal("5142")), + + NUMBER_5143(new BigDecimal("5143")), + + NUMBER_5144(new BigDecimal("5144")), + + NUMBER_5145(new BigDecimal("5145")), + + NUMBER_5146(new BigDecimal("5146")), + + NUMBER_5147(new BigDecimal("5147")), + + NUMBER_5148(new BigDecimal("5148")), + + NUMBER_5149(new BigDecimal("5149")), + + NUMBER_5150(new BigDecimal("5150")), + + NUMBER_5151(new BigDecimal("5151")), + + NUMBER_5152(new BigDecimal("5152")), + + NUMBER_5153(new BigDecimal("5153")), + + NUMBER_5154(new BigDecimal("5154")), + + NUMBER_5156(new BigDecimal("5156")), + + NUMBER_5157(new BigDecimal("5157")), + + NUMBER_5158(new BigDecimal("5158")), + + NUMBER_5159(new BigDecimal("5159")), + + NUMBER_5160(new BigDecimal("5160")), + + NUMBER_5161(new BigDecimal("5161")), + + NUMBER_5162(new BigDecimal("5162")), + + NUMBER_5163(new BigDecimal("5163")), + + NUMBER_5164(new BigDecimal("5164")), + + NUMBER_5165(new BigDecimal("5165")), + + NUMBER_5166(new BigDecimal("5166")), + + NUMBER_5167(new BigDecimal("5167")), + + NUMBER_5168(new BigDecimal("5168")), + + NUMBER_5169(new BigDecimal("5169")), + + NUMBER_5170(new BigDecimal("5170")), + + NUMBER_5171(new BigDecimal("5171")), + + NUMBER_5172(new BigDecimal("5172")), + + NUMBER_5173(new BigDecimal("5173")), + + NUMBER_5174(new BigDecimal("5174")), + + NUMBER_5175(new BigDecimal("5175")), + + NUMBER_5176(new BigDecimal("5176")), + + NUMBER_5177(new BigDecimal("5177")), + + NUMBER_5178(new BigDecimal("5178")), + + NUMBER_6000(new BigDecimal("6000")), + + NUMBER_6001(new BigDecimal("6001")), + + NUMBER_90001(new BigDecimal("90001")); + + private BigDecimal value; + + PropertyAmenityListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PropertyAmenityListEnum fromValue(BigDecimal value) { + for (PropertyAmenityListEnum b : PropertyAmenityListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final PropertyAmenityListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PropertyAmenityListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PropertyAmenityListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_PROPERTY_AMENITY_LIST = "propertyAmenityList"; + @SerializedName(SERIALIZED_NAME_PROPERTY_AMENITY_LIST) + private List propertyAmenityList = new ArrayList<>(); + + /** + * Gets or Sets roomAmenityList + */ + @JsonAdapter(RoomAmenityListEnum.Adapter.class) + public enum RoomAmenityListEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_30(new BigDecimal("30")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")), + + NUMBER_34(new BigDecimal("34")), + + NUMBER_35(new BigDecimal("35")), + + NUMBER_36(new BigDecimal("36")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_38(new BigDecimal("38")), + + NUMBER_39(new BigDecimal("39")), + + NUMBER_40(new BigDecimal("40")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_44(new BigDecimal("44")), + + NUMBER_45(new BigDecimal("45")), + + NUMBER_46(new BigDecimal("46")), + + NUMBER_47(new BigDecimal("47")), + + NUMBER_48(new BigDecimal("48")), + + NUMBER_49(new BigDecimal("49")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_51(new BigDecimal("51")), + + NUMBER_52(new BigDecimal("52")), + + NUMBER_53(new BigDecimal("53")), + + NUMBER_54(new BigDecimal("54")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_56(new BigDecimal("56")), + + NUMBER_57(new BigDecimal("57")), + + NUMBER_58(new BigDecimal("58")), + + NUMBER_59(new BigDecimal("59")), + + NUMBER_60(new BigDecimal("60")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_62(new BigDecimal("62")), + + NUMBER_63(new BigDecimal("63")), + + NUMBER_64(new BigDecimal("64")), + + NUMBER_65(new BigDecimal("65")), + + NUMBER_66(new BigDecimal("66")), + + NUMBER_67(new BigDecimal("67")), + + NUMBER_68(new BigDecimal("68")), + + NUMBER_69(new BigDecimal("69")), + + NUMBER_70(new BigDecimal("70")), + + NUMBER_71(new BigDecimal("71")), + + NUMBER_72(new BigDecimal("72")), + + NUMBER_73(new BigDecimal("73")), + + NUMBER_74(new BigDecimal("74")), + + NUMBER_75(new BigDecimal("75")), + + NUMBER_76(new BigDecimal("76")), + + NUMBER_77(new BigDecimal("77")), + + NUMBER_78(new BigDecimal("78")), + + NUMBER_79(new BigDecimal("79")), + + NUMBER_80(new BigDecimal("80")), + + NUMBER_81(new BigDecimal("81")), + + NUMBER_82(new BigDecimal("82")), + + NUMBER_83(new BigDecimal("83")), + + NUMBER_84(new BigDecimal("84")), + + NUMBER_85(new BigDecimal("85")), + + NUMBER_86(new BigDecimal("86")), + + NUMBER_87(new BigDecimal("87")), + + NUMBER_88(new BigDecimal("88")), + + NUMBER_89(new BigDecimal("89")), + + NUMBER_90(new BigDecimal("90")), + + NUMBER_91(new BigDecimal("91")), + + NUMBER_92(new BigDecimal("92")), + + NUMBER_93(new BigDecimal("93")), + + NUMBER_94(new BigDecimal("94")), + + NUMBER_95(new BigDecimal("95")), + + NUMBER_96(new BigDecimal("96")), + + NUMBER_97(new BigDecimal("97")), + + NUMBER_98(new BigDecimal("98")), + + NUMBER_99(new BigDecimal("99")), + + NUMBER_100(new BigDecimal("100")), + + NUMBER_101(new BigDecimal("101")), + + NUMBER_102(new BigDecimal("102")), + + NUMBER_103(new BigDecimal("103")), + + NUMBER_104(new BigDecimal("104")), + + NUMBER_105(new BigDecimal("105")), + + NUMBER_106(new BigDecimal("106")), + + NUMBER_107(new BigDecimal("107")), + + NUMBER_108(new BigDecimal("108")), + + NUMBER_109(new BigDecimal("109")), + + NUMBER_110(new BigDecimal("110")), + + NUMBER_111(new BigDecimal("111")), + + NUMBER_112(new BigDecimal("112")), + + NUMBER_113(new BigDecimal("113")), + + NUMBER_114(new BigDecimal("114")), + + NUMBER_115(new BigDecimal("115")), + + NUMBER_116(new BigDecimal("116")), + + NUMBER_117(new BigDecimal("117")), + + NUMBER_118(new BigDecimal("118")), + + NUMBER_119(new BigDecimal("119")), + + NUMBER_120(new BigDecimal("120")), + + NUMBER_121(new BigDecimal("121")), + + NUMBER_122(new BigDecimal("122")), + + NUMBER_123(new BigDecimal("123")), + + NUMBER_124(new BigDecimal("124")), + + NUMBER_125(new BigDecimal("125")), + + NUMBER_126(new BigDecimal("126")), + + NUMBER_127(new BigDecimal("127")), + + NUMBER_128(new BigDecimal("128")), + + NUMBER_129(new BigDecimal("129")), + + NUMBER_130(new BigDecimal("130")), + + NUMBER_131(new BigDecimal("131")), + + NUMBER_132(new BigDecimal("132")), + + NUMBER_133(new BigDecimal("133")), + + NUMBER_134(new BigDecimal("134")), + + NUMBER_135(new BigDecimal("135")), + + NUMBER_136(new BigDecimal("136")), + + NUMBER_137(new BigDecimal("137")), + + NUMBER_138(new BigDecimal("138")), + + NUMBER_139(new BigDecimal("139")), + + NUMBER_140(new BigDecimal("140")), + + NUMBER_141(new BigDecimal("141")), + + NUMBER_142(new BigDecimal("142")), + + NUMBER_143(new BigDecimal("143")), + + NUMBER_144(new BigDecimal("144")), + + NUMBER_145(new BigDecimal("145")), + + NUMBER_146(new BigDecimal("146")), + + NUMBER_147(new BigDecimal("147")), + + NUMBER_148(new BigDecimal("148")), + + NUMBER_149(new BigDecimal("149")), + + NUMBER_150(new BigDecimal("150")), + + NUMBER_151(new BigDecimal("151")), + + NUMBER_152(new BigDecimal("152")), + + NUMBER_153(new BigDecimal("153")), + + NUMBER_154(new BigDecimal("154")), + + NUMBER_155(new BigDecimal("155")), + + NUMBER_156(new BigDecimal("156")), + + NUMBER_157(new BigDecimal("157")), + + NUMBER_158(new BigDecimal("158")), + + NUMBER_159(new BigDecimal("159")), + + NUMBER_160(new BigDecimal("160")), + + NUMBER_161(new BigDecimal("161")), + + NUMBER_162(new BigDecimal("162")), + + NUMBER_163(new BigDecimal("163")), + + NUMBER_164(new BigDecimal("164")), + + NUMBER_165(new BigDecimal("165")), + + NUMBER_166(new BigDecimal("166")), + + NUMBER_167(new BigDecimal("167")), + + NUMBER_168(new BigDecimal("168")), + + NUMBER_169(new BigDecimal("169")), + + NUMBER_170(new BigDecimal("170")), + + NUMBER_171(new BigDecimal("171")), + + NUMBER_172(new BigDecimal("172")), + + NUMBER_173(new BigDecimal("173")), + + NUMBER_174(new BigDecimal("174")), + + NUMBER_175(new BigDecimal("175")), + + NUMBER_176(new BigDecimal("176")), + + NUMBER_177(new BigDecimal("177")), + + NUMBER_178(new BigDecimal("178")), + + NUMBER_179(new BigDecimal("179")), + + NUMBER_180(new BigDecimal("180")), + + NUMBER_181(new BigDecimal("181")), + + NUMBER_182(new BigDecimal("182")), + + NUMBER_183(new BigDecimal("183")), + + NUMBER_184(new BigDecimal("184")), + + NUMBER_185(new BigDecimal("185")), + + NUMBER_186(new BigDecimal("186")), + + NUMBER_187(new BigDecimal("187")), + + NUMBER_188(new BigDecimal("188")), + + NUMBER_189(new BigDecimal("189")), + + NUMBER_190(new BigDecimal("190")), + + NUMBER_191(new BigDecimal("191")), + + NUMBER_192(new BigDecimal("192")), + + NUMBER_193(new BigDecimal("193")), + + NUMBER_194(new BigDecimal("194")), + + NUMBER_195(new BigDecimal("195")), + + NUMBER_196(new BigDecimal("196")), + + NUMBER_197(new BigDecimal("197")), + + NUMBER_198(new BigDecimal("198")), + + NUMBER_199(new BigDecimal("199")), + + NUMBER_200(new BigDecimal("200")), + + NUMBER_201(new BigDecimal("201")), + + NUMBER_202(new BigDecimal("202")), + + NUMBER_203(new BigDecimal("203")), + + NUMBER_204(new BigDecimal("204")), + + NUMBER_205(new BigDecimal("205")), + + NUMBER_206(new BigDecimal("206")), + + NUMBER_207(new BigDecimal("207")), + + NUMBER_208(new BigDecimal("208")), + + NUMBER_209(new BigDecimal("209")), + + NUMBER_210(new BigDecimal("210")), + + NUMBER_211(new BigDecimal("211")), + + NUMBER_212(new BigDecimal("212")), + + NUMBER_213(new BigDecimal("213")), + + NUMBER_214(new BigDecimal("214")), + + NUMBER_215(new BigDecimal("215")), + + NUMBER_216(new BigDecimal("216")), + + NUMBER_217(new BigDecimal("217")), + + NUMBER_218(new BigDecimal("218")), + + NUMBER_219(new BigDecimal("219")), + + NUMBER_220(new BigDecimal("220")), + + NUMBER_221(new BigDecimal("221")), + + NUMBER_222(new BigDecimal("222")), + + NUMBER_223(new BigDecimal("223")), + + NUMBER_224(new BigDecimal("224")), + + NUMBER_225(new BigDecimal("225")), + + NUMBER_226(new BigDecimal("226")), + + NUMBER_227(new BigDecimal("227")), + + NUMBER_228(new BigDecimal("228")), + + NUMBER_229(new BigDecimal("229")), + + NUMBER_230(new BigDecimal("230")), + + NUMBER_231(new BigDecimal("231")), + + NUMBER_232(new BigDecimal("232")), + + NUMBER_233(new BigDecimal("233")), + + NUMBER_234(new BigDecimal("234")), + + NUMBER_235(new BigDecimal("235")), + + NUMBER_236(new BigDecimal("236")), + + NUMBER_237(new BigDecimal("237")), + + NUMBER_238(new BigDecimal("238")), + + NUMBER_239(new BigDecimal("239")), + + NUMBER_240(new BigDecimal("240")), + + NUMBER_241(new BigDecimal("241")), + + NUMBER_242(new BigDecimal("242")), + + NUMBER_243(new BigDecimal("243")), + + NUMBER_244(new BigDecimal("244")), + + NUMBER_245(new BigDecimal("245")), + + NUMBER_246(new BigDecimal("246")), + + NUMBER_247(new BigDecimal("247")), + + NUMBER_248(new BigDecimal("248")), + + NUMBER_249(new BigDecimal("249")), + + NUMBER_250(new BigDecimal("250")), + + NUMBER_251(new BigDecimal("251")), + + NUMBER_252(new BigDecimal("252")), + + NUMBER_253(new BigDecimal("253")), + + NUMBER_254(new BigDecimal("254")), + + NUMBER_255(new BigDecimal("255")), + + NUMBER_256(new BigDecimal("256")), + + NUMBER_257(new BigDecimal("257")), + + NUMBER_258(new BigDecimal("258")), + + NUMBER_259(new BigDecimal("259")), + + NUMBER_260(new BigDecimal("260")), + + NUMBER_261(new BigDecimal("261")), + + NUMBER_262(new BigDecimal("262")), + + NUMBER_263(new BigDecimal("263")), + + NUMBER_264(new BigDecimal("264")), + + NUMBER_265(new BigDecimal("265")), + + NUMBER_266(new BigDecimal("266")), + + NUMBER_267(new BigDecimal("267")), + + NUMBER_268(new BigDecimal("268")), + + NUMBER_269(new BigDecimal("269")), + + NUMBER_270(new BigDecimal("270")), + + NUMBER_271(new BigDecimal("271")), + + NUMBER_272(new BigDecimal("272")), + + NUMBER_273(new BigDecimal("273")), + + NUMBER_274(new BigDecimal("274")), + + NUMBER_275(new BigDecimal("275")), + + NUMBER_276(new BigDecimal("276")), + + NUMBER_277(new BigDecimal("277")), + + NUMBER_278(new BigDecimal("278")), + + NUMBER_279(new BigDecimal("279")), + + NUMBER_280(new BigDecimal("280")), + + NUMBER_281(new BigDecimal("281")), + + NUMBER_282(new BigDecimal("282")), + + NUMBER_283(new BigDecimal("283")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")), + + NUMBER_5009(new BigDecimal("5009")), + + NUMBER_5010(new BigDecimal("5010")), + + NUMBER_5011(new BigDecimal("5011")), + + NUMBER_5012(new BigDecimal("5012")), + + NUMBER_5013(new BigDecimal("5013")), + + NUMBER_5014(new BigDecimal("5014")), + + NUMBER_5015(new BigDecimal("5015")), + + NUMBER_5016(new BigDecimal("5016")), + + NUMBER_5017(new BigDecimal("5017")), + + NUMBER_5018(new BigDecimal("5018")), + + NUMBER_5019(new BigDecimal("5019")), + + NUMBER_5020(new BigDecimal("5020")), + + NUMBER_5021(new BigDecimal("5021")), + + NUMBER_5022(new BigDecimal("5022")), + + NUMBER_5023(new BigDecimal("5023")), + + NUMBER_5024(new BigDecimal("5024")), + + NUMBER_5025(new BigDecimal("5025")), + + NUMBER_5026(new BigDecimal("5026")), + + NUMBER_5027(new BigDecimal("5027")), + + NUMBER_5028(new BigDecimal("5028")), + + NUMBER_5029(new BigDecimal("5029")), + + NUMBER_5030(new BigDecimal("5030")), + + NUMBER_5031(new BigDecimal("5031")), + + NUMBER_5032(new BigDecimal("5032")), + + NUMBER_5033(new BigDecimal("5033")), + + NUMBER_5034(new BigDecimal("5034")), + + NUMBER_5035(new BigDecimal("5035")), + + NUMBER_5036(new BigDecimal("5036")), + + NUMBER_5037(new BigDecimal("5037")), + + NUMBER_5038(new BigDecimal("5038")), + + NUMBER_5039(new BigDecimal("5039")), + + NUMBER_5040(new BigDecimal("5040")), + + NUMBER_5041(new BigDecimal("5041")), + + NUMBER_5042(new BigDecimal("5042")), + + NUMBER_5043(new BigDecimal("5043")), + + NUMBER_5044(new BigDecimal("5044")), + + NUMBER_5045(new BigDecimal("5045")), + + NUMBER_5046(new BigDecimal("5046")), + + NUMBER_5068(new BigDecimal("5068")), + + NUMBER_5069(new BigDecimal("5069")), + + NUMBER_5070(new BigDecimal("5070")), + + NUMBER_5071(new BigDecimal("5071")), + + NUMBER_5072(new BigDecimal("5072")), + + NUMBER_5073(new BigDecimal("5073")), + + NUMBER_5074(new BigDecimal("5074")), + + NUMBER_5075(new BigDecimal("5075")), + + NUMBER_5076(new BigDecimal("5076")), + + NUMBER_5077(new BigDecimal("5077")), + + NUMBER_5079(new BigDecimal("5079")), + + NUMBER_5080(new BigDecimal("5080")), + + NUMBER_5081(new BigDecimal("5081")), + + NUMBER_5082(new BigDecimal("5082")), + + NUMBER_5083(new BigDecimal("5083")), + + NUMBER_5084(new BigDecimal("5084")), + + NUMBER_5085(new BigDecimal("5085")), + + NUMBER_5086(new BigDecimal("5086")), + + NUMBER_5087(new BigDecimal("5087")), + + NUMBER_5088(new BigDecimal("5088")), + + NUMBER_5089(new BigDecimal("5089")), + + NUMBER_5090(new BigDecimal("5090")), + + NUMBER_5091(new BigDecimal("5091")), + + NUMBER_5092(new BigDecimal("5092")), + + NUMBER_5093(new BigDecimal("5093")), + + NUMBER_5094(new BigDecimal("5094")), + + NUMBER_5095(new BigDecimal("5095")), + + NUMBER_5096(new BigDecimal("5096")), + + NUMBER_5097(new BigDecimal("5097")), + + NUMBER_5098(new BigDecimal("5098")), + + NUMBER_5099(new BigDecimal("5099")), + + NUMBER_5100(new BigDecimal("5100")), + + NUMBER_5101(new BigDecimal("5101")), + + NUMBER_5102(new BigDecimal("5102")), + + NUMBER_5103(new BigDecimal("5103")), + + NUMBER_5104(new BigDecimal("5104")), + + NUMBER_5105(new BigDecimal("5105")), + + NUMBER_5106(new BigDecimal("5106")), + + NUMBER_5107(new BigDecimal("5107")), + + NUMBER_5108(new BigDecimal("5108")), + + NUMBER_5109(new BigDecimal("5109")), + + NUMBER_5110(new BigDecimal("5110")), + + NUMBER_5111(new BigDecimal("5111")), + + NUMBER_5112(new BigDecimal("5112")), + + NUMBER_5113(new BigDecimal("5113")), + + NUMBER_5114(new BigDecimal("5114")), + + NUMBER_5115(new BigDecimal("5115")), + + NUMBER_5116(new BigDecimal("5116")), + + NUMBER_5117(new BigDecimal("5117")), + + NUMBER_5118(new BigDecimal("5118")), + + NUMBER_5119(new BigDecimal("5119")), + + NUMBER_5120(new BigDecimal("5120")), + + NUMBER_5121(new BigDecimal("5121")), + + NUMBER_5122(new BigDecimal("5122")), + + NUMBER_5123(new BigDecimal("5123")), + + NUMBER_5124(new BigDecimal("5124")), + + NUMBER_5125(new BigDecimal("5125")), + + NUMBER_5126(new BigDecimal("5126")), + + NUMBER_5127(new BigDecimal("5127")), + + NUMBER_5129(new BigDecimal("5129")), + + NUMBER_5130(new BigDecimal("5130")), + + NUMBER_5131(new BigDecimal("5131")), + + NUMBER_5132(new BigDecimal("5132")), + + NUMBER_5133(new BigDecimal("5133")), + + NUMBER_5134(new BigDecimal("5134")), + + NUMBER_5135(new BigDecimal("5135")), + + NUMBER_5136(new BigDecimal("5136")), + + NUMBER_5137(new BigDecimal("5137")), + + NUMBER_5138(new BigDecimal("5138")), + + NUMBER_5139(new BigDecimal("5139")), + + NUMBER_5140(new BigDecimal("5140")), + + NUMBER_5141(new BigDecimal("5141")), + + NUMBER_5142(new BigDecimal("5142")), + + NUMBER_5143(new BigDecimal("5143")), + + NUMBER_5144(new BigDecimal("5144")), + + NUMBER_5145(new BigDecimal("5145")), + + NUMBER_5146(new BigDecimal("5146")), + + NUMBER_5147(new BigDecimal("5147")), + + NUMBER_5148(new BigDecimal("5148")), + + NUMBER_5149(new BigDecimal("5149")), + + NUMBER_5150(new BigDecimal("5150")), + + NUMBER_5151(new BigDecimal("5151")), + + NUMBER_5152(new BigDecimal("5152")), + + NUMBER_5153(new BigDecimal("5153")), + + NUMBER_5154(new BigDecimal("5154")), + + NUMBER_5157(new BigDecimal("5157")), + + NUMBER_5158(new BigDecimal("5158")), + + NUMBER_5159(new BigDecimal("5159")), + + NUMBER_5160(new BigDecimal("5160")), + + NUMBER_5161(new BigDecimal("5161")), + + NUMBER_5162(new BigDecimal("5162")), + + NUMBER_5163(new BigDecimal("5163")), + + NUMBER_5164(new BigDecimal("5164")), + + NUMBER_5165(new BigDecimal("5165")), + + NUMBER_5166(new BigDecimal("5166")), + + NUMBER_5167(new BigDecimal("5167")), + + NUMBER_5168(new BigDecimal("5168")), + + NUMBER_5169(new BigDecimal("5169")), + + NUMBER_5170(new BigDecimal("5170")), + + NUMBER_5171(new BigDecimal("5171")), + + NUMBER_5172(new BigDecimal("5172")), + + NUMBER_5173(new BigDecimal("5173")), + + NUMBER_5174(new BigDecimal("5174")), + + NUMBER_5175(new BigDecimal("5175")), + + NUMBER_5176(new BigDecimal("5176")), + + NUMBER_5177(new BigDecimal("5177")), + + NUMBER_5178(new BigDecimal("5178")), + + NUMBER_5179(new BigDecimal("5179")), + + NUMBER_5180(new BigDecimal("5180")), + + NUMBER_5181(new BigDecimal("5181")), + + NUMBER_5182(new BigDecimal("5182")), + + NUMBER_5184(new BigDecimal("5184")), + + NUMBER_5185(new BigDecimal("5185")), + + NUMBER_5186(new BigDecimal("5186")), + + NUMBER_5187(new BigDecimal("5187")), + + NUMBER_5188(new BigDecimal("5188")), + + NUMBER_5189(new BigDecimal("5189")), + + NUMBER_5190(new BigDecimal("5190")), + + NUMBER_5191(new BigDecimal("5191")), + + NUMBER_5196(new BigDecimal("5196")), + + NUMBER_5198(new BigDecimal("5198")), + + NUMBER_5199(new BigDecimal("5199")), + + NUMBER_5200(new BigDecimal("5200")), + + NUMBER_5201(new BigDecimal("5201")), + + NUMBER_5202(new BigDecimal("5202")), + + NUMBER_5203(new BigDecimal("5203")), + + NUMBER_5204(new BigDecimal("5204")), + + NUMBER_5205(new BigDecimal("5205")), + + NUMBER_5206(new BigDecimal("5206")), + + NUMBER_5207(new BigDecimal("5207")), + + NUMBER_5211(new BigDecimal("5211")), + + NUMBER_5212(new BigDecimal("5212")), + + NUMBER_90001(new BigDecimal("90001")), + + NUMBER_90002(new BigDecimal("90002")), + + NUMBER_90003(new BigDecimal("90003")), + + NUMBER_90004(new BigDecimal("90004")), + + NUMBER_90005(new BigDecimal("90005")), + + NUMBER_90006(new BigDecimal("90006")), + + NUMBER_90007(new BigDecimal("90007")), + + NUMBER_90008(new BigDecimal("90008")), + + NUMBER_90009(new BigDecimal("90009")), + + NUMBER_90010(new BigDecimal("90010")), + + NUMBER_90011(new BigDecimal("90011")); + + private BigDecimal value; + + RoomAmenityListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static RoomAmenityListEnum fromValue(BigDecimal value) { + for (RoomAmenityListEnum b : RoomAmenityListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final RoomAmenityListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public RoomAmenityListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return RoomAmenityListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_ROOM_AMENITY_LIST = "roomAmenityList"; + @SerializedName(SERIALIZED_NAME_ROOM_AMENITY_LIST) + private List roomAmenityList = null; + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner isMainImage(Boolean isMainImage) { + + this.isMainImage = isMainImage; + return this; + } + + /** + * Whether the media is the main image for the property. + * @return isMainImage + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Whether the media is the main image for the property.") + + public Boolean getIsMainImage() { + return isMainImage; + } + + + public void setIsMainImage(Boolean isMainImage) { + this.isMainImage = isMainImage; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner url(String url) { + + this.url = url; + return this; + } + + /** + * The URL for the media. + * @return url + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "5e3d9d49e9480.jpg", required = true, value = "The URL for the media.") + + public String getUrl() { + return url; + } + + + public void setUrl(String url) { + this.url = url; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner sortOrder(BigDecimal sortOrder) { + + this.sortOrder = sortOrder; + return this; + } + + /** + * The sort order for the media. + * @return sortOrder + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1000", required = true, value = "The sort order for the media.") + + public BigDecimal getSortOrder() { + return sortOrder; + } + + + public void setSortOrder(BigDecimal sortOrder) { + this.sortOrder = sortOrder; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner tagList(List tagList) { + + this.tagList = tagList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner addTagListItem(TagListEnum tagListItem) { + this.tagList.add(tagListItem); + return this; + } + + /** + * A list of tag codes for the media.<p>See also <a href=\"#imagetype-codes\">in the appendix</a>.</p> + * @return tagList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[3,55]", required = true, value = "A list of tag codes for the media.

See also in the appendix.

") + + public List getTagList() { + return tagList; + } + + + public void setTagList(List tagList) { + this.tagList = tagList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner moderationLabelList(List moderationLabelList) { + + this.moderationLabelList = moderationLabelList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner addModerationLabelListItem(String moderationLabelListItem) { + this.moderationLabelList.add(moderationLabelListItem); + return this; + } + + /** + * A list of detection labels for moderated content (e.g. containing alcoholic beverages) for the media from an AI based detection engine. + * @return moderationLabelList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[\"partial_nudity\",\"tobacco\"]", required = true, value = "A list of detection labels for moderated content (e.g. containing alcoholic beverages) for the media from an AI based detection engine.") + + public List getModerationLabelList() { + return moderationLabelList; + } + + + public void setModerationLabelList(List moderationLabelList) { + this.moderationLabelList = moderationLabelList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner detectionLabelList(List detectionLabelList) { + + this.detectionLabelList = detectionLabelList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner addDetectionLabelListItem(String detectionLabelListItem) { + if (this.detectionLabelList == null) { + this.detectionLabelList = new ArrayList<>(); + } + this.detectionLabelList.add(detectionLabelListItem); + return this; + } + + /** + * A list of detection labels for the media from an AI based detection engine. + * @return detectionLabelList + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "[\"room\",\"indoors\",\"kitchen\",\"interior_design\"]", value = "A list of detection labels for the media from an AI based detection engine.") + + public List getDetectionLabelList() { + return detectionLabelList; + } + + + public void setDetectionLabelList(List detectionLabelList) { + this.detectionLabelList = detectionLabelList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner propertyAmenityList(List propertyAmenityList) { + + this.propertyAmenityList = propertyAmenityList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner addPropertyAmenityListItem(PropertyAmenityListEnum propertyAmenityListItem) { + this.propertyAmenityList.add(propertyAmenityListItem); + return this; + } + + /** + * A list of property amenities available at the property that are visible in this media element. + * @return propertyAmenityList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[1,2]", required = true, value = "A list of property amenities available at the property that are visible in this media element.") + + public List getPropertyAmenityList() { + return propertyAmenityList; + } + + + public void setPropertyAmenityList(List propertyAmenityList) { + this.propertyAmenityList = propertyAmenityList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner roomAmenityList(List roomAmenityList) { + + this.roomAmenityList = roomAmenityList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner addRoomAmenityListItem(RoomAmenityListEnum roomAmenityListItem) { + if (this.roomAmenityList == null) { + this.roomAmenityList = new ArrayList<>(); + } + this.roomAmenityList.add(roomAmenityListItem); + return this; + } + + /** + * A list of unit and room amenities available at the property (respectively unit type if applicable) that are visible in this media element. + * @return roomAmenityList + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "A list of unit and room amenities available at the property (respectively unit type if applicable) that are visible in this media element.") + + public List getRoomAmenityList() { + return roomAmenityList; + } + + + public void setRoomAmenityList(List roomAmenityList) { + this.roomAmenityList = roomAmenityList; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner = (PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner) o; + return Objects.equals(this.isMainImage, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.isMainImage) && + Objects.equals(this.url, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.url) && + Objects.equals(this.sortOrder, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.sortOrder) && + Objects.equals(this.tagList, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.tagList) && + Objects.equals(this.moderationLabelList, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.moderationLabelList) && + Objects.equals(this.detectionLabelList, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.detectionLabelList) && + Objects.equals(this.propertyAmenityList, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.propertyAmenityList) && + Objects.equals(this.roomAmenityList, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.roomAmenityList); + } + + @Override + public int hashCode() { + return Objects.hash(isMainImage, url, sortOrder, tagList, moderationLabelList, detectionLabelList, propertyAmenityList, roomAmenityList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner {\n"); + sb.append(" isMainImage: ").append(toIndentedString(isMainImage)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" sortOrder: ").append(toIndentedString(sortOrder)).append("\n"); + sb.append(" tagList: ").append(toIndentedString(tagList)).append("\n"); + sb.append(" moderationLabelList: ").append(toIndentedString(moderationLabelList)).append("\n"); + sb.append(" detectionLabelList: ").append(toIndentedString(detectionLabelList)).append("\n"); + sb.append(" propertyAmenityList: ").append(toIndentedString(propertyAmenityList)).append("\n"); + sb.append(" roomAmenityList: ").append(toIndentedString(roomAmenityList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("isMainImage"); + openapiFields.add("url"); + openapiFields.add("sortOrder"); + openapiFields.add("tagList"); + openapiFields.add("moderationLabelList"); + openapiFields.add("detectionLabelList"); + openapiFields.add("propertyAmenityList"); + openapiFields.add("roomAmenityList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("isMainImage"); + openapiRequiredFields.add("url"); + openapiRequiredFields.add("sortOrder"); + openapiRequiredFields.add("tagList"); + openapiRequiredFields.add("moderationLabelList"); + openapiRequiredFields.add("propertyAmenityList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("url") != null && !jsonObj.get("url").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("url").toString())); + } + // ensure the json data is an array + if (jsonObj.get("tagList") != null && !jsonObj.get("tagList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `tagList` to be an array in the JSON string but got `%s`", jsonObj.get("tagList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("moderationLabelList") != null && !jsonObj.get("moderationLabelList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `moderationLabelList` to be an array in the JSON string but got `%s`", jsonObj.get("moderationLabelList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("detectionLabelList") != null && !jsonObj.get("detectionLabelList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `detectionLabelList` to be an array in the JSON string but got `%s`", jsonObj.get("detectionLabelList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("propertyAmenityList") != null && !jsonObj.get("propertyAmenityList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `propertyAmenityList` to be an array in the JSON string but got `%s`", jsonObj.get("propertyAmenityList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("roomAmenityList") != null && !jsonObj.get("roomAmenityList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `roomAmenityList` to be an array in the JSON string but got `%s`", jsonObj.get("roomAmenityList").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.java new file mode 100644 index 0000000..c56bcaa --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.java @@ -0,0 +1,370 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner { + /** + * The language code of the message.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(LanguageCodeEnum.Adapter.class) + public enum LanguageCodeEnum { + AF("af"), + + AR("ar"), + + BG("bg"), + + CA("ca"), + + CS("cs"), + + DA("da"), + + DE("de"), + + EL("el"), + + EN("en"), + + ES("es"), + + ET("et"), + + FI("fi"), + + FR("fr"), + + HE("he"), + + HI("hi"), + + HR("hr"), + + HU("hu"), + + ID("id"), + + IS("is"), + + IT("it"), + + JA("ja"), + + KO("ko"), + + LT("lt"), + + LV("lv"), + + NL("nl"), + + NO("no"), + + PL("pl"), + + PT("pt"), + + RO("ro"), + + RU("ru"), + + SK("sk"), + + SL("sl"), + + SR("sr"), + + SV("sv"), + + TH("th"), + + TR("tr"), + + VI("vi"), + + ZH("zh"); + + private String value; + + LanguageCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LanguageCodeEnum fromValue(String value) { + for (LanguageCodeEnum b : LanguageCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LanguageCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LanguageCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LanguageCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_LANGUAGE_CODE = "languageCode"; + @SerializedName(SERIALIZED_NAME_LANGUAGE_CODE) + private LanguageCodeEnum languageCode; + + public static final String SERIALIZED_NAME_TEXT = "text"; + @SerializedName(SERIALIZED_NAME_TEXT) + private String text; + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner languageCode(LanguageCodeEnum languageCode) { + + this.languageCode = languageCode; + return this; + } + + /** + * The language code of the message.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + * @return languageCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The language code of the message.

Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.

See also in the appendix.

") + + public LanguageCodeEnum getLanguageCode() { + return languageCode; + } + + + public void setLanguageCode(LanguageCodeEnum languageCode) { + this.languageCode = languageCode; + } + + + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner text(String text) { + + this.text = text; + return this; + } + + /** + * The message text. + * @return text + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The message text.") + + public String getText() { + return text; + } + + + public void setText(String text) { + this.text = text; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner = (PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner) o; + return Objects.equals(this.languageCode, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.languageCode) && + Objects.equals(this.text, propertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.text); + } + + @Override + public int hashCode() { + return Objects.hash(languageCode, text); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner {\n"); + sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("languageCode"); + openapiFields.add("text"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("languageCode"); + openapiRequiredFields.add("text"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("languageCode") != null && !jsonObj.get("languageCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `languageCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("languageCode").toString())); + } + if (jsonObj.get("text") != null && !jsonObj.get("text").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.java new file mode 100644 index 0000000..4fd0406 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.java @@ -0,0 +1,277 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * Information regarding requirements towards guests. + */ +@ApiModel(description = "Information regarding requirements towards guests.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyGuestInfo { + public static final String SERIALIZED_NAME_GUEST_ADDRESS_REQUIRED = "guestAddressRequired"; + @SerializedName(SERIALIZED_NAME_GUEST_ADDRESS_REQUIRED) + private Boolean guestAddressRequired; + + public static final String SERIALIZED_NAME_GUEST_CONTACT_NUMBER_REQUIRED = "guestContactNumberRequired"; + @SerializedName(SERIALIZED_NAME_GUEST_CONTACT_NUMBER_REQUIRED) + private Boolean guestContactNumberRequired; + + public static final String SERIALIZED_NAME_GUEST_NAME_LIST_REQUIRED = "guestNameListRequired"; + @SerializedName(SERIALIZED_NAME_GUEST_NAME_LIST_REQUIRED) + private Boolean guestNameListRequired; + + public PropertiesPropertyIdGet200ResponsePropertyGuestInfo() { + } + + public PropertiesPropertyIdGet200ResponsePropertyGuestInfo guestAddressRequired(Boolean guestAddressRequired) { + + this.guestAddressRequired = guestAddressRequired; + return this; + } + + /** + * Whether the address of the guest is required to book this property. + * @return guestAddressRequired + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Whether the address of the guest is required to book this property.") + + public Boolean getGuestAddressRequired() { + return guestAddressRequired; + } + + + public void setGuestAddressRequired(Boolean guestAddressRequired) { + this.guestAddressRequired = guestAddressRequired; + } + + + public PropertiesPropertyIdGet200ResponsePropertyGuestInfo guestContactNumberRequired(Boolean guestContactNumberRequired) { + + this.guestContactNumberRequired = guestContactNumberRequired; + return this; + } + + /** + * Whether the phone number of the guest is required to book this property. + * @return guestContactNumberRequired + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Whether the phone number of the guest is required to book this property.") + + public Boolean getGuestContactNumberRequired() { + return guestContactNumberRequired; + } + + + public void setGuestContactNumberRequired(Boolean guestContactNumberRequired) { + this.guestContactNumberRequired = guestContactNumberRequired; + } + + + public PropertiesPropertyIdGet200ResponsePropertyGuestInfo guestNameListRequired(Boolean guestNameListRequired) { + + this.guestNameListRequired = guestNameListRequired; + return this; + } + + /** + * Whether a list of the guests names is required to book this property. + * @return guestNameListRequired + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Whether a list of the guests names is required to book this property.") + + public Boolean getGuestNameListRequired() { + return guestNameListRequired; + } + + + public void setGuestNameListRequired(Boolean guestNameListRequired) { + this.guestNameListRequired = guestNameListRequired; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyGuestInfo propertiesPropertyIdGet200ResponsePropertyGuestInfo = (PropertiesPropertyIdGet200ResponsePropertyGuestInfo) o; + return Objects.equals(this.guestAddressRequired, propertiesPropertyIdGet200ResponsePropertyGuestInfo.guestAddressRequired) && + Objects.equals(this.guestContactNumberRequired, propertiesPropertyIdGet200ResponsePropertyGuestInfo.guestContactNumberRequired) && + Objects.equals(this.guestNameListRequired, propertiesPropertyIdGet200ResponsePropertyGuestInfo.guestNameListRequired); + } + + @Override + public int hashCode() { + return Objects.hash(guestAddressRequired, guestContactNumberRequired, guestNameListRequired); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyGuestInfo {\n"); + sb.append(" guestAddressRequired: ").append(toIndentedString(guestAddressRequired)).append("\n"); + sb.append(" guestContactNumberRequired: ").append(toIndentedString(guestContactNumberRequired)).append("\n"); + sb.append(" guestNameListRequired: ").append(toIndentedString(guestNameListRequired)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("guestAddressRequired"); + openapiFields.add("guestContactNumberRequired"); + openapiFields.add("guestNameListRequired"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("guestAddressRequired"); + openapiRequiredFields.add("guestContactNumberRequired"); + openapiRequiredFields.add("guestNameListRequired"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyGuestInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyGuestInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyGuestInfo is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyGuestInfo.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyGuestInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyGuestInfo` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyGuestInfo.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyGuestInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyGuestInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyGuestInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyGuestInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyGuestInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyGuestInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyGuestInfo + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyGuestInfo + */ + public static PropertiesPropertyIdGet200ResponsePropertyGuestInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyGuestInfo.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyGuestInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.java new file mode 100644 index 0000000..9e14337 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.java @@ -0,0 +1,670 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyPolicyListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyPolicyListInner { + public static final String SERIALIZED_NAME_CHECK_IN_TIME = "checkInTime"; + @SerializedName(SERIALIZED_NAME_CHECK_IN_TIME) + private BigDecimal checkInTime; + + public static final String SERIALIZED_NAME_CHECK_OUT_TIME = "checkOutTime"; + @SerializedName(SERIALIZED_NAME_CHECK_OUT_TIME) + private BigDecimal checkOutTime; + + public static final String SERIALIZED_NAME_TOTAL_GUEST_COUNT = "totalGuestCount"; + @SerializedName(SERIALIZED_NAME_TOTAL_GUEST_COUNT) + private BigDecimal totalGuestCount; + + public static final String SERIALIZED_NAME_CANCELLATION_POLICY_LIST = "cancellationPolicyList"; + @SerializedName(SERIALIZED_NAME_CANCELLATION_POLICY_LIST) + private List cancellationPolicyList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_ADVANCE_BOOKING_MIN = "advanceBookingMin"; + @SerializedName(SERIALIZED_NAME_ADVANCE_BOOKING_MIN) + private BigDecimal advanceBookingMin; + + public static final String SERIALIZED_NAME_ADVANCE_BOOKING_MAX = "advanceBookingMax"; + @SerializedName(SERIALIZED_NAME_ADVANCE_BOOKING_MAX) + private BigDecimal advanceBookingMax; + + public static final String SERIALIZED_NAME_PETS_POLICY = "petsPolicy"; + @SerializedName(SERIALIZED_NAME_PETS_POLICY) + private PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy petsPolicy; + + /** + * The type of the prepayment policy. + */ + @JsonAdapter(PrepaymentPolicyEnum.Adapter.class) + public enum PrepaymentPolicyEnum { + CANCELLATION_FEE_BEGINS("after_cancellation_fee_begins"), + + RESERVATION_IS_MADE("after_reservation_is_made"); + + private String value; + + PrepaymentPolicyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static PrepaymentPolicyEnum fromValue(String value) { + for (PrepaymentPolicyEnum b : PrepaymentPolicyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final PrepaymentPolicyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public PrepaymentPolicyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return PrepaymentPolicyEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PREPAYMENT_POLICY = "prepaymentPolicy"; + @SerializedName(SERIALIZED_NAME_PREPAYMENT_POLICY) + private PrepaymentPolicyEnum prepaymentPolicy; + + public static final String SERIALIZED_NAME_GUARANTEE_POLICY = "guaranteePolicy"; + @SerializedName(SERIALIZED_NAME_GUARANTEE_POLICY) + private PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy guaranteePolicy; + + public static final String SERIALIZED_NAME_TAX_POLICY_LIST = "taxPolicyList"; + @SerializedName(SERIALIZED_NAME_TAX_POLICY_LIST) + private List taxPolicyList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_FEE_POLICY_LIST = "feePolicyList"; + @SerializedName(SERIALIZED_NAME_FEE_POLICY_LIST) + private List feePolicyList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner checkInTime(BigDecimal checkInTime) { + + this.checkInTime = checkInTime; + return this; + } + + /** + * Check-in time (unix timestamp in ms). + * @return checkInTime + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "54000000", required = true, value = "Check-in time (unix timestamp in ms).") + + public BigDecimal getCheckInTime() { + return checkInTime; + } + + + public void setCheckInTime(BigDecimal checkInTime) { + this.checkInTime = checkInTime; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner checkOutTime(BigDecimal checkOutTime) { + + this.checkOutTime = checkOutTime; + return this; + } + + /** + * Check-out time (unix timestamp in ms). + * @return checkOutTime + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "43200000", required = true, value = "Check-out time (unix timestamp in ms).") + + public BigDecimal getCheckOutTime() { + return checkOutTime; + } + + + public void setCheckOutTime(BigDecimal checkOutTime) { + this.checkOutTime = checkOutTime; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner totalGuestCount(BigDecimal totalGuestCount) { + + this.totalGuestCount = totalGuestCount; + return this; + } + + /** + * The maximum number of guests allowed. + * @return totalGuestCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "10", value = "The maximum number of guests allowed.") + + public BigDecimal getTotalGuestCount() { + return totalGuestCount; + } + + + public void setTotalGuestCount(BigDecimal totalGuestCount) { + this.totalGuestCount = totalGuestCount; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner cancellationPolicyList(List cancellationPolicyList) { + + this.cancellationPolicyList = cancellationPolicyList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner addCancellationPolicyListItem(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner cancellationPolicyListItem) { + this.cancellationPolicyList.add(cancellationPolicyListItem); + return this; + } + + /** + * List of cancellation policies. + * @return cancellationPolicyList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "List of cancellation policies.") + + public List getCancellationPolicyList() { + return cancellationPolicyList; + } + + + public void setCancellationPolicyList(List cancellationPolicyList) { + this.cancellationPolicyList = cancellationPolicyList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner advanceBookingMin(BigDecimal advanceBookingMin) { + + this.advanceBookingMin = advanceBookingMin; + return this; + } + + /** + * The minimum number of days in advance a booking must be made + * @return advanceBookingMin + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "365", required = true, value = "The minimum number of days in advance a booking must be made") + + public BigDecimal getAdvanceBookingMin() { + return advanceBookingMin; + } + + + public void setAdvanceBookingMin(BigDecimal advanceBookingMin) { + this.advanceBookingMin = advanceBookingMin; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner advanceBookingMax(BigDecimal advanceBookingMax) { + + this.advanceBookingMax = advanceBookingMax; + return this; + } + + /** + * The maximum number of days in advance a booking can be made + * @return advanceBookingMax + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1", required = true, value = "The maximum number of days in advance a booking can be made") + + public BigDecimal getAdvanceBookingMax() { + return advanceBookingMax; + } + + + public void setAdvanceBookingMax(BigDecimal advanceBookingMax) { + this.advanceBookingMax = advanceBookingMax; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner petsPolicy(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy petsPolicy) { + + this.petsPolicy = petsPolicy; + return this; + } + + /** + * Get petsPolicy + * @return petsPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy getPetsPolicy() { + return petsPolicy; + } + + + public void setPetsPolicy(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy petsPolicy) { + this.petsPolicy = petsPolicy; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner prepaymentPolicy(PrepaymentPolicyEnum prepaymentPolicy) { + + this.prepaymentPolicy = prepaymentPolicy; + return this; + } + + /** + * The type of the prepayment policy. + * @return prepaymentPolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "after_reservation_is_made", value = "The type of the prepayment policy.") + + public PrepaymentPolicyEnum getPrepaymentPolicy() { + return prepaymentPolicy; + } + + + public void setPrepaymentPolicy(PrepaymentPolicyEnum prepaymentPolicy) { + this.prepaymentPolicy = prepaymentPolicy; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner guaranteePolicy(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy guaranteePolicy) { + + this.guaranteePolicy = guaranteePolicy; + return this; + } + + /** + * Get guaranteePolicy + * @return guaranteePolicy + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy getGuaranteePolicy() { + return guaranteePolicy; + } + + + public void setGuaranteePolicy(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy guaranteePolicy) { + this.guaranteePolicy = guaranteePolicy; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner taxPolicyList(List taxPolicyList) { + + this.taxPolicyList = taxPolicyList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner addTaxPolicyListItem(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner taxPolicyListItem) { + this.taxPolicyList.add(taxPolicyListItem); + return this; + } + + /** + * A list of taxes and their policies. + * @return taxPolicyList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of taxes and their policies.") + + public List getTaxPolicyList() { + return taxPolicyList; + } + + + public void setTaxPolicyList(List taxPolicyList) { + this.taxPolicyList = taxPolicyList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner feePolicyList(List feePolicyList) { + + this.feePolicyList = feePolicyList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner addFeePolicyListItem(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner feePolicyListItem) { + this.feePolicyList.add(feePolicyListItem); + return this; + } + + /** + * A list of fees and their policies. + * @return feePolicyList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of fees and their policies.") + + public List getFeePolicyList() { + return feePolicyList; + } + + + public void setFeePolicyList(List feePolicyList) { + this.feePolicyList = feePolicyList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner name(String name) { + + this.name = name; + return this; + } + + /** + * The name of this policy. + * @return name + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Standard Sylt Residenz Policy", value = "The name of this policy.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyPolicyListInner propertiesPropertyIdGet200ResponsePropertyPolicyListInner = (PropertiesPropertyIdGet200ResponsePropertyPolicyListInner) o; + return Objects.equals(this.checkInTime, propertiesPropertyIdGet200ResponsePropertyPolicyListInner.checkInTime) && + Objects.equals(this.checkOutTime, propertiesPropertyIdGet200ResponsePropertyPolicyListInner.checkOutTime) && + Objects.equals(this.totalGuestCount, propertiesPropertyIdGet200ResponsePropertyPolicyListInner.totalGuestCount) && + Objects.equals(this.cancellationPolicyList, propertiesPropertyIdGet200ResponsePropertyPolicyListInner.cancellationPolicyList) && + Objects.equals(this.advanceBookingMin, propertiesPropertyIdGet200ResponsePropertyPolicyListInner.advanceBookingMin) && + Objects.equals(this.advanceBookingMax, propertiesPropertyIdGet200ResponsePropertyPolicyListInner.advanceBookingMax) && + Objects.equals(this.petsPolicy, propertiesPropertyIdGet200ResponsePropertyPolicyListInner.petsPolicy) && + Objects.equals(this.prepaymentPolicy, propertiesPropertyIdGet200ResponsePropertyPolicyListInner.prepaymentPolicy) && + Objects.equals(this.guaranteePolicy, propertiesPropertyIdGet200ResponsePropertyPolicyListInner.guaranteePolicy) && + Objects.equals(this.taxPolicyList, propertiesPropertyIdGet200ResponsePropertyPolicyListInner.taxPolicyList) && + Objects.equals(this.feePolicyList, propertiesPropertyIdGet200ResponsePropertyPolicyListInner.feePolicyList) && + Objects.equals(this.name, propertiesPropertyIdGet200ResponsePropertyPolicyListInner.name); + } + + @Override + public int hashCode() { + return Objects.hash(checkInTime, checkOutTime, totalGuestCount, cancellationPolicyList, advanceBookingMin, advanceBookingMax, petsPolicy, prepaymentPolicy, guaranteePolicy, taxPolicyList, feePolicyList, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyPolicyListInner {\n"); + sb.append(" checkInTime: ").append(toIndentedString(checkInTime)).append("\n"); + sb.append(" checkOutTime: ").append(toIndentedString(checkOutTime)).append("\n"); + sb.append(" totalGuestCount: ").append(toIndentedString(totalGuestCount)).append("\n"); + sb.append(" cancellationPolicyList: ").append(toIndentedString(cancellationPolicyList)).append("\n"); + sb.append(" advanceBookingMin: ").append(toIndentedString(advanceBookingMin)).append("\n"); + sb.append(" advanceBookingMax: ").append(toIndentedString(advanceBookingMax)).append("\n"); + sb.append(" petsPolicy: ").append(toIndentedString(petsPolicy)).append("\n"); + sb.append(" prepaymentPolicy: ").append(toIndentedString(prepaymentPolicy)).append("\n"); + sb.append(" guaranteePolicy: ").append(toIndentedString(guaranteePolicy)).append("\n"); + sb.append(" taxPolicyList: ").append(toIndentedString(taxPolicyList)).append("\n"); + sb.append(" feePolicyList: ").append(toIndentedString(feePolicyList)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("checkInTime"); + openapiFields.add("checkOutTime"); + openapiFields.add("totalGuestCount"); + openapiFields.add("cancellationPolicyList"); + openapiFields.add("advanceBookingMin"); + openapiFields.add("advanceBookingMax"); + openapiFields.add("petsPolicy"); + openapiFields.add("prepaymentPolicy"); + openapiFields.add("guaranteePolicy"); + openapiFields.add("taxPolicyList"); + openapiFields.add("feePolicyList"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("checkInTime"); + openapiRequiredFields.add("checkOutTime"); + openapiRequiredFields.add("cancellationPolicyList"); + openapiRequiredFields.add("advanceBookingMin"); + openapiRequiredFields.add("advanceBookingMax"); + openapiRequiredFields.add("taxPolicyList"); + openapiRequiredFields.add("feePolicyList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyPolicyListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyPolicyListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + JsonArray jsonArraycancellationPolicyList = jsonObj.getAsJsonArray("cancellationPolicyList"); + if (jsonArraycancellationPolicyList != null) { + // ensure the json data is an array + if (!jsonObj.get("cancellationPolicyList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `cancellationPolicyList` to be an array in the JSON string but got `%s`", jsonObj.get("cancellationPolicyList").toString())); + } + + // validate the optional field `cancellationPolicyList` (array) + for (int i = 0; i < jsonArraycancellationPolicyList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.validateJsonObject(jsonArraycancellationPolicyList.get(i).getAsJsonObject()); + }; + } + // validate the optional field `petsPolicy` + if (jsonObj.getAsJsonObject("petsPolicy") != null) { + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.validateJsonObject(jsonObj.getAsJsonObject("petsPolicy")); + } + if (jsonObj.get("prepaymentPolicy") != null && !jsonObj.get("prepaymentPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `prepaymentPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("prepaymentPolicy").toString())); + } + // validate the optional field `guaranteePolicy` + if (jsonObj.getAsJsonObject("guaranteePolicy") != null) { + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.validateJsonObject(jsonObj.getAsJsonObject("guaranteePolicy")); + } + JsonArray jsonArraytaxPolicyList = jsonObj.getAsJsonArray("taxPolicyList"); + if (jsonArraytaxPolicyList != null) { + // ensure the json data is an array + if (!jsonObj.get("taxPolicyList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `taxPolicyList` to be an array in the JSON string but got `%s`", jsonObj.get("taxPolicyList").toString())); + } + + // validate the optional field `taxPolicyList` (array) + for (int i = 0; i < jsonArraytaxPolicyList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.validateJsonObject(jsonArraytaxPolicyList.get(i).getAsJsonObject()); + }; + } + JsonArray jsonArrayfeePolicyList = jsonObj.getAsJsonArray("feePolicyList"); + if (jsonArrayfeePolicyList != null) { + // ensure the json data is an array + if (!jsonObj.get("feePolicyList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `feePolicyList` to be an array in the JSON string but got `%s`", jsonObj.get("feePolicyList").toString())); + } + + // validate the optional field `feePolicyList` (array) + for (int i = 0; i < jsonArrayfeePolicyList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.validateJsonObject(jsonArrayfeePolicyList.get(i).getAsJsonObject()); + }; + } + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyPolicyListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyPolicyListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyPolicyListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.java new file mode 100644 index 0000000..2c9688e --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.java @@ -0,0 +1,404 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner { + public static final String SERIALIZED_NAME_PERCENT_AFTER_RESERVATION = "percentAfterReservation"; + @SerializedName(SERIALIZED_NAME_PERCENT_AFTER_RESERVATION) + private BigDecimal percentAfterReservation; + + public static final String SERIALIZED_NAME_NIGHTS_AFTER_RESERVATION = "nightsAfterReservation"; + @SerializedName(SERIALIZED_NAME_NIGHTS_AFTER_RESERVATION) + private BigDecimal nightsAfterReservation; + + public static final String SERIALIZED_NAME_DEADLINE_DAYS = "deadlineDays"; + @SerializedName(SERIALIZED_NAME_DEADLINE_DAYS) + private BigDecimal deadlineDays; + + public static final String SERIALIZED_NAME_DEADLINE_HOURS = "deadlineHours"; + @SerializedName(SERIALIZED_NAME_DEADLINE_HOURS) + private BigDecimal deadlineHours; + + public static final String SERIALIZED_NAME_PERCENT_AFTER_DEADLINE = "percentAfterDeadline"; + @SerializedName(SERIALIZED_NAME_PERCENT_AFTER_DEADLINE) + private BigDecimal percentAfterDeadline; + + public static final String SERIALIZED_NAME_NIGHTS_AFTER_DEADLINE = "nightsAfterDeadline"; + @SerializedName(SERIALIZED_NAME_NIGHTS_AFTER_DEADLINE) + private BigDecimal nightsAfterDeadline; + + public static final String SERIALIZED_NAME_NO_SHOW_POLICY = "noShowPolicy"; + @SerializedName(SERIALIZED_NAME_NO_SHOW_POLICY) + private String noShowPolicy; + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner percentAfterReservation(BigDecimal percentAfterReservation) { + + this.percentAfterReservation = percentAfterReservation; + return this; + } + + /** + * Percentage of refund after reservation. + * @return percentAfterReservation + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0", required = true, value = "Percentage of refund after reservation.") + + public BigDecimal getPercentAfterReservation() { + return percentAfterReservation; + } + + + public void setPercentAfterReservation(BigDecimal percentAfterReservation) { + this.percentAfterReservation = percentAfterReservation; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner nightsAfterReservation(BigDecimal nightsAfterReservation) { + + this.nightsAfterReservation = nightsAfterReservation; + return this; + } + + /** + * Number of nights after reservation. + * @return nightsAfterReservation + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0", required = true, value = "Number of nights after reservation.") + + public BigDecimal getNightsAfterReservation() { + return nightsAfterReservation; + } + + + public void setNightsAfterReservation(BigDecimal nightsAfterReservation) { + this.nightsAfterReservation = nightsAfterReservation; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner deadlineDays(BigDecimal deadlineDays) { + + this.deadlineDays = deadlineDays; + return this; + } + + /** + * Deadline in days. + * @return deadlineDays + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0", required = true, value = "Deadline in days.") + + public BigDecimal getDeadlineDays() { + return deadlineDays; + } + + + public void setDeadlineDays(BigDecimal deadlineDays) { + this.deadlineDays = deadlineDays; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner deadlineHours(BigDecimal deadlineHours) { + + this.deadlineHours = deadlineHours; + return this; + } + + /** + * Deadline in hours. + * @return deadlineHours + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0", required = true, value = "Deadline in hours.") + + public BigDecimal getDeadlineHours() { + return deadlineHours; + } + + + public void setDeadlineHours(BigDecimal deadlineHours) { + this.deadlineHours = deadlineHours; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner percentAfterDeadline(BigDecimal percentAfterDeadline) { + + this.percentAfterDeadline = percentAfterDeadline; + return this; + } + + /** + * Percentage of refund after deadline. + * @return percentAfterDeadline + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0", required = true, value = "Percentage of refund after deadline.") + + public BigDecimal getPercentAfterDeadline() { + return percentAfterDeadline; + } + + + public void setPercentAfterDeadline(BigDecimal percentAfterDeadline) { + this.percentAfterDeadline = percentAfterDeadline; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner nightsAfterDeadline(BigDecimal nightsAfterDeadline) { + + this.nightsAfterDeadline = nightsAfterDeadline; + return this; + } + + /** + * Number of nights after deadline. + * @return nightsAfterDeadline + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0", required = true, value = "Number of nights after deadline.") + + public BigDecimal getNightsAfterDeadline() { + return nightsAfterDeadline; + } + + + public void setNightsAfterDeadline(BigDecimal nightsAfterDeadline) { + this.nightsAfterDeadline = nightsAfterDeadline; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner noShowPolicy(String noShowPolicy) { + + this.noShowPolicy = noShowPolicy; + return this; + } + + /** + * No-show policy + * @return noShowPolicy + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Default", required = true, value = "No-show policy") + + public String getNoShowPolicy() { + return noShowPolicy; + } + + + public void setNoShowPolicy(String noShowPolicy) { + this.noShowPolicy = noShowPolicy; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner propertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner = (PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner) o; + return Objects.equals(this.percentAfterReservation, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.percentAfterReservation) && + Objects.equals(this.nightsAfterReservation, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.nightsAfterReservation) && + Objects.equals(this.deadlineDays, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.deadlineDays) && + Objects.equals(this.deadlineHours, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.deadlineHours) && + Objects.equals(this.percentAfterDeadline, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.percentAfterDeadline) && + Objects.equals(this.nightsAfterDeadline, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.nightsAfterDeadline) && + Objects.equals(this.noShowPolicy, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.noShowPolicy); + } + + @Override + public int hashCode() { + return Objects.hash(percentAfterReservation, nightsAfterReservation, deadlineDays, deadlineHours, percentAfterDeadline, nightsAfterDeadline, noShowPolicy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner {\n"); + sb.append(" percentAfterReservation: ").append(toIndentedString(percentAfterReservation)).append("\n"); + sb.append(" nightsAfterReservation: ").append(toIndentedString(nightsAfterReservation)).append("\n"); + sb.append(" deadlineDays: ").append(toIndentedString(deadlineDays)).append("\n"); + sb.append(" deadlineHours: ").append(toIndentedString(deadlineHours)).append("\n"); + sb.append(" percentAfterDeadline: ").append(toIndentedString(percentAfterDeadline)).append("\n"); + sb.append(" nightsAfterDeadline: ").append(toIndentedString(nightsAfterDeadline)).append("\n"); + sb.append(" noShowPolicy: ").append(toIndentedString(noShowPolicy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("percentAfterReservation"); + openapiFields.add("nightsAfterReservation"); + openapiFields.add("deadlineDays"); + openapiFields.add("deadlineHours"); + openapiFields.add("percentAfterDeadline"); + openapiFields.add("nightsAfterDeadline"); + openapiFields.add("noShowPolicy"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("percentAfterReservation"); + openapiRequiredFields.add("nightsAfterReservation"); + openapiRequiredFields.add("deadlineDays"); + openapiRequiredFields.add("deadlineHours"); + openapiRequiredFields.add("percentAfterDeadline"); + openapiRequiredFields.add("nightsAfterDeadline"); + openapiRequiredFields.add("noShowPolicy"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("noShowPolicy") != null && !jsonObj.get("noShowPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `noShowPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("noShowPolicy").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.java new file mode 100644 index 0000000..240f798 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.java @@ -0,0 +1,881 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner { + /** + * The code that represents the type of fee.<p>See also <a href=\"#feetype-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(TypeCodeEnum.Adapter.class) + public enum TypeCodeEnum { + NUMBER_2(new BigDecimal("2")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")), + + NUMBER_34(new BigDecimal("34")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_38(new BigDecimal("38")), + + NUMBER_40(new BigDecimal("40")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_44(new BigDecimal("44")), + + NUMBER_45(new BigDecimal("45")), + + NUMBER_47(new BigDecimal("47")), + + NUMBER_51(new BigDecimal("51")), + + NUMBER_52(new BigDecimal("52")), + + NUMBER_53(new BigDecimal("53")), + + NUMBER_54(new BigDecimal("54")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_56(new BigDecimal("56")), + + NUMBER_5000(new BigDecimal("5000")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5009(new BigDecimal("5009")), + + NUMBER_5010(new BigDecimal("5010")), + + NUMBER_5011(new BigDecimal("5011")), + + NUMBER_5012(new BigDecimal("5012")), + + NUMBER_5013(new BigDecimal("5013")), + + NUMBER_5014(new BigDecimal("5014")), + + NUMBER_5015(new BigDecimal("5015")), + + NUMBER_5016(new BigDecimal("5016")), + + NUMBER_5017(new BigDecimal("5017")), + + NUMBER_5018(new BigDecimal("5018")), + + NUMBER_5019(new BigDecimal("5019")), + + NUMBER_5020(new BigDecimal("5020")), + + NUMBER_5021(new BigDecimal("5021")), + + NUMBER_5022(new BigDecimal("5022")), + + NUMBER_5023(new BigDecimal("5023")), + + NUMBER_5024(new BigDecimal("5024")), + + NUMBER_5025(new BigDecimal("5025")), + + NUMBER_5026(new BigDecimal("5026")), + + NUMBER_5027(new BigDecimal("5027")), + + NUMBER_5028(new BigDecimal("5028")), + + NUMBER_5029(new BigDecimal("5029")), + + NUMBER_5030(new BigDecimal("5030")), + + NUMBER_5031(new BigDecimal("5031")), + + NUMBER_5032(new BigDecimal("5032")), + + NUMBER_5033(new BigDecimal("5033")), + + NUMBER_5035(new BigDecimal("5035")), + + NUMBER_5036(new BigDecimal("5036")), + + NUMBER_20001(new BigDecimal("20001")); + + private BigDecimal value; + + TypeCodeEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeCodeEnum fromValue(BigDecimal value) { + for (TypeCodeEnum b : TypeCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeCodeEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_TYPE_CODE = "typeCode"; + @SerializedName(SERIALIZED_NAME_TYPE_CODE) + private TypeCodeEnum typeCode; + + public static final String SERIALIZED_NAME_PERCENT = "percent"; + @SerializedName(SERIALIZED_NAME_PERCENT) + private BigDecimal percent; + + /** + * The type of charge. + */ + @JsonAdapter(ChargeTypeEnum.Adapter.class) + public enum ChargeTypeEnum { + INCLUDED("included"), + + EXCLUDED("excluded"), + + CONDITIONAL("conditional"); + + private String value; + + ChargeTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ChargeTypeEnum fromValue(String value) { + for (ChargeTypeEnum b : ChargeTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ChargeTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ChargeTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ChargeTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CHARGE_TYPE = "chargeType"; + @SerializedName(SERIALIZED_NAME_CHARGE_TYPE) + private ChargeTypeEnum chargeType; + + /** + * The code that represents the frequency of charge.<p>See also <a href=\"#chargetype-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(ChargeFrequencyCodeEnum.Adapter.class) + public enum ChargeFrequencyCodeEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_5000(new BigDecimal("5000")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5010(new BigDecimal("5010")), + + NUMBER_5011(new BigDecimal("5011")), + + NUMBER_5012(new BigDecimal("5012")), + + NUMBER_5013(new BigDecimal("5013")), + + NUMBER_5014(new BigDecimal("5014")), + + NUMBER_5015(new BigDecimal("5015")), + + NUMBER_5016(new BigDecimal("5016")), + + NUMBER_5017(new BigDecimal("5017")), + + NUMBER_90010(new BigDecimal("90010")), + + NUMBER_90011(new BigDecimal("90011")), + + NUMBER_90012(new BigDecimal("90012")), + + NUMBER_90013(new BigDecimal("90013")); + + private BigDecimal value; + + ChargeFrequencyCodeEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ChargeFrequencyCodeEnum fromValue(BigDecimal value) { + for (ChargeFrequencyCodeEnum b : ChargeFrequencyCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ChargeFrequencyCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ChargeFrequencyCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ChargeFrequencyCodeEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_CHARGE_FREQUENCY_CODE = "chargeFrequencyCode"; + @SerializedName(SERIALIZED_NAME_CHARGE_FREQUENCY_CODE) + private ChargeFrequencyCodeEnum chargeFrequencyCode; + + /** + * The currency code of the currency in that the charge is applied.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> + */ + @JsonAdapter(CurrencyCodeEnum.Adapter.class) + public enum CurrencyCodeEnum { + AED("AED"), + + ARS("ARS"), + + AUD("AUD"), + + AZN("AZN"), + + BGN("BGN"), + + BHD("BHD"), + + BRL("BRL"), + + CAD("CAD"), + + CHF("CHF"), + + CLP("CLP"), + + CNY("CNY"), + + COP("COP"), + + CZK("CZK"), + + DKK("DKK"), + + EGP("EGP"), + + EUR("EUR"), + + FJD("FJD"), + + GBP("GBP"), + + GEL("GEL"), + + HKD("HKD"), + + HUF("HUF"), + + IDR("IDR"), + + ILS("ILS"), + + INR("INR"), + + JOD("JOD"), + + JPY("JPY"), + + KRW("KRW"), + + KWD("KWD"), + + KZT("KZT"), + + MDL("MDL"), + + MXN("MXN"), + + MYR("MYR"), + + NAD("NAD"), + + NOK("NOK"), + + NZD("NZD"), + + OMR("OMR"), + + PLN("PLN"), + + QAR("QAR"), + + RON("RON"), + + RUB("RUB"), + + SAR("SAR"), + + SEK("SEK"), + + SGD("SGD"), + + THB("THB"), + + TRY("TRY"), + + TWD("TWD"), + + UAH("UAH"), + + USD("USD"), + + XOF("XOF"), + + ZAR("ZAR"); + + private String value; + + CurrencyCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CurrencyCodeEnum fromValue(String value) { + for (CurrencyCodeEnum b : CurrencyCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CurrencyCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CurrencyCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CurrencyCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CURRENCY_CODE = "currencyCode"; + @SerializedName(SERIALIZED_NAME_CURRENCY_CODE) + private CurrencyCodeEnum currencyCode; + + /** + * Gets or Sets conditionList + */ + @JsonAdapter(ConditionListEnum.Adapter.class) + public enum ConditionListEnum { + BRINGS_PET("guest_brings_pet"), + + DOESNT_CLEAN_BEFORE_CHECKOUT("guest_doesnt_clean_before_checkout"), + + SMOKES("guest_smokes"); + + private String value; + + ConditionListEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ConditionListEnum fromValue(String value) { + for (ConditionListEnum b : ConditionListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ConditionListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ConditionListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ConditionListEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CONDITION_LIST = "conditionList"; + @SerializedName(SERIALIZED_NAME_CONDITION_LIST) + private List conditionList = new ArrayList<>(); + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner typeCode(TypeCodeEnum typeCode) { + + this.typeCode = typeCode; + return this; + } + + /** + * The code that represents the type of fee.<p>See also <a href=\"#feetype-codes\">in the appendix</a>.</p> + * @return typeCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "36", required = true, value = "The code that represents the type of fee.

See also in the appendix.

") + + public TypeCodeEnum getTypeCode() { + return typeCode; + } + + + public void setTypeCode(TypeCodeEnum typeCode) { + this.typeCode = typeCode; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner percent(BigDecimal percent) { + + this.percent = percent; + return this; + } + + /** + * The charged percentage if applicable. + * @return percent + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "19", value = "The charged percentage if applicable.") + + public BigDecimal getPercent() { + return percent; + } + + + public void setPercent(BigDecimal percent) { + this.percent = percent; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner chargeType(ChargeTypeEnum chargeType) { + + this.chargeType = chargeType; + return this; + } + + /** + * The type of charge. + * @return chargeType + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "included", required = true, value = "The type of charge.") + + public ChargeTypeEnum getChargeType() { + return chargeType; + } + + + public void setChargeType(ChargeTypeEnum chargeType) { + this.chargeType = chargeType; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner chargeFrequencyCode(ChargeFrequencyCodeEnum chargeFrequencyCode) { + + this.chargeFrequencyCode = chargeFrequencyCode; + return this; + } + + /** + * The code that represents the frequency of charge.<p>See also <a href=\"#chargetype-codes\">in the appendix</a>.</p> + * @return chargeFrequencyCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "12", required = true, value = "The code that represents the frequency of charge.

See also in the appendix.

") + + public ChargeFrequencyCodeEnum getChargeFrequencyCode() { + return chargeFrequencyCode; + } + + + public void setChargeFrequencyCode(ChargeFrequencyCodeEnum chargeFrequencyCode) { + this.chargeFrequencyCode = chargeFrequencyCode; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner currencyCode(CurrencyCodeEnum currencyCode) { + + this.currencyCode = currencyCode; + return this; + } + + /** + * The currency code of the currency in that the charge is applied.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> + * @return currencyCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "EUR", required = true, value = "The currency code of the currency in that the charge is applied.

See also in the appendix.

") + + public CurrencyCodeEnum getCurrencyCode() { + return currencyCode; + } + + + public void setCurrencyCode(CurrencyCodeEnum currencyCode) { + this.currencyCode = currencyCode; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner conditionList(List conditionList) { + + this.conditionList = conditionList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner addConditionListItem(ConditionListEnum conditionListItem) { + this.conditionList.add(conditionListItem); + return this; + } + + /** + * A list of conditions for the tax. Is empty if <code>chargeType</code> is not <code>conditional</code>. + * @return conditionList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[]", required = true, value = "A list of conditions for the tax. Is empty if chargeType is not conditional.") + + public List getConditionList() { + return conditionList; + } + + + public void setConditionList(List conditionList) { + this.conditionList = conditionList; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner propertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner = (PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner) o; + return Objects.equals(this.typeCode, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.typeCode) && + Objects.equals(this.percent, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.percent) && + Objects.equals(this.chargeType, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.chargeType) && + Objects.equals(this.chargeFrequencyCode, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.chargeFrequencyCode) && + Objects.equals(this.currencyCode, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.currencyCode) && + Objects.equals(this.conditionList, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.conditionList); + } + + @Override + public int hashCode() { + return Objects.hash(typeCode, percent, chargeType, chargeFrequencyCode, currencyCode, conditionList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner {\n"); + sb.append(" typeCode: ").append(toIndentedString(typeCode)).append("\n"); + sb.append(" percent: ").append(toIndentedString(percent)).append("\n"); + sb.append(" chargeType: ").append(toIndentedString(chargeType)).append("\n"); + sb.append(" chargeFrequencyCode: ").append(toIndentedString(chargeFrequencyCode)).append("\n"); + sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n"); + sb.append(" conditionList: ").append(toIndentedString(conditionList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("typeCode"); + openapiFields.add("percent"); + openapiFields.add("chargeType"); + openapiFields.add("chargeFrequencyCode"); + openapiFields.add("currencyCode"); + openapiFields.add("conditionList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("typeCode"); + openapiRequiredFields.add("chargeType"); + openapiRequiredFields.add("chargeFrequencyCode"); + openapiRequiredFields.add("currencyCode"); + openapiRequiredFields.add("conditionList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("chargeType") != null && !jsonObj.get("chargeType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `chargeType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("chargeType").toString())); + } + if (jsonObj.get("currencyCode") != null && !jsonObj.get("currencyCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currencyCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currencyCode").toString())); + } + // ensure the json data is an array + if (jsonObj.get("conditionList") != null && !jsonObj.get("conditionList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditionList` to be an array in the JSON string but got `%s`", jsonObj.get("conditionList").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.java new file mode 100644 index 0000000..dde142e --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.java @@ -0,0 +1,405 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * Defines the guarantee amount that has to be paid to the property. + */ +@ApiModel(description = "Defines the guarantee amount that has to be paid to the property.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy { + public static final String SERIALIZED_NAME_PERCENT_AFTER_RESERVATION = "percentAfterReservation"; + @SerializedName(SERIALIZED_NAME_PERCENT_AFTER_RESERVATION) + private BigDecimal percentAfterReservation; + + public static final String SERIALIZED_NAME_NIGHTS_AFTER_RESERVATION = "nightsAfterReservation"; + @SerializedName(SERIALIZED_NAME_NIGHTS_AFTER_RESERVATION) + private BigDecimal nightsAfterReservation; + + public static final String SERIALIZED_NAME_DEADLINE_DAYS = "deadlineDays"; + @SerializedName(SERIALIZED_NAME_DEADLINE_DAYS) + private BigDecimal deadlineDays; + + public static final String SERIALIZED_NAME_DEADLINE_HOURS = "deadlineHours"; + @SerializedName(SERIALIZED_NAME_DEADLINE_HOURS) + private BigDecimal deadlineHours; + + public static final String SERIALIZED_NAME_PERCENT_AFTER_DEADLINE = "percentAfterDeadline"; + @SerializedName(SERIALIZED_NAME_PERCENT_AFTER_DEADLINE) + private BigDecimal percentAfterDeadline; + + public static final String SERIALIZED_NAME_NIGHTS_AFTER_DEADLINE = "nightsAfterDeadline"; + @SerializedName(SERIALIZED_NAME_NIGHTS_AFTER_DEADLINE) + private BigDecimal nightsAfterDeadline; + + public static final String SERIALIZED_NAME_NO_SHOW_POLICY = "noShowPolicy"; + @SerializedName(SERIALIZED_NAME_NO_SHOW_POLICY) + private String noShowPolicy; + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy() { + } + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy percentAfterReservation(BigDecimal percentAfterReservation) { + + this.percentAfterReservation = percentAfterReservation; + return this; + } + + /** + * Percentage of refund after reservation. + * @return percentAfterReservation + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0", required = true, value = "Percentage of refund after reservation.") + + public BigDecimal getPercentAfterReservation() { + return percentAfterReservation; + } + + + public void setPercentAfterReservation(BigDecimal percentAfterReservation) { + this.percentAfterReservation = percentAfterReservation; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy nightsAfterReservation(BigDecimal nightsAfterReservation) { + + this.nightsAfterReservation = nightsAfterReservation; + return this; + } + + /** + * Number of nights after reservation. + * @return nightsAfterReservation + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0", required = true, value = "Number of nights after reservation.") + + public BigDecimal getNightsAfterReservation() { + return nightsAfterReservation; + } + + + public void setNightsAfterReservation(BigDecimal nightsAfterReservation) { + this.nightsAfterReservation = nightsAfterReservation; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy deadlineDays(BigDecimal deadlineDays) { + + this.deadlineDays = deadlineDays; + return this; + } + + /** + * Deadline in days. + * @return deadlineDays + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0", required = true, value = "Deadline in days.") + + public BigDecimal getDeadlineDays() { + return deadlineDays; + } + + + public void setDeadlineDays(BigDecimal deadlineDays) { + this.deadlineDays = deadlineDays; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy deadlineHours(BigDecimal deadlineHours) { + + this.deadlineHours = deadlineHours; + return this; + } + + /** + * Deadline in hours. + * @return deadlineHours + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0", required = true, value = "Deadline in hours.") + + public BigDecimal getDeadlineHours() { + return deadlineHours; + } + + + public void setDeadlineHours(BigDecimal deadlineHours) { + this.deadlineHours = deadlineHours; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy percentAfterDeadline(BigDecimal percentAfterDeadline) { + + this.percentAfterDeadline = percentAfterDeadline; + return this; + } + + /** + * Percentage of refund after deadline. + * @return percentAfterDeadline + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0", required = true, value = "Percentage of refund after deadline.") + + public BigDecimal getPercentAfterDeadline() { + return percentAfterDeadline; + } + + + public void setPercentAfterDeadline(BigDecimal percentAfterDeadline) { + this.percentAfterDeadline = percentAfterDeadline; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy nightsAfterDeadline(BigDecimal nightsAfterDeadline) { + + this.nightsAfterDeadline = nightsAfterDeadline; + return this; + } + + /** + * Number of nights after deadline. + * @return nightsAfterDeadline + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0", required = true, value = "Number of nights after deadline.") + + public BigDecimal getNightsAfterDeadline() { + return nightsAfterDeadline; + } + + + public void setNightsAfterDeadline(BigDecimal nightsAfterDeadline) { + this.nightsAfterDeadline = nightsAfterDeadline; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy noShowPolicy(String noShowPolicy) { + + this.noShowPolicy = noShowPolicy; + return this; + } + + /** + * No-show policy + * @return noShowPolicy + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Default", required = true, value = "No-show policy") + + public String getNoShowPolicy() { + return noShowPolicy; + } + + + public void setNoShowPolicy(String noShowPolicy) { + this.noShowPolicy = noShowPolicy; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy propertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy = (PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy) o; + return Objects.equals(this.percentAfterReservation, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.percentAfterReservation) && + Objects.equals(this.nightsAfterReservation, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.nightsAfterReservation) && + Objects.equals(this.deadlineDays, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.deadlineDays) && + Objects.equals(this.deadlineHours, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.deadlineHours) && + Objects.equals(this.percentAfterDeadline, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.percentAfterDeadline) && + Objects.equals(this.nightsAfterDeadline, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.nightsAfterDeadline) && + Objects.equals(this.noShowPolicy, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.noShowPolicy); + } + + @Override + public int hashCode() { + return Objects.hash(percentAfterReservation, nightsAfterReservation, deadlineDays, deadlineHours, percentAfterDeadline, nightsAfterDeadline, noShowPolicy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy {\n"); + sb.append(" percentAfterReservation: ").append(toIndentedString(percentAfterReservation)).append("\n"); + sb.append(" nightsAfterReservation: ").append(toIndentedString(nightsAfterReservation)).append("\n"); + sb.append(" deadlineDays: ").append(toIndentedString(deadlineDays)).append("\n"); + sb.append(" deadlineHours: ").append(toIndentedString(deadlineHours)).append("\n"); + sb.append(" percentAfterDeadline: ").append(toIndentedString(percentAfterDeadline)).append("\n"); + sb.append(" nightsAfterDeadline: ").append(toIndentedString(nightsAfterDeadline)).append("\n"); + sb.append(" noShowPolicy: ").append(toIndentedString(noShowPolicy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("percentAfterReservation"); + openapiFields.add("nightsAfterReservation"); + openapiFields.add("deadlineDays"); + openapiFields.add("deadlineHours"); + openapiFields.add("percentAfterDeadline"); + openapiFields.add("nightsAfterDeadline"); + openapiFields.add("noShowPolicy"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("percentAfterReservation"); + openapiRequiredFields.add("nightsAfterReservation"); + openapiRequiredFields.add("deadlineDays"); + openapiRequiredFields.add("deadlineHours"); + openapiRequiredFields.add("percentAfterDeadline"); + openapiRequiredFields.add("nightsAfterDeadline"); + openapiRequiredFields.add("noShowPolicy"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("noShowPolicy") != null && !jsonObj.get("noShowPolicy").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `noShowPolicy` to be a primitive type in the JSON string but got `%s`", jsonObj.get("noShowPolicy").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy + */ + public static PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.java new file mode 100644 index 0000000..b1e07db --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.java @@ -0,0 +1,277 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * Contains information about the pets policy of the property + */ +@ApiModel(description = "Contains information about the pets policy of the property") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy { + public static final String SERIALIZED_NAME_ALLOWED = "allowed"; + @SerializedName(SERIALIZED_NAME_ALLOWED) + private Boolean allowed; + + public static final String SERIALIZED_NAME_BY_ARRANGEMENT = "byArrangement"; + @SerializedName(SERIALIZED_NAME_BY_ARRANGEMENT) + private Boolean byArrangement; + + public static final String SERIALIZED_NAME_FREE_OF_CHARGE = "freeOfCharge"; + @SerializedName(SERIALIZED_NAME_FREE_OF_CHARGE) + private Boolean freeOfCharge; + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy() { + } + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy allowed(Boolean allowed) { + + this.allowed = allowed; + return this; + } + + /** + * Indicates if pets are allowed in the property. + * @return allowed + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "false", required = true, value = "Indicates if pets are allowed in the property.") + + public Boolean getAllowed() { + return allowed; + } + + + public void setAllowed(Boolean allowed) { + this.allowed = allowed; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy byArrangement(Boolean byArrangement) { + + this.byArrangement = byArrangement; + return this; + } + + /** + * Indicates if pets are allowed by arrangement. + * @return byArrangement + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "false", required = true, value = "Indicates if pets are allowed by arrangement.") + + public Boolean getByArrangement() { + return byArrangement; + } + + + public void setByArrangement(Boolean byArrangement) { + this.byArrangement = byArrangement; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy freeOfCharge(Boolean freeOfCharge) { + + this.freeOfCharge = freeOfCharge; + return this; + } + + /** + * Indicates if pets are allowed without any additional charge. + * @return freeOfCharge + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "false", required = true, value = "Indicates if pets are allowed without any additional charge.") + + public Boolean getFreeOfCharge() { + return freeOfCharge; + } + + + public void setFreeOfCharge(Boolean freeOfCharge) { + this.freeOfCharge = freeOfCharge; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy propertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy = (PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy) o; + return Objects.equals(this.allowed, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.allowed) && + Objects.equals(this.byArrangement, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.byArrangement) && + Objects.equals(this.freeOfCharge, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.freeOfCharge); + } + + @Override + public int hashCode() { + return Objects.hash(allowed, byArrangement, freeOfCharge); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy {\n"); + sb.append(" allowed: ").append(toIndentedString(allowed)).append("\n"); + sb.append(" byArrangement: ").append(toIndentedString(byArrangement)).append("\n"); + sb.append(" freeOfCharge: ").append(toIndentedString(freeOfCharge)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("allowed"); + openapiFields.add("byArrangement"); + openapiFields.add("freeOfCharge"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("allowed"); + openapiRequiredFields.add("byArrangement"); + openapiRequiredFields.add("freeOfCharge"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy + */ + public static PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.java new file mode 100644 index 0000000..0f6cf66 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.java @@ -0,0 +1,815 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner { + /** + * The code that represents the type of tax.<p>See also <a href=\"#taxtype-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(TypeCodeEnum.Adapter.class) + public enum TypeCodeEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_30(new BigDecimal("30")), + + NUMBER_35(new BigDecimal("35")), + + NUMBER_36(new BigDecimal("36")), + + NUMBER_39(new BigDecimal("39")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_46(new BigDecimal("46")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")); + + private BigDecimal value; + + TypeCodeEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeCodeEnum fromValue(BigDecimal value) { + for (TypeCodeEnum b : TypeCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeCodeEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_TYPE_CODE = "typeCode"; + @SerializedName(SERIALIZED_NAME_TYPE_CODE) + private TypeCodeEnum typeCode; + + public static final String SERIALIZED_NAME_PERCENT = "percent"; + @SerializedName(SERIALIZED_NAME_PERCENT) + private BigDecimal percent; + + /** + * The type of charge. + */ + @JsonAdapter(ChargeTypeEnum.Adapter.class) + public enum ChargeTypeEnum { + INCLUDED("included"), + + EXCLUDED("excluded"), + + CONDITIONAL("conditional"); + + private String value; + + ChargeTypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ChargeTypeEnum fromValue(String value) { + for (ChargeTypeEnum b : ChargeTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ChargeTypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ChargeTypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ChargeTypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CHARGE_TYPE = "chargeType"; + @SerializedName(SERIALIZED_NAME_CHARGE_TYPE) + private ChargeTypeEnum chargeType; + + /** + * The code that represents the frequency of charge.<p>See also <a href=\"#chargetype-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(ChargeFrequencyCodeEnum.Adapter.class) + public enum ChargeFrequencyCodeEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_5000(new BigDecimal("5000")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5010(new BigDecimal("5010")), + + NUMBER_5011(new BigDecimal("5011")), + + NUMBER_5012(new BigDecimal("5012")), + + NUMBER_5013(new BigDecimal("5013")), + + NUMBER_5014(new BigDecimal("5014")), + + NUMBER_5015(new BigDecimal("5015")), + + NUMBER_5016(new BigDecimal("5016")), + + NUMBER_5017(new BigDecimal("5017")), + + NUMBER_90010(new BigDecimal("90010")), + + NUMBER_90011(new BigDecimal("90011")), + + NUMBER_90012(new BigDecimal("90012")), + + NUMBER_90013(new BigDecimal("90013")); + + private BigDecimal value; + + ChargeFrequencyCodeEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ChargeFrequencyCodeEnum fromValue(BigDecimal value) { + for (ChargeFrequencyCodeEnum b : ChargeFrequencyCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ChargeFrequencyCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ChargeFrequencyCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ChargeFrequencyCodeEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_CHARGE_FREQUENCY_CODE = "chargeFrequencyCode"; + @SerializedName(SERIALIZED_NAME_CHARGE_FREQUENCY_CODE) + private ChargeFrequencyCodeEnum chargeFrequencyCode; + + /** + * The currency code of the currency in that the charge is applied.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> + */ + @JsonAdapter(CurrencyCodeEnum.Adapter.class) + public enum CurrencyCodeEnum { + AED("AED"), + + ARS("ARS"), + + AUD("AUD"), + + AZN("AZN"), + + BGN("BGN"), + + BHD("BHD"), + + BRL("BRL"), + + CAD("CAD"), + + CHF("CHF"), + + CLP("CLP"), + + CNY("CNY"), + + COP("COP"), + + CZK("CZK"), + + DKK("DKK"), + + EGP("EGP"), + + EUR("EUR"), + + FJD("FJD"), + + GBP("GBP"), + + GEL("GEL"), + + HKD("HKD"), + + HUF("HUF"), + + IDR("IDR"), + + ILS("ILS"), + + INR("INR"), + + JOD("JOD"), + + JPY("JPY"), + + KRW("KRW"), + + KWD("KWD"), + + KZT("KZT"), + + MDL("MDL"), + + MXN("MXN"), + + MYR("MYR"), + + NAD("NAD"), + + NOK("NOK"), + + NZD("NZD"), + + OMR("OMR"), + + PLN("PLN"), + + QAR("QAR"), + + RON("RON"), + + RUB("RUB"), + + SAR("SAR"), + + SEK("SEK"), + + SGD("SGD"), + + THB("THB"), + + TRY("TRY"), + + TWD("TWD"), + + UAH("UAH"), + + USD("USD"), + + XOF("XOF"), + + ZAR("ZAR"); + + private String value; + + CurrencyCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CurrencyCodeEnum fromValue(String value) { + for (CurrencyCodeEnum b : CurrencyCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CurrencyCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CurrencyCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CurrencyCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CURRENCY_CODE = "currencyCode"; + @SerializedName(SERIALIZED_NAME_CURRENCY_CODE) + private CurrencyCodeEnum currencyCode; + + /** + * Gets or Sets conditionList + */ + @JsonAdapter(ConditionListEnum.Adapter.class) + public enum ConditionListEnum { + BRINGS_PET("guest_brings_pet"), + + DOESNT_CLEAN_BEFORE_CHECKOUT("guest_doesnt_clean_before_checkout"), + + SMOKES("guest_smokes"); + + private String value; + + ConditionListEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ConditionListEnum fromValue(String value) { + for (ConditionListEnum b : ConditionListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ConditionListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ConditionListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ConditionListEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CONDITION_LIST = "conditionList"; + @SerializedName(SERIALIZED_NAME_CONDITION_LIST) + private List conditionList = new ArrayList<>(); + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner typeCode(TypeCodeEnum typeCode) { + + this.typeCode = typeCode; + return this; + } + + /** + * The code that represents the type of tax.<p>See also <a href=\"#taxtype-codes\">in the appendix</a>.</p> + * @return typeCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "36", required = true, value = "The code that represents the type of tax.

See also in the appendix.

") + + public TypeCodeEnum getTypeCode() { + return typeCode; + } + + + public void setTypeCode(TypeCodeEnum typeCode) { + this.typeCode = typeCode; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner percent(BigDecimal percent) { + + this.percent = percent; + return this; + } + + /** + * The charged percentage if applicable. + * @return percent + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "19", value = "The charged percentage if applicable.") + + public BigDecimal getPercent() { + return percent; + } + + + public void setPercent(BigDecimal percent) { + this.percent = percent; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner chargeType(ChargeTypeEnum chargeType) { + + this.chargeType = chargeType; + return this; + } + + /** + * The type of charge. + * @return chargeType + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "included", required = true, value = "The type of charge.") + + public ChargeTypeEnum getChargeType() { + return chargeType; + } + + + public void setChargeType(ChargeTypeEnum chargeType) { + this.chargeType = chargeType; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner chargeFrequencyCode(ChargeFrequencyCodeEnum chargeFrequencyCode) { + + this.chargeFrequencyCode = chargeFrequencyCode; + return this; + } + + /** + * The code that represents the frequency of charge.<p>See also <a href=\"#chargetype-codes\">in the appendix</a>.</p> + * @return chargeFrequencyCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "12", required = true, value = "The code that represents the frequency of charge.

See also in the appendix.

") + + public ChargeFrequencyCodeEnum getChargeFrequencyCode() { + return chargeFrequencyCode; + } + + + public void setChargeFrequencyCode(ChargeFrequencyCodeEnum chargeFrequencyCode) { + this.chargeFrequencyCode = chargeFrequencyCode; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner currencyCode(CurrencyCodeEnum currencyCode) { + + this.currencyCode = currencyCode; + return this; + } + + /** + * The currency code of the currency in that the charge is applied.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> + * @return currencyCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "EUR", required = true, value = "The currency code of the currency in that the charge is applied.

See also in the appendix.

") + + public CurrencyCodeEnum getCurrencyCode() { + return currencyCode; + } + + + public void setCurrencyCode(CurrencyCodeEnum currencyCode) { + this.currencyCode = currencyCode; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner conditionList(List conditionList) { + + this.conditionList = conditionList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner addConditionListItem(ConditionListEnum conditionListItem) { + this.conditionList.add(conditionListItem); + return this; + } + + /** + * A list of conditions for the tax. Is empty if <code>chargeType</code> is not <code>conditional</code>. + * @return conditionList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[]", required = true, value = "A list of conditions for the tax. Is empty if chargeType is not conditional.") + + public List getConditionList() { + return conditionList; + } + + + public void setConditionList(List conditionList) { + this.conditionList = conditionList; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner propertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner = (PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner) o; + return Objects.equals(this.typeCode, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.typeCode) && + Objects.equals(this.percent, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.percent) && + Objects.equals(this.chargeType, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.chargeType) && + Objects.equals(this.chargeFrequencyCode, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.chargeFrequencyCode) && + Objects.equals(this.currencyCode, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.currencyCode) && + Objects.equals(this.conditionList, propertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.conditionList); + } + + @Override + public int hashCode() { + return Objects.hash(typeCode, percent, chargeType, chargeFrequencyCode, currencyCode, conditionList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner {\n"); + sb.append(" typeCode: ").append(toIndentedString(typeCode)).append("\n"); + sb.append(" percent: ").append(toIndentedString(percent)).append("\n"); + sb.append(" chargeType: ").append(toIndentedString(chargeType)).append("\n"); + sb.append(" chargeFrequencyCode: ").append(toIndentedString(chargeFrequencyCode)).append("\n"); + sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n"); + sb.append(" conditionList: ").append(toIndentedString(conditionList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("typeCode"); + openapiFields.add("percent"); + openapiFields.add("chargeType"); + openapiFields.add("chargeFrequencyCode"); + openapiFields.add("currencyCode"); + openapiFields.add("conditionList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("typeCode"); + openapiRequiredFields.add("chargeType"); + openapiRequiredFields.add("chargeFrequencyCode"); + openapiRequiredFields.add("currencyCode"); + openapiRequiredFields.add("conditionList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("chargeType") != null && !jsonObj.get("chargeType").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `chargeType` to be a primitive type in the JSON string but got `%s`", jsonObj.get("chargeType").toString())); + } + if (jsonObj.get("currencyCode") != null && !jsonObj.get("currencyCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currencyCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currencyCode").toString())); + } + // ensure the json data is an array + if (jsonObj.get("conditionList") != null && !jsonObj.get("conditionList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `conditionList` to be an array in the JSON string but got `%s`", jsonObj.get("conditionList").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.java new file mode 100644 index 0000000..5db6653 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.java @@ -0,0 +1,774 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner1GeoLocation; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * General information regarding the property. + */ +@ApiModel(description = "General information regarding the property.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyPropertyInfo { + public static final String SERIALIZED_NAME_UNIT_COUNT = "unitCount"; + @SerializedName(SERIALIZED_NAME_UNIT_COUNT) + private BigDecimal unitCount; + + public static final String SERIALIZED_NAME_MESSAGE_LIST = "messageList"; + @SerializedName(SERIALIZED_NAME_MESSAGE_LIST) + private List messageList = new ArrayList<>(); + + /** + * A property class type code.<p>See also <a href=\"#propertyclass-type-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(CategoryListEnum.Adapter.class) + public enum CategoryListEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_30(new BigDecimal("30")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")), + + NUMBER_34(new BigDecimal("34")), + + NUMBER_35(new BigDecimal("35")), + + NUMBER_36(new BigDecimal("36")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_38(new BigDecimal("38")), + + NUMBER_39(new BigDecimal("39")), + + NUMBER_40(new BigDecimal("40")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_44(new BigDecimal("44")), + + NUMBER_45(new BigDecimal("45")), + + NUMBER_46(new BigDecimal("46")), + + NUMBER_47(new BigDecimal("47")), + + NUMBER_48(new BigDecimal("48")), + + NUMBER_49(new BigDecimal("49")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_51(new BigDecimal("51")), + + NUMBER_52(new BigDecimal("52")), + + NUMBER_53(new BigDecimal("53")), + + NUMBER_54(new BigDecimal("54")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_56(new BigDecimal("56")), + + NUMBER_57(new BigDecimal("57")), + + NUMBER_58(new BigDecimal("58")), + + NUMBER_59(new BigDecimal("59")), + + NUMBER_60(new BigDecimal("60")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_62(new BigDecimal("62")), + + NUMBER_5000(new BigDecimal("5000")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")), + + NUMBER_5009(new BigDecimal("5009")); + + private BigDecimal value; + + CategoryListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CategoryListEnum fromValue(BigDecimal value) { + for (CategoryListEnum b : CategoryListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CategoryListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CategoryListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CategoryListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_CATEGORY_LIST = "categoryList"; + @SerializedName(SERIALIZED_NAME_CATEGORY_LIST) + private List categoryList = new ArrayList<>(); + + /** + * Gets or Sets languageList + */ + @JsonAdapter(LanguageListEnum.Adapter.class) + public enum LanguageListEnum { + AF("af"), + + AR("ar"), + + AZ("az"), + + BE("be"), + + BG("bg"), + + CA("ca"), + + CS("cs"), + + DA("da"), + + DE("de"), + + EL("el"), + + EN("en"), + + EN_GB("en-gb"), + + EN_US("en-us"), + + ES("es"), + + ES_AR("es-ar"), + + ET("et"), + + FR("fr"), + + FI("fi"), + + HE("he"), + + HI("hi"), + + HR("hr"), + + HU("hu"), + + ID("id"), + + IS("is"), + + IT("it"), + + JA("ja"), + + KM("km"), + + KO("ko"), + + LO("lo"), + + LT("lt"), + + LV("lv"), + + MS("ms"), + + NL("nl"), + + NO("no"), + + PL("pl"), + + PT("pt"), + + PT_BR("pt-br"), + + PT_PT("pt-pt"), + + RO("ro"), + + RU("ru"), + + SK("sk"), + + SL("sl"), + + SR("sr"), + + SV("sv"), + + TL("tl"), + + TH("th"), + + TR("tr"), + + UK("uk"), + + VI("vi"), + + XA("xa"), + + XB("xb"), + + XS("xs"), + + XT("xt"), + + XU("xu"), + + ZH("zh"), + + ZH_CN("zh-cn"), + + ZH_TW("zh-tw"); + + private String value; + + LanguageListEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LanguageListEnum fromValue(String value) { + for (LanguageListEnum b : LanguageListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LanguageListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LanguageListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LanguageListEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_LANGUAGE_LIST = "languageList"; + @SerializedName(SERIALIZED_NAME_LANGUAGE_LIST) + private List languageList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_LOCATION = "location"; + @SerializedName(SERIALIZED_NAME_LOCATION) + private AvailablePropertiesInner1GeoLocation location; + + public static final String SERIALIZED_NAME_ACCEPTED_PAYMENT_LIST = "acceptedPaymentList"; + @SerializedName(SERIALIZED_NAME_ACCEPTED_PAYMENT_LIST) + private List acceptedPaymentList = new ArrayList<>(); + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo() { + } + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo unitCount(BigDecimal unitCount) { + + this.unitCount = unitCount; + return this; + } + + /** + * The amount of units the property has. + * @return unitCount + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "4", value = "The amount of units the property has.") + + public BigDecimal getUnitCount() { + return unitCount; + } + + + public void setUnitCount(BigDecimal unitCount) { + this.unitCount = unitCount; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo messageList(List messageList) { + + this.messageList = messageList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo addMessageListItem(PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner messageListItem) { + this.messageList.add(messageListItem); + return this; + } + + /** + * Contains a descriptive message for this property in all supported languages. + * @return messageList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[{\"languageCode\":\"en\",\"text\":\"More sea does not work! In a unique location just behind the dunes, less than 100 steps from the beach and the spa promenade, in a prime location on the beach “Nordhedig”, you can enjoy your stay in a small, new 5-star luxury complex (DTV classification) with a total of 4 separate apartments for 2-4 people. The interior has a modern rural style that offers all the amenities. You can find films about the property and individual apartments on our website. \"},{\"languageCode\":\"da\",\"text\":\"Mere hav virker ikke! I en unik beliggenhed lige bag klitterne, mindre end 100 skridt fra stranden og spa-promenaden, i en førsteklasses beliggenhed på stranden „Nordhedig“, kan du nyde dit ophold i et lille, nyt 5-stjernet luksuskompleks (DTV klassifikation) med i alt 4 separate lejligheder til 2-4 personer. Interiøret har en moderne landlig stil, der tilbyder alle bekvemmeligheder. Du kan finde film om ejendommen og individuelle lejligheder på vores hjemmeside. \"},{\"languageCode\":\"nl\",\"text\":\"Meer zee werkt niet! Op een unieke locatie net achter de duinen, op minder dan 100 stappen van het strand en de spa-promenade, op een toplocatie aan het strand „Nordhedig”, kunt u genieten van uw verblijf in een klein, nieuw 5-sterren luxe complex (DTV classificatie) met in totaal 4 aparte appartementen voor 2-4 personen. Het interieur heeft een moderne landelijke stijl die alle voorzieningen biedt. U kunt films over het pand en de individuele appartementen vinden op onze website. \"},{\"languageCode\":\"de\",\"text\":\"Mehr Meer geht nicht! In einer einzigartigen Lage direkt hinter den Dünen, weniger als 100 Schritte vom Strand und der Kurpromenade entfernt, in bester Lage am Strand „Nordhedig“, können Sie Ihren Aufenthalt in einem kleinen, neuen 5-Sterne-Luxuskomplex (DTV-Klassifizierung) mit insgesamt 4 separaten Apartments für 2-4 Personen genießen. Das Interieur hat einen modernen ländlichen Stil, der alle Annehmlichkeiten bietet. Filme über das Anwesen und einzelne Apartments finden Sie auf unserer Website. \"}]", required = true, value = "Contains a descriptive message for this property in all supported languages.") + + public List getMessageList() { + return messageList; + } + + + public void setMessageList(List messageList) { + this.messageList = messageList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo categoryList(List categoryList) { + + this.categoryList = categoryList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo addCategoryListItem(CategoryListEnum categoryListItem) { + this.categoryList.add(categoryListItem); + return this; + } + + /** + * A list of code of the property class types that apply to the property. + * @return categoryList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[1,14,42]", required = true, value = "A list of code of the property class types that apply to the property.") + + public List getCategoryList() { + return categoryList; + } + + + public void setCategoryList(List categoryList) { + this.categoryList = categoryList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo languageList(List languageList) { + + this.languageList = languageList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo addLanguageListItem(LanguageListEnum languageListItem) { + this.languageList.add(languageListItem); + return this; + } + + /** + * The codes of languages the staff of this property can speak. Please note that these codes partially differ from the two character ISO language codes widely used throughout the API as they partially include country specific language code.<p>See also <a href=\"#languagecountry-code\">in the appendix</a>.</p> + * @return languageList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[\"de\",\"en-gb\"]", required = true, value = "The codes of languages the staff of this property can speak. Please note that these codes partially differ from the two character ISO language codes widely used throughout the API as they partially include country specific language code.

See also in the appendix.

") + + public List getLanguageList() { + return languageList; + } + + + public void setLanguageList(List languageList) { + this.languageList = languageList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo location(AvailablePropertiesInner1GeoLocation location) { + + this.location = location; + return this; + } + + /** + * Get location + * @return location + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public AvailablePropertiesInner1GeoLocation getLocation() { + return location; + } + + + public void setLocation(AvailablePropertiesInner1GeoLocation location) { + this.location = location; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo acceptedPaymentList(List acceptedPaymentList) { + + this.acceptedPaymentList = acceptedPaymentList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo addAcceptedPaymentListItem(PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner acceptedPaymentListItem) { + this.acceptedPaymentList.add(acceptedPaymentListItem); + return this; + } + + /** + * A list of the accepted payment methods. Payment methods might subject to frequent change as payment providers come and go. You should always implement a way to handle new, unexpected payment methods.<p>See also <a href=\"#paymenttypes\">in the appendix</a>.</p> + * @return acceptedPaymentList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of the accepted payment methods. Payment methods might subject to frequent change as payment providers come and go. You should always implement a way to handle new, unexpected payment methods.

See also in the appendix.

") + + public List getAcceptedPaymentList() { + return acceptedPaymentList; + } + + + public void setAcceptedPaymentList(List acceptedPaymentList) { + this.acceptedPaymentList = acceptedPaymentList; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyPropertyInfo propertiesPropertyIdGet200ResponsePropertyPropertyInfo = (PropertiesPropertyIdGet200ResponsePropertyPropertyInfo) o; + return Objects.equals(this.unitCount, propertiesPropertyIdGet200ResponsePropertyPropertyInfo.unitCount) && + Objects.equals(this.messageList, propertiesPropertyIdGet200ResponsePropertyPropertyInfo.messageList) && + Objects.equals(this.categoryList, propertiesPropertyIdGet200ResponsePropertyPropertyInfo.categoryList) && + Objects.equals(this.languageList, propertiesPropertyIdGet200ResponsePropertyPropertyInfo.languageList) && + Objects.equals(this.location, propertiesPropertyIdGet200ResponsePropertyPropertyInfo.location) && + Objects.equals(this.acceptedPaymentList, propertiesPropertyIdGet200ResponsePropertyPropertyInfo.acceptedPaymentList); + } + + @Override + public int hashCode() { + return Objects.hash(unitCount, messageList, categoryList, languageList, location, acceptedPaymentList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyPropertyInfo {\n"); + sb.append(" unitCount: ").append(toIndentedString(unitCount)).append("\n"); + sb.append(" messageList: ").append(toIndentedString(messageList)).append("\n"); + sb.append(" categoryList: ").append(toIndentedString(categoryList)).append("\n"); + sb.append(" languageList: ").append(toIndentedString(languageList)).append("\n"); + sb.append(" location: ").append(toIndentedString(location)).append("\n"); + sb.append(" acceptedPaymentList: ").append(toIndentedString(acceptedPaymentList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("unitCount"); + openapiFields.add("messageList"); + openapiFields.add("categoryList"); + openapiFields.add("languageList"); + openapiFields.add("location"); + openapiFields.add("acceptedPaymentList"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("messageList"); + openapiRequiredFields.add("categoryList"); + openapiRequiredFields.add("languageList"); + openapiRequiredFields.add("acceptedPaymentList"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPropertyInfo + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyPropertyInfo is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyPropertyInfo` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + JsonArray jsonArraymessageList = jsonObj.getAsJsonArray("messageList"); + if (jsonArraymessageList != null) { + // ensure the json data is an array + if (!jsonObj.get("messageList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `messageList` to be an array in the JSON string but got `%s`", jsonObj.get("messageList").toString())); + } + + // validate the optional field `messageList` (array) + for (int i = 0; i < jsonArraymessageList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.validateJsonObject(jsonArraymessageList.get(i).getAsJsonObject()); + }; + } + // ensure the json data is an array + if (jsonObj.get("categoryList") != null && !jsonObj.get("categoryList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `categoryList` to be an array in the JSON string but got `%s`", jsonObj.get("categoryList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("languageList") != null && !jsonObj.get("languageList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `languageList` to be an array in the JSON string but got `%s`", jsonObj.get("languageList").toString())); + } + // validate the optional field `location` + if (jsonObj.getAsJsonObject("location") != null) { + AvailablePropertiesInner1GeoLocation.validateJsonObject(jsonObj.getAsJsonObject("location")); + } + JsonArray jsonArrayacceptedPaymentList = jsonObj.getAsJsonArray("acceptedPaymentList"); + if (jsonArrayacceptedPaymentList != null) { + // ensure the json data is an array + if (!jsonObj.get("acceptedPaymentList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `acceptedPaymentList` to be an array in the JSON string but got `%s`", jsonObj.get("acceptedPaymentList").toString())); + } + + // validate the optional field `acceptedPaymentList` (array) + for (int i = 0; i < jsonArrayacceptedPaymentList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.validateJsonObject(jsonArrayacceptedPaymentList.get(i).getAsJsonObject()); + }; + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyPropertyInfo' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyPropertyInfo value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfo read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyPropertyInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyPropertyInfo + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPropertyInfo + */ + public static PropertiesPropertyIdGet200ResponsePropertyPropertyInfo fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyPropertyInfo to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.java new file mode 100644 index 0000000..7f64e4d --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.java @@ -0,0 +1,395 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner { + /** + * The code of the payment option. + */ + @JsonAdapter(CodeEnum.Adapter.class) + public enum CodeEnum { + AMEX("amex"), + + VISA("visa"), + + MASTERCARD("mastercard"), + + DINERS("diners"), + + JCB("jcb"), + + MAESTRO("maestro"), + + DISCOVER("discover"), + + BANCONTACT("bancontact"), + + CASHONLY("cashonly"), + + BANKCARD("bankcard"), + + CARTASI("cartasi"), + + ARGENCARD("argencard"), + + CABAL("cabal"), + + REDCOMPRA("redcompra"), + + OTHER("other"), + + GREATWALL("greatwall"), + + DRAGONPAY("dragonpay"), + + EFTPOS("eftpos"), + + HIPERCARD("hipercard"), + + UNIONPAYDEBIT("unionpaydebit"), + + ECCARD("eccard"), + + BCCARD("bccard"), + + MASTERCARDVIRTUAL("mastercardvirtual"), + + MASTERCARDGOOGLE("mastercardgoogle"), + + UNIONPAYCREDIT("unionpaycredit"); + + private String value; + + CodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CodeEnum fromValue(String value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private CodeEnum code; + + /** + * The type of the payment option. + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + CREDITCARD("creditcard"), + + DEBITCARD("debitcard"), + + PAYMENTSERVICE("paymentservice"), + + CASH("cash"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_TYPE = "type"; + @SerializedName(SERIALIZED_NAME_TYPE) + private TypeEnum type; + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner code(CodeEnum code) { + + this.code = code; + return this; + } + + /** + * The code of the payment option. + * @return code + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "eccard", required = true, value = "The code of the payment option.") + + public CodeEnum getCode() { + return code; + } + + + public void setCode(CodeEnum code) { + this.code = code; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner type(TypeEnum type) { + + this.type = type; + return this; + } + + /** + * The type of the payment option. + * @return type + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "debitcard", required = true, value = "The type of the payment option.") + + public TypeEnum getType() { + return type; + } + + + public void setType(TypeEnum type) { + this.type = type; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner propertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner = (PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner) o; + return Objects.equals(this.code, propertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.code) && + Objects.equals(this.type, propertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.type); + } + + @Override + public int hashCode() { + return Objects.hash(code, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("code"); + openapiFields.add("type"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("code"); + openapiRequiredFields.add("type"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("code") != null && !jsonObj.get("code").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `code` to be a primitive type in the JSON string but got `%s`", jsonObj.get("code").toString())); + } + if (jsonObj.get("type") != null && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.java new file mode 100644 index 0000000..e507909 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.java @@ -0,0 +1,370 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner { + /** + * The language of this message.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + */ + @JsonAdapter(LanguageCodeEnum.Adapter.class) + public enum LanguageCodeEnum { + AF("af"), + + AR("ar"), + + BG("bg"), + + CA("ca"), + + CS("cs"), + + DA("da"), + + DE("de"), + + EL("el"), + + EN("en"), + + ES("es"), + + ET("et"), + + FI("fi"), + + FR("fr"), + + HE("he"), + + HI("hi"), + + HR("hr"), + + HU("hu"), + + ID("id"), + + IS("is"), + + IT("it"), + + JA("ja"), + + KO("ko"), + + LT("lt"), + + LV("lv"), + + NL("nl"), + + NO("no"), + + PL("pl"), + + PT("pt"), + + RO("ro"), + + RU("ru"), + + SK("sk"), + + SL("sl"), + + SR("sr"), + + SV("sv"), + + TH("th"), + + TR("tr"), + + VI("vi"), + + ZH("zh"); + + private String value; + + LanguageCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static LanguageCodeEnum fromValue(String value) { + for (LanguageCodeEnum b : LanguageCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final LanguageCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public LanguageCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return LanguageCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_LANGUAGE_CODE = "languageCode"; + @SerializedName(SERIALIZED_NAME_LANGUAGE_CODE) + private LanguageCodeEnum languageCode; + + public static final String SERIALIZED_NAME_TEXT = "text"; + @SerializedName(SERIALIZED_NAME_TEXT) + private String text; + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner languageCode(LanguageCodeEnum languageCode) { + + this.languageCode = languageCode; + return this; + } + + /** + * The language of this message.<p>Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.</p><p>See also <a href=\"#isolanguage-codes\">in the appendix</a>.</p> + * @return languageCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "en", required = true, value = "The language of this message.

Please note that beside the general restrictions listed below only languages configured during system setup for your respective tenant are allowed.

See also in the appendix.

") + + public LanguageCodeEnum getLanguageCode() { + return languageCode; + } + + + public void setLanguageCode(LanguageCodeEnum languageCode) { + this.languageCode = languageCode; + } + + + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner text(String text) { + + this.text = text; + return this; + } + + /** + * The text of this message. + * @return text + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "More sea does not work! In a unique location just behind the dunes, less than 100 steps from the beach and the spa promenade, in a prime location on the beach “Nordhedig”, you can enjoy your stay in a small, new 5-star luxury complex (DTV classification) with a total of 4 separate apartments for 2-4 people. The interior has a modern rural style that offers all the amenities. You can find films about the property and individual apartments on our website.", required = true, value = "The text of this message.") + + public String getText() { + return text; + } + + + public void setText(String text) { + this.text = text; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner propertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner = (PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner) o; + return Objects.equals(this.languageCode, propertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.languageCode) && + Objects.equals(this.text, propertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.text); + } + + @Override + public int hashCode() { + return Objects.hash(languageCode, text); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner {\n"); + sb.append(" languageCode: ").append(toIndentedString(languageCode)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("languageCode"); + openapiFields.add("text"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("languageCode"); + openapiRequiredFields.add("text"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("languageCode") != null && !jsonObj.get("languageCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `languageCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("languageCode").toString())); + } + if (jsonObj.get("text") != null && !jsonObj.get("text").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `text` to be a primitive type in the JSON string but got `%s`", jsonObj.get("text").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.java new file mode 100644 index 0000000..2804ec5 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.java @@ -0,0 +1,317 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * Information regarding the creation of the property object. + */ +@ApiModel(description = "Information regarding the creation of the property object.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyRecordCreated { + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private String user; + + public static final String SERIALIZED_NAME_TENANT = "tenant"; + @SerializedName(SERIALIZED_NAME_TENANT) + private String tenant; + + public static final String SERIALIZED_NAME_ROLE = "role"; + @SerializedName(SERIALIZED_NAME_ROLE) + private String role; + + public static final String SERIALIZED_NAME_TIME = "time"; + @SerializedName(SERIALIZED_NAME_TIME) + private BigDecimal time; + + public PropertiesPropertyIdGet200ResponsePropertyRecordCreated() { + } + + public PropertiesPropertyIdGet200ResponsePropertyRecordCreated user(String user) { + + this.user = user; + return this; + } + + /** + * The user that performed the edit action on the property. + * @return user + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "microsoft:user:2f1d8a1b-bae8-4333-8f0f-7ad28af03e3f", required = true, value = "The user that performed the edit action on the property.") + + public String getUser() { + return user; + } + + + public void setUser(String user) { + this.user = user; + } + + + public PropertiesPropertyIdGet200ResponsePropertyRecordCreated tenant(String tenant) { + + this.tenant = tenant; + return this; + } + + /** + * The tenant for which the user performed the edit action on the property. + * @return tenant + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "dmo-demo", required = true, value = "The tenant for which the user performed the edit action on the property.") + + public String getTenant() { + return tenant; + } + + + public void setTenant(String tenant) { + this.tenant = tenant; + } + + + public PropertiesPropertyIdGet200ResponsePropertyRecordCreated role(String role) { + + this.role = role; + return this; + } + + /** + * The role of the user that performed the edit action on the property. + * @return role + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "admin", value = "The role of the user that performed the edit action on the property.") + + public String getRole() { + return role; + } + + + public void setRole(String role) { + this.role = role; + } + + + public PropertiesPropertyIdGet200ResponsePropertyRecordCreated time(BigDecimal time) { + + this.time = time; + return this; + } + + /** + * The timestamp at which the edit action was performed. + * @return time + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1652091332815", required = true, value = "The timestamp at which the edit action was performed.") + + public BigDecimal getTime() { + return time; + } + + + public void setTime(BigDecimal time) { + this.time = time; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyRecordCreated propertiesPropertyIdGet200ResponsePropertyRecordCreated = (PropertiesPropertyIdGet200ResponsePropertyRecordCreated) o; + return Objects.equals(this.user, propertiesPropertyIdGet200ResponsePropertyRecordCreated.user) && + Objects.equals(this.tenant, propertiesPropertyIdGet200ResponsePropertyRecordCreated.tenant) && + Objects.equals(this.role, propertiesPropertyIdGet200ResponsePropertyRecordCreated.role) && + Objects.equals(this.time, propertiesPropertyIdGet200ResponsePropertyRecordCreated.time); + } + + @Override + public int hashCode() { + return Objects.hash(user, tenant, role, time); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyRecordCreated {\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" tenant: ").append(toIndentedString(tenant)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("user"); + openapiFields.add("tenant"); + openapiFields.add("role"); + openapiFields.add("time"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("user"); + openapiRequiredFields.add("tenant"); + openapiRequiredFields.add("time"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyRecordCreated + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyRecordCreated.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyRecordCreated is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyRecordCreated.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyRecordCreated.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyRecordCreated` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyRecordCreated.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); + } + if (jsonObj.get("tenant") != null && !jsonObj.get("tenant").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `tenant` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tenant").toString())); + } + if (jsonObj.get("role") != null && !jsonObj.get("role").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyRecordCreated.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyRecordCreated' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyRecordCreated.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyRecordCreated value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyRecordCreated read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyRecordCreated given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyRecordCreated + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyRecordCreated + */ + public static PropertiesPropertyIdGet200ResponsePropertyRecordCreated fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyRecordCreated.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyRecordCreated to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.java new file mode 100644 index 0000000..095038e --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.java @@ -0,0 +1,317 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * Information regarding the last modification of the property object. + */ +@ApiModel(description = "Information regarding the last modification of the property object.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyRecordModified { + public static final String SERIALIZED_NAME_USER = "user"; + @SerializedName(SERIALIZED_NAME_USER) + private String user; + + public static final String SERIALIZED_NAME_TENANT = "tenant"; + @SerializedName(SERIALIZED_NAME_TENANT) + private String tenant; + + public static final String SERIALIZED_NAME_ROLE = "role"; + @SerializedName(SERIALIZED_NAME_ROLE) + private String role; + + public static final String SERIALIZED_NAME_TIME = "time"; + @SerializedName(SERIALIZED_NAME_TIME) + private BigDecimal time; + + public PropertiesPropertyIdGet200ResponsePropertyRecordModified() { + } + + public PropertiesPropertyIdGet200ResponsePropertyRecordModified user(String user) { + + this.user = user; + return this; + } + + /** + * The user that performed the edit action on the property. + * @return user + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "microsoft:user:2f1d8a1b-bae8-4333-8f0f-7ad28af03e3f", required = true, value = "The user that performed the edit action on the property.") + + public String getUser() { + return user; + } + + + public void setUser(String user) { + this.user = user; + } + + + public PropertiesPropertyIdGet200ResponsePropertyRecordModified tenant(String tenant) { + + this.tenant = tenant; + return this; + } + + /** + * The tenant for which the user performed the edit action on the property. + * @return tenant + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "dmo-demo", required = true, value = "The tenant for which the user performed the edit action on the property.") + + public String getTenant() { + return tenant; + } + + + public void setTenant(String tenant) { + this.tenant = tenant; + } + + + public PropertiesPropertyIdGet200ResponsePropertyRecordModified role(String role) { + + this.role = role; + return this; + } + + /** + * The role of the user that performed the edit action on the property. + * @return role + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "admin", value = "The role of the user that performed the edit action on the property.") + + public String getRole() { + return role; + } + + + public void setRole(String role) { + this.role = role; + } + + + public PropertiesPropertyIdGet200ResponsePropertyRecordModified time(BigDecimal time) { + + this.time = time; + return this; + } + + /** + * The timestamp at which the edit action was performed. + * @return time + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "1652091332815", required = true, value = "The timestamp at which the edit action was performed.") + + public BigDecimal getTime() { + return time; + } + + + public void setTime(BigDecimal time) { + this.time = time; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyRecordModified propertiesPropertyIdGet200ResponsePropertyRecordModified = (PropertiesPropertyIdGet200ResponsePropertyRecordModified) o; + return Objects.equals(this.user, propertiesPropertyIdGet200ResponsePropertyRecordModified.user) && + Objects.equals(this.tenant, propertiesPropertyIdGet200ResponsePropertyRecordModified.tenant) && + Objects.equals(this.role, propertiesPropertyIdGet200ResponsePropertyRecordModified.role) && + Objects.equals(this.time, propertiesPropertyIdGet200ResponsePropertyRecordModified.time); + } + + @Override + public int hashCode() { + return Objects.hash(user, tenant, role, time); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyRecordModified {\n"); + sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" tenant: ").append(toIndentedString(tenant)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("user"); + openapiFields.add("tenant"); + openapiFields.add("role"); + openapiFields.add("time"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("user"); + openapiRequiredFields.add("tenant"); + openapiRequiredFields.add("time"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyRecordModified + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyRecordModified.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyRecordModified is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyRecordModified.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyRecordModified.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyRecordModified` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyRecordModified.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("user") != null && !jsonObj.get("user").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `user` to be a primitive type in the JSON string but got `%s`", jsonObj.get("user").toString())); + } + if (jsonObj.get("tenant") != null && !jsonObj.get("tenant").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `tenant` to be a primitive type in the JSON string but got `%s`", jsonObj.get("tenant").toString())); + } + if (jsonObj.get("role") != null && !jsonObj.get("role").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyRecordModified.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyRecordModified' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyRecordModified.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyRecordModified value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyRecordModified read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyRecordModified given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyRecordModified + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyRecordModified + */ + public static PropertiesPropertyIdGet200ResponsePropertyRecordModified fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyRecordModified.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyRecordModified to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.java new file mode 100644 index 0000000..d3b1ef7 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.java @@ -0,0 +1,1989 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * An object describing the service, its pricing and its availability. + */ +@ApiModel(description = "An object describing the service, its pricing and its availability.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyServiceListInner { + /** + * The code of this service<p>See also <a href=\"#servicecodes\">in the appendix</a>.</p> + */ + @JsonAdapter(CodeEnum.Adapter.class) + public enum CodeEnum { + NUMBER_1(new BigDecimal("1")), + + NUMBER_2(new BigDecimal("2")), + + NUMBER_3(new BigDecimal("3")), + + NUMBER_4(new BigDecimal("4")), + + NUMBER_5(new BigDecimal("5")), + + NUMBER_6(new BigDecimal("6")), + + NUMBER_7(new BigDecimal("7")), + + NUMBER_8(new BigDecimal("8")), + + NUMBER_9(new BigDecimal("9")), + + NUMBER_10(new BigDecimal("10")), + + NUMBER_11(new BigDecimal("11")), + + NUMBER_12(new BigDecimal("12")), + + NUMBER_13(new BigDecimal("13")), + + NUMBER_14(new BigDecimal("14")), + + NUMBER_15(new BigDecimal("15")), + + NUMBER_16(new BigDecimal("16")), + + NUMBER_17(new BigDecimal("17")), + + NUMBER_18(new BigDecimal("18")), + + NUMBER_19(new BigDecimal("19")), + + NUMBER_20(new BigDecimal("20")), + + NUMBER_21(new BigDecimal("21")), + + NUMBER_22(new BigDecimal("22")), + + NUMBER_23(new BigDecimal("23")), + + NUMBER_24(new BigDecimal("24")), + + NUMBER_25(new BigDecimal("25")), + + NUMBER_26(new BigDecimal("26")), + + NUMBER_27(new BigDecimal("27")), + + NUMBER_28(new BigDecimal("28")), + + NUMBER_29(new BigDecimal("29")), + + NUMBER_30(new BigDecimal("30")), + + NUMBER_31(new BigDecimal("31")), + + NUMBER_32(new BigDecimal("32")), + + NUMBER_33(new BigDecimal("33")), + + NUMBER_34(new BigDecimal("34")), + + NUMBER_35(new BigDecimal("35")), + + NUMBER_36(new BigDecimal("36")), + + NUMBER_37(new BigDecimal("37")), + + NUMBER_38(new BigDecimal("38")), + + NUMBER_39(new BigDecimal("39")), + + NUMBER_40(new BigDecimal("40")), + + NUMBER_41(new BigDecimal("41")), + + NUMBER_42(new BigDecimal("42")), + + NUMBER_43(new BigDecimal("43")), + + NUMBER_44(new BigDecimal("44")), + + NUMBER_45(new BigDecimal("45")), + + NUMBER_46(new BigDecimal("46")), + + NUMBER_47(new BigDecimal("47")), + + NUMBER_48(new BigDecimal("48")), + + NUMBER_49(new BigDecimal("49")), + + NUMBER_50(new BigDecimal("50")), + + NUMBER_51(new BigDecimal("51")), + + NUMBER_52(new BigDecimal("52")), + + NUMBER_53(new BigDecimal("53")), + + NUMBER_54(new BigDecimal("54")), + + NUMBER_55(new BigDecimal("55")), + + NUMBER_56(new BigDecimal("56")), + + NUMBER_57(new BigDecimal("57")), + + NUMBER_58(new BigDecimal("58")), + + NUMBER_59(new BigDecimal("59")), + + NUMBER_60(new BigDecimal("60")), + + NUMBER_61(new BigDecimal("61")), + + NUMBER_62(new BigDecimal("62")), + + NUMBER_63(new BigDecimal("63")), + + NUMBER_64(new BigDecimal("64")), + + NUMBER_65(new BigDecimal("65")), + + NUMBER_66(new BigDecimal("66")), + + NUMBER_67(new BigDecimal("67")), + + NUMBER_68(new BigDecimal("68")), + + NUMBER_69(new BigDecimal("69")), + + NUMBER_70(new BigDecimal("70")), + + NUMBER_71(new BigDecimal("71")), + + NUMBER_72(new BigDecimal("72")), + + NUMBER_73(new BigDecimal("73")), + + NUMBER_74(new BigDecimal("74")), + + NUMBER_75(new BigDecimal("75")), + + NUMBER_76(new BigDecimal("76")), + + NUMBER_77(new BigDecimal("77")), + + NUMBER_78(new BigDecimal("78")), + + NUMBER_79(new BigDecimal("79")), + + NUMBER_80(new BigDecimal("80")), + + NUMBER_81(new BigDecimal("81")), + + NUMBER_82(new BigDecimal("82")), + + NUMBER_83(new BigDecimal("83")), + + NUMBER_84(new BigDecimal("84")), + + NUMBER_85(new BigDecimal("85")), + + NUMBER_86(new BigDecimal("86")), + + NUMBER_87(new BigDecimal("87")), + + NUMBER_88(new BigDecimal("88")), + + NUMBER_89(new BigDecimal("89")), + + NUMBER_90(new BigDecimal("90")), + + NUMBER_91(new BigDecimal("91")), + + NUMBER_92(new BigDecimal("92")), + + NUMBER_93(new BigDecimal("93")), + + NUMBER_94(new BigDecimal("94")), + + NUMBER_95(new BigDecimal("95")), + + NUMBER_96(new BigDecimal("96")), + + NUMBER_97(new BigDecimal("97")), + + NUMBER_98(new BigDecimal("98")), + + NUMBER_99(new BigDecimal("99")), + + NUMBER_100(new BigDecimal("100")), + + NUMBER_101(new BigDecimal("101")), + + NUMBER_102(new BigDecimal("102")), + + NUMBER_103(new BigDecimal("103")), + + NUMBER_104(new BigDecimal("104")), + + NUMBER_105(new BigDecimal("105")), + + NUMBER_106(new BigDecimal("106")), + + NUMBER_107(new BigDecimal("107")), + + NUMBER_108(new BigDecimal("108")), + + NUMBER_109(new BigDecimal("109")), + + NUMBER_110(new BigDecimal("110")), + + NUMBER_111(new BigDecimal("111")), + + NUMBER_112(new BigDecimal("112")), + + NUMBER_113(new BigDecimal("113")), + + NUMBER_114(new BigDecimal("114")), + + NUMBER_115(new BigDecimal("115")), + + NUMBER_116(new BigDecimal("116")), + + NUMBER_117(new BigDecimal("117")), + + NUMBER_118(new BigDecimal("118")), + + NUMBER_119(new BigDecimal("119")), + + NUMBER_120(new BigDecimal("120")), + + NUMBER_121(new BigDecimal("121")), + + NUMBER_122(new BigDecimal("122")), + + NUMBER_123(new BigDecimal("123")), + + NUMBER_124(new BigDecimal("124")), + + NUMBER_125(new BigDecimal("125")), + + NUMBER_126(new BigDecimal("126")), + + NUMBER_127(new BigDecimal("127")), + + NUMBER_128(new BigDecimal("128")), + + NUMBER_129(new BigDecimal("129")), + + NUMBER_130(new BigDecimal("130")), + + NUMBER_131(new BigDecimal("131")), + + NUMBER_132(new BigDecimal("132")), + + NUMBER_133(new BigDecimal("133")), + + NUMBER_134(new BigDecimal("134")), + + NUMBER_135(new BigDecimal("135")), + + NUMBER_136(new BigDecimal("136")), + + NUMBER_137(new BigDecimal("137")), + + NUMBER_138(new BigDecimal("138")), + + NUMBER_139(new BigDecimal("139")), + + NUMBER_140(new BigDecimal("140")), + + NUMBER_141(new BigDecimal("141")), + + NUMBER_142(new BigDecimal("142")), + + NUMBER_143(new BigDecimal("143")), + + NUMBER_144(new BigDecimal("144")), + + NUMBER_145(new BigDecimal("145")), + + NUMBER_146(new BigDecimal("146")), + + NUMBER_147(new BigDecimal("147")), + + NUMBER_148(new BigDecimal("148")), + + NUMBER_149(new BigDecimal("149")), + + NUMBER_150(new BigDecimal("150")), + + NUMBER_151(new BigDecimal("151")), + + NUMBER_152(new BigDecimal("152")), + + NUMBER_153(new BigDecimal("153")), + + NUMBER_154(new BigDecimal("154")), + + NUMBER_155(new BigDecimal("155")), + + NUMBER_156(new BigDecimal("156")), + + NUMBER_157(new BigDecimal("157")), + + NUMBER_158(new BigDecimal("158")), + + NUMBER_159(new BigDecimal("159")), + + NUMBER_160(new BigDecimal("160")), + + NUMBER_161(new BigDecimal("161")), + + NUMBER_162(new BigDecimal("162")), + + NUMBER_163(new BigDecimal("163")), + + NUMBER_164(new BigDecimal("164")), + + NUMBER_165(new BigDecimal("165")), + + NUMBER_166(new BigDecimal("166")), + + NUMBER_167(new BigDecimal("167")), + + NUMBER_168(new BigDecimal("168")), + + NUMBER_169(new BigDecimal("169")), + + NUMBER_170(new BigDecimal("170")), + + NUMBER_171(new BigDecimal("171")), + + NUMBER_172(new BigDecimal("172")), + + NUMBER_173(new BigDecimal("173")), + + NUMBER_174(new BigDecimal("174")), + + NUMBER_175(new BigDecimal("175")), + + NUMBER_176(new BigDecimal("176")), + + NUMBER_177(new BigDecimal("177")), + + NUMBER_178(new BigDecimal("178")), + + NUMBER_179(new BigDecimal("179")), + + NUMBER_180(new BigDecimal("180")), + + NUMBER_181(new BigDecimal("181")), + + NUMBER_182(new BigDecimal("182")), + + NUMBER_183(new BigDecimal("183")), + + NUMBER_184(new BigDecimal("184")), + + NUMBER_185(new BigDecimal("185")), + + NUMBER_186(new BigDecimal("186")), + + NUMBER_187(new BigDecimal("187")), + + NUMBER_188(new BigDecimal("188")), + + NUMBER_189(new BigDecimal("189")), + + NUMBER_190(new BigDecimal("190")), + + NUMBER_191(new BigDecimal("191")), + + NUMBER_192(new BigDecimal("192")), + + NUMBER_193(new BigDecimal("193")), + + NUMBER_194(new BigDecimal("194")), + + NUMBER_195(new BigDecimal("195")), + + NUMBER_196(new BigDecimal("196")), + + NUMBER_197(new BigDecimal("197")), + + NUMBER_198(new BigDecimal("198")), + + NUMBER_199(new BigDecimal("199")), + + NUMBER_200(new BigDecimal("200")), + + NUMBER_201(new BigDecimal("201")), + + NUMBER_202(new BigDecimal("202")), + + NUMBER_203(new BigDecimal("203")), + + NUMBER_204(new BigDecimal("204")), + + NUMBER_205(new BigDecimal("205")), + + NUMBER_206(new BigDecimal("206")), + + NUMBER_207(new BigDecimal("207")), + + NUMBER_208(new BigDecimal("208")), + + NUMBER_209(new BigDecimal("209")), + + NUMBER_210(new BigDecimal("210")), + + NUMBER_211(new BigDecimal("211")), + + NUMBER_212(new BigDecimal("212")), + + NUMBER_213(new BigDecimal("213")), + + NUMBER_214(new BigDecimal("214")), + + NUMBER_215(new BigDecimal("215")), + + NUMBER_216(new BigDecimal("216")), + + NUMBER_217(new BigDecimal("217")), + + NUMBER_218(new BigDecimal("218")), + + NUMBER_219(new BigDecimal("219")), + + NUMBER_220(new BigDecimal("220")), + + NUMBER_221(new BigDecimal("221")), + + NUMBER_222(new BigDecimal("222")), + + NUMBER_223(new BigDecimal("223")), + + NUMBER_224(new BigDecimal("224")), + + NUMBER_225(new BigDecimal("225")), + + NUMBER_226(new BigDecimal("226")), + + NUMBER_227(new BigDecimal("227")), + + NUMBER_228(new BigDecimal("228")), + + NUMBER_229(new BigDecimal("229")), + + NUMBER_230(new BigDecimal("230")), + + NUMBER_231(new BigDecimal("231")), + + NUMBER_232(new BigDecimal("232")), + + NUMBER_233(new BigDecimal("233")), + + NUMBER_234(new BigDecimal("234")), + + NUMBER_235(new BigDecimal("235")), + + NUMBER_236(new BigDecimal("236")), + + NUMBER_237(new BigDecimal("237")), + + NUMBER_238(new BigDecimal("238")), + + NUMBER_239(new BigDecimal("239")), + + NUMBER_240(new BigDecimal("240")), + + NUMBER_241(new BigDecimal("241")), + + NUMBER_242(new BigDecimal("242")), + + NUMBER_243(new BigDecimal("243")), + + NUMBER_244(new BigDecimal("244")), + + NUMBER_245(new BigDecimal("245")), + + NUMBER_246(new BigDecimal("246")), + + NUMBER_247(new BigDecimal("247")), + + NUMBER_248(new BigDecimal("248")), + + NUMBER_249(new BigDecimal("249")), + + NUMBER_250(new BigDecimal("250")), + + NUMBER_251(new BigDecimal("251")), + + NUMBER_252(new BigDecimal("252")), + + NUMBER_253(new BigDecimal("253")), + + NUMBER_254(new BigDecimal("254")), + + NUMBER_255(new BigDecimal("255")), + + NUMBER_256(new BigDecimal("256")), + + NUMBER_257(new BigDecimal("257")), + + NUMBER_258(new BigDecimal("258")), + + NUMBER_259(new BigDecimal("259")), + + NUMBER_260(new BigDecimal("260")), + + NUMBER_261(new BigDecimal("261")), + + NUMBER_262(new BigDecimal("262")), + + NUMBER_263(new BigDecimal("263")), + + NUMBER_264(new BigDecimal("264")), + + NUMBER_265(new BigDecimal("265")), + + NUMBER_266(new BigDecimal("266")), + + NUMBER_267(new BigDecimal("267")), + + NUMBER_268(new BigDecimal("268")), + + NUMBER_269(new BigDecimal("269")), + + NUMBER_270(new BigDecimal("270")), + + NUMBER_271(new BigDecimal("271")), + + NUMBER_272(new BigDecimal("272")), + + NUMBER_273(new BigDecimal("273")), + + NUMBER_274(new BigDecimal("274")), + + NUMBER_275(new BigDecimal("275")), + + NUMBER_276(new BigDecimal("276")), + + NUMBER_277(new BigDecimal("277")), + + NUMBER_278(new BigDecimal("278")), + + NUMBER_279(new BigDecimal("279")), + + NUMBER_280(new BigDecimal("280")), + + NUMBER_281(new BigDecimal("281")), + + NUMBER_282(new BigDecimal("282")), + + NUMBER_283(new BigDecimal("283")), + + NUMBER_284(new BigDecimal("284")), + + NUMBER_285(new BigDecimal("285")), + + NUMBER_286(new BigDecimal("286")), + + NUMBER_287(new BigDecimal("287")), + + NUMBER_288(new BigDecimal("288")), + + NUMBER_289(new BigDecimal("289")), + + NUMBER_290(new BigDecimal("290")), + + NUMBER_291(new BigDecimal("291")), + + NUMBER_292(new BigDecimal("292")), + + NUMBER_293(new BigDecimal("293")), + + NUMBER_294(new BigDecimal("294")), + + NUMBER_295(new BigDecimal("295")), + + NUMBER_296(new BigDecimal("296")), + + NUMBER_297(new BigDecimal("297")), + + NUMBER_298(new BigDecimal("298")), + + NUMBER_299(new BigDecimal("299")), + + NUMBER_300(new BigDecimal("300")), + + NUMBER_301(new BigDecimal("301")), + + NUMBER_302(new BigDecimal("302")), + + NUMBER_303(new BigDecimal("303")), + + NUMBER_304(new BigDecimal("304")), + + NUMBER_305(new BigDecimal("305")), + + NUMBER_306(new BigDecimal("306")), + + NUMBER_307(new BigDecimal("307")), + + NUMBER_308(new BigDecimal("308")), + + NUMBER_309(new BigDecimal("309")), + + NUMBER_310(new BigDecimal("310")), + + NUMBER_311(new BigDecimal("311")), + + NUMBER_312(new BigDecimal("312")), + + NUMBER_313(new BigDecimal("313")), + + NUMBER_314(new BigDecimal("314")), + + NUMBER_315(new BigDecimal("315")), + + NUMBER_316(new BigDecimal("316")), + + NUMBER_317(new BigDecimal("317")), + + NUMBER_318(new BigDecimal("318")), + + NUMBER_319(new BigDecimal("319")), + + NUMBER_320(new BigDecimal("320")), + + NUMBER_321(new BigDecimal("321")), + + NUMBER_322(new BigDecimal("322")), + + NUMBER_323(new BigDecimal("323")), + + NUMBER_324(new BigDecimal("324")), + + NUMBER_325(new BigDecimal("325")), + + NUMBER_326(new BigDecimal("326")), + + NUMBER_327(new BigDecimal("327")), + + NUMBER_328(new BigDecimal("328")), + + NUMBER_329(new BigDecimal("329")), + + NUMBER_331(new BigDecimal("331")), + + NUMBER_332(new BigDecimal("332")), + + NUMBER_333(new BigDecimal("333")), + + NUMBER_334(new BigDecimal("334")), + + NUMBER_335(new BigDecimal("335")), + + NUMBER_336(new BigDecimal("336")), + + NUMBER_337(new BigDecimal("337")), + + NUMBER_338(new BigDecimal("338")), + + NUMBER_339(new BigDecimal("339")), + + NUMBER_340(new BigDecimal("340")), + + NUMBER_341(new BigDecimal("341")), + + NUMBER_342(new BigDecimal("342")), + + NUMBER_343(new BigDecimal("343")), + + NUMBER_344(new BigDecimal("344")), + + NUMBER_345(new BigDecimal("345")), + + NUMBER_348(new BigDecimal("348")), + + NUMBER_349(new BigDecimal("349")), + + NUMBER_350(new BigDecimal("350")), + + NUMBER_351(new BigDecimal("351")), + + NUMBER_5000(new BigDecimal("5000")), + + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")), + + NUMBER_5009(new BigDecimal("5009")), + + NUMBER_5010(new BigDecimal("5010")), + + NUMBER_5011(new BigDecimal("5011")), + + NUMBER_5012(new BigDecimal("5012")), + + NUMBER_5013(new BigDecimal("5013")), + + NUMBER_5014(new BigDecimal("5014")), + + NUMBER_5015(new BigDecimal("5015")), + + NUMBER_5016(new BigDecimal("5016")), + + NUMBER_5017(new BigDecimal("5017")), + + NUMBER_5018(new BigDecimal("5018")), + + NUMBER_5020(new BigDecimal("5020")), + + NUMBER_5021(new BigDecimal("5021")), + + NUMBER_5022(new BigDecimal("5022")), + + NUMBER_5023(new BigDecimal("5023")), + + NUMBER_5024(new BigDecimal("5024")), + + NUMBER_5025(new BigDecimal("5025")), + + NUMBER_5026(new BigDecimal("5026")), + + NUMBER_5027(new BigDecimal("5027")), + + NUMBER_5028(new BigDecimal("5028")), + + NUMBER_5029(new BigDecimal("5029")), + + NUMBER_5030(new BigDecimal("5030")), + + NUMBER_5031(new BigDecimal("5031")), + + NUMBER_5032(new BigDecimal("5032")), + + NUMBER_5033(new BigDecimal("5033")), + + NUMBER_5034(new BigDecimal("5034")), + + NUMBER_5035(new BigDecimal("5035")), + + NUMBER_5036(new BigDecimal("5036")), + + NUMBER_5037(new BigDecimal("5037")), + + NUMBER_5039(new BigDecimal("5039")), + + NUMBER_5040(new BigDecimal("5040")), + + NUMBER_5041(new BigDecimal("5041")), + + NUMBER_5042(new BigDecimal("5042")), + + NUMBER_5043(new BigDecimal("5043")), + + NUMBER_5044(new BigDecimal("5044")), + + NUMBER_5045(new BigDecimal("5045")), + + NUMBER_5046(new BigDecimal("5046")), + + NUMBER_5047(new BigDecimal("5047")), + + NUMBER_5048(new BigDecimal("5048")), + + NUMBER_5049(new BigDecimal("5049")), + + NUMBER_5050(new BigDecimal("5050")), + + NUMBER_5051(new BigDecimal("5051")), + + NUMBER_5052(new BigDecimal("5052")), + + NUMBER_5053(new BigDecimal("5053")), + + NUMBER_5054(new BigDecimal("5054")), + + NUMBER_5055(new BigDecimal("5055")), + + NUMBER_5056(new BigDecimal("5056")), + + NUMBER_5057(new BigDecimal("5057")), + + NUMBER_5058(new BigDecimal("5058")), + + NUMBER_5059(new BigDecimal("5059")), + + NUMBER_5060(new BigDecimal("5060")), + + NUMBER_5061(new BigDecimal("5061")), + + NUMBER_5062(new BigDecimal("5062")), + + NUMBER_5063(new BigDecimal("5063")), + + NUMBER_5064(new BigDecimal("5064")), + + NUMBER_5065(new BigDecimal("5065")), + + NUMBER_5066(new BigDecimal("5066")), + + NUMBER_5067(new BigDecimal("5067")), + + NUMBER_5068(new BigDecimal("5068")), + + NUMBER_5069(new BigDecimal("5069")), + + NUMBER_5070(new BigDecimal("5070")), + + NUMBER_5071(new BigDecimal("5071")), + + NUMBER_5072(new BigDecimal("5072")), + + NUMBER_5073(new BigDecimal("5073")), + + NUMBER_5074(new BigDecimal("5074")), + + NUMBER_5075(new BigDecimal("5075")), + + NUMBER_5076(new BigDecimal("5076")), + + NUMBER_5077(new BigDecimal("5077")), + + NUMBER_5078(new BigDecimal("5078")), + + NUMBER_5079(new BigDecimal("5079")), + + NUMBER_5080(new BigDecimal("5080")), + + NUMBER_5081(new BigDecimal("5081")), + + NUMBER_5082(new BigDecimal("5082")), + + NUMBER_5083(new BigDecimal("5083")), + + NUMBER_5084(new BigDecimal("5084")), + + NUMBER_5085(new BigDecimal("5085")), + + NUMBER_5086(new BigDecimal("5086")), + + NUMBER_5087(new BigDecimal("5087")), + + NUMBER_5088(new BigDecimal("5088")), + + NUMBER_5089(new BigDecimal("5089")), + + NUMBER_5090(new BigDecimal("5090")), + + NUMBER_5091(new BigDecimal("5091")), + + NUMBER_5092(new BigDecimal("5092")), + + NUMBER_5093(new BigDecimal("5093")), + + NUMBER_5094(new BigDecimal("5094")), + + NUMBER_5095(new BigDecimal("5095")), + + NUMBER_5096(new BigDecimal("5096")), + + NUMBER_5097(new BigDecimal("5097")), + + NUMBER_5098(new BigDecimal("5098")), + + NUMBER_5099(new BigDecimal("5099")), + + NUMBER_5100(new BigDecimal("5100")), + + NUMBER_5101(new BigDecimal("5101")), + + NUMBER_5102(new BigDecimal("5102")), + + NUMBER_5103(new BigDecimal("5103")), + + NUMBER_5104(new BigDecimal("5104")), + + NUMBER_5105(new BigDecimal("5105")), + + NUMBER_5106(new BigDecimal("5106")), + + NUMBER_5107(new BigDecimal("5107")), + + NUMBER_5108(new BigDecimal("5108")), + + NUMBER_5109(new BigDecimal("5109")), + + NUMBER_5110(new BigDecimal("5110")), + + NUMBER_5111(new BigDecimal("5111")), + + NUMBER_5112(new BigDecimal("5112")), + + NUMBER_5113(new BigDecimal("5113")), + + NUMBER_5114(new BigDecimal("5114")), + + NUMBER_5115(new BigDecimal("5115")), + + NUMBER_5116(new BigDecimal("5116")), + + NUMBER_5117(new BigDecimal("5117")), + + NUMBER_5118(new BigDecimal("5118")), + + NUMBER_5119(new BigDecimal("5119")), + + NUMBER_5120(new BigDecimal("5120")), + + NUMBER_5121(new BigDecimal("5121")), + + NUMBER_5122(new BigDecimal("5122")), + + NUMBER_5123(new BigDecimal("5123")), + + NUMBER_5124(new BigDecimal("5124")), + + NUMBER_5125(new BigDecimal("5125")), + + NUMBER_5126(new BigDecimal("5126")), + + NUMBER_5127(new BigDecimal("5127")), + + NUMBER_5128(new BigDecimal("5128")), + + NUMBER_5129(new BigDecimal("5129")), + + NUMBER_5130(new BigDecimal("5130")), + + NUMBER_5131(new BigDecimal("5131")), + + NUMBER_5132(new BigDecimal("5132")), + + NUMBER_5133(new BigDecimal("5133")), + + NUMBER_5134(new BigDecimal("5134")), + + NUMBER_5135(new BigDecimal("5135")), + + NUMBER_5136(new BigDecimal("5136")), + + NUMBER_5137(new BigDecimal("5137")), + + NUMBER_5138(new BigDecimal("5138")), + + NUMBER_5139(new BigDecimal("5139")), + + NUMBER_5140(new BigDecimal("5140")), + + NUMBER_5141(new BigDecimal("5141")), + + NUMBER_5142(new BigDecimal("5142")), + + NUMBER_5143(new BigDecimal("5143")), + + NUMBER_5144(new BigDecimal("5144")), + + NUMBER_5145(new BigDecimal("5145")), + + NUMBER_5146(new BigDecimal("5146")), + + NUMBER_5147(new BigDecimal("5147")), + + NUMBER_5148(new BigDecimal("5148")), + + NUMBER_5149(new BigDecimal("5149")), + + NUMBER_5150(new BigDecimal("5150")), + + NUMBER_5151(new BigDecimal("5151")), + + NUMBER_5152(new BigDecimal("5152")), + + NUMBER_5153(new BigDecimal("5153")), + + NUMBER_5154(new BigDecimal("5154")), + + NUMBER_5156(new BigDecimal("5156")), + + NUMBER_5157(new BigDecimal("5157")), + + NUMBER_5158(new BigDecimal("5158")), + + NUMBER_5159(new BigDecimal("5159")), + + NUMBER_5160(new BigDecimal("5160")), + + NUMBER_5161(new BigDecimal("5161")), + + NUMBER_5162(new BigDecimal("5162")), + + NUMBER_5163(new BigDecimal("5163")), + + NUMBER_5164(new BigDecimal("5164")), + + NUMBER_5165(new BigDecimal("5165")), + + NUMBER_5166(new BigDecimal("5166")), + + NUMBER_5167(new BigDecimal("5167")), + + NUMBER_5168(new BigDecimal("5168")), + + NUMBER_5169(new BigDecimal("5169")), + + NUMBER_5170(new BigDecimal("5170")), + + NUMBER_5171(new BigDecimal("5171")), + + NUMBER_5172(new BigDecimal("5172")), + + NUMBER_5173(new BigDecimal("5173")), + + NUMBER_5174(new BigDecimal("5174")), + + NUMBER_5175(new BigDecimal("5175")), + + NUMBER_5176(new BigDecimal("5176")), + + NUMBER_5177(new BigDecimal("5177")), + + NUMBER_5178(new BigDecimal("5178")), + + NUMBER_6000(new BigDecimal("6000")), + + NUMBER_6001(new BigDecimal("6001")), + + NUMBER_90001(new BigDecimal("90001")); + + private BigDecimal value; + + CodeEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CodeEnum fromValue(BigDecimal value) { + for (CodeEnum b : CodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CodeEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_CODE = "code"; + @SerializedName(SERIALIZED_NAME_CODE) + private CodeEnum code; + + public static final String SERIALIZED_NAME_PRICE = "price"; + @SerializedName(SERIALIZED_NAME_PRICE) + private BigDecimal price; + + public static final String SERIALIZED_NAME_EXISTS = "exists"; + @SerializedName(SERIALIZED_NAME_EXISTS) + private Boolean exists; + + public static final String SERIALIZED_NAME_INCLUDED = "included"; + @SerializedName(SERIALIZED_NAME_INCLUDED) + private Boolean included; + + /** + * The currency of the surcharge for this service + */ + @JsonAdapter(CurrencyCodeEnum.Adapter.class) + public enum CurrencyCodeEnum { + AED("AED"), + + ARS("ARS"), + + AUD("AUD"), + + AZN("AZN"), + + BGN("BGN"), + + BHD("BHD"), + + BRL("BRL"), + + CAD("CAD"), + + CHF("CHF"), + + CLP("CLP"), + + CNY("CNY"), + + COP("COP"), + + CZK("CZK"), + + DKK("DKK"), + + EGP("EGP"), + + EUR("EUR"), + + FJD("FJD"), + + GBP("GBP"), + + GEL("GEL"), + + HKD("HKD"), + + HUF("HUF"), + + IDR("IDR"), + + ILS("ILS"), + + INR("INR"), + + JOD("JOD"), + + JPY("JPY"), + + KRW("KRW"), + + KWD("KWD"), + + KZT("KZT"), + + MDL("MDL"), + + MXN("MXN"), + + MYR("MYR"), + + NAD("NAD"), + + NOK("NOK"), + + NZD("NZD"), + + OMR("OMR"), + + PLN("PLN"), + + QAR("QAR"), + + RON("RON"), + + RUB("RUB"), + + SAR("SAR"), + + SEK("SEK"), + + SGD("SGD"), + + THB("THB"), + + TRY("TRY"), + + TWD("TWD"), + + UAH("UAH"), + + USD("USD"), + + XOF("XOF"), + + ZAR("ZAR"); + + private String value; + + CurrencyCodeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CurrencyCodeEnum fromValue(String value) { + for (CurrencyCodeEnum b : CurrencyCodeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CurrencyCodeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CurrencyCodeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CurrencyCodeEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CURRENCY_CODE = "currencyCode"; + @SerializedName(SERIALIZED_NAME_CURRENCY_CODE) + private CurrencyCodeEnum currencyCode; + + /** + * Gets or Sets featureList + */ + @JsonAdapter(FeatureListEnum.Adapter.class) + public enum FeatureListEnum { + A_LA_CARTE("a_la_carte"), + + BUFFET("buffet"), + + GUESTS_ONLY("guests_only"), + + ACCEPTS_RESERVATIONS("accepts_reservations"), + + OUTDOOR_SEATING("outdoor_seating"); + + private String value; + + FeatureListEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static FeatureListEnum fromValue(String value) { + for (FeatureListEnum b : FeatureListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final FeatureListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public FeatureListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return FeatureListEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_FEATURE_LIST = "featureList"; + @SerializedName(SERIALIZED_NAME_FEATURE_LIST) + private List featureList = new ArrayList<>(); + + /** + * Gets or Sets typeList + */ + @JsonAdapter(TypeListEnum.Adapter.class) + public enum TypeListEnum { + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")), + + NUMBER_5009(new BigDecimal("5009")), + + NUMBER_5010(new BigDecimal("5010")), + + NUMBER_5011(new BigDecimal("5011")), + + NUMBER_5012(new BigDecimal("5012")); + + private BigDecimal value; + + TypeListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeListEnum fromValue(BigDecimal value) { + for (TypeListEnum b : TypeListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_TYPE_LIST = "typeList"; + @SerializedName(SERIALIZED_NAME_TYPE_LIST) + private List typeList = new ArrayList<>(); + + /** + * Gets or Sets itemList + */ + @JsonAdapter(ItemListEnum.Adapter.class) + public enum ItemListEnum { + NUMBER_5001(new BigDecimal("5001")), + + NUMBER_5002(new BigDecimal("5002")), + + NUMBER_5003(new BigDecimal("5003")), + + NUMBER_5004(new BigDecimal("5004")), + + NUMBER_5005(new BigDecimal("5005")), + + NUMBER_5006(new BigDecimal("5006")), + + NUMBER_5007(new BigDecimal("5007")), + + NUMBER_5008(new BigDecimal("5008")), + + NUMBER_5009(new BigDecimal("5009")), + + NUMBER_5010(new BigDecimal("5010")), + + NUMBER_5011(new BigDecimal("5011")), + + NUMBER_5012(new BigDecimal("5012")), + + NUMBER_5013(new BigDecimal("5013")), + + NUMBER_5014(new BigDecimal("5014")), + + NUMBER_5015(new BigDecimal("5015")), + + NUMBER_5016(new BigDecimal("5016")), + + NUMBER_5017(new BigDecimal("5017")), + + NUMBER_5018(new BigDecimal("5018")), + + NUMBER_5019(new BigDecimal("5019")); + + private BigDecimal value; + + ItemListEnum(BigDecimal value) { + this.value = value; + } + + public BigDecimal getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ItemListEnum fromValue(BigDecimal value) { + for (ItemListEnum b : ItemListEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ItemListEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ItemListEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ItemListEnum.fromValue(new BigDecimal(value)); + } + } + } + + public static final String SERIALIZED_NAME_ITEM_LIST = "itemList"; + @SerializedName(SERIALIZED_NAME_ITEM_LIST) + private List itemList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_OPERATION_TIME_LIST = "operationTimeList"; + @SerializedName(SERIALIZED_NAME_OPERATION_TIME_LIST) + private List operationTimeList = new ArrayList<>(); + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner code(CodeEnum code) { + + this.code = code; + return this; + } + + /** + * The code of this service<p>See also <a href=\"#servicecodes\">in the appendix</a>.</p> + * @return code + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "173", required = true, value = "The code of this service

See also in the appendix.

") + + public CodeEnum getCode() { + return code; + } + + + public void setCode(CodeEnum code) { + this.code = code; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner price(BigDecimal price) { + + this.price = price; + return this; + } + + /** + * The surcharge for this service. + * @return price + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "19.99", required = true, value = "The surcharge for this service.") + + public BigDecimal getPrice() { + return price; + } + + + public void setPrice(BigDecimal price) { + this.price = price; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner exists(Boolean exists) { + + this.exists = exists; + return this; + } + + /** + * Whether this service is available. + * @return exists + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Whether this service is available.") + + public Boolean getExists() { + return exists; + } + + + public void setExists(Boolean exists) { + this.exists = exists; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner included(Boolean included) { + + this.included = included; + return this; + } + + /** + * Whether this service is complementary. + * @return included + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "false", required = true, value = "Whether this service is complementary.") + + public Boolean getIncluded() { + return included; + } + + + public void setIncluded(Boolean included) { + this.included = included; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner currencyCode(CurrencyCodeEnum currencyCode) { + + this.currencyCode = currencyCode; + return this; + } + + /** + * The currency of the surcharge for this service + * @return currencyCode + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "EUR", required = true, value = "The currency of the surcharge for this service") + + public CurrencyCodeEnum getCurrencyCode() { + return currencyCode; + } + + + public void setCurrencyCode(CurrencyCodeEnum currencyCode) { + this.currencyCode = currencyCode; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner featureList(List featureList) { + + this.featureList = featureList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner addFeatureListItem(FeatureListEnum featureListItem) { + this.featureList.add(featureListItem); + return this; + } + + /** + * A list of features. + * @return featureList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "[]", required = true, value = "A list of features.") + + public List getFeatureList() { + return featureList; + } + + + public void setFeatureList(List featureList) { + this.featureList = featureList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner typeList(List typeList) { + + this.typeList = typeList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner addTypeListItem(TypeListEnum typeListItem) { + this.typeList.add(typeListItem); + return this; + } + + /** + * A list of codes describing the available breakfast type.<p>See also <a href=\"#breakfasttype-codes\">in the appendix</a>.</p> + * @return typeList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of codes describing the available breakfast type.

See also in the appendix.

") + + public List getTypeList() { + return typeList; + } + + + public void setTypeList(List typeList) { + this.typeList = typeList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner itemList(List itemList) { + + this.itemList = itemList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner addItemListItem(ItemListEnum itemListItem) { + this.itemList.add(itemListItem); + return this; + } + + /** + * A list of codes describing the available breakfast items.<p>See also <a href=\"#breakfastitem-codes\">in the appendix</a>.</p> + * @return itemList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of codes describing the available breakfast items.

See also in the appendix.

") + + public List getItemList() { + return itemList; + } + + + public void setItemList(List itemList) { + this.itemList = itemList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner operationTimeList(List operationTimeList) { + + this.operationTimeList = operationTimeList; + return this; + } + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner addOperationTimeListItem(PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner operationTimeListItem) { + this.operationTimeList.add(operationTimeListItem); + return this; + } + + /** + * A list of operation times, including start and end times, and the days of the week on which the operation is open. + * @return operationTimeList + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "A list of operation times, including start and end times, and the days of the week on which the operation is open.") + + public List getOperationTimeList() { + return operationTimeList; + } + + + public void setOperationTimeList(List operationTimeList) { + this.operationTimeList = operationTimeList; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner name(String name) { + + this.name = name; + return this; + } + + /** + * The name of this service. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "Breakfast served in restaurant.", required = true, value = "The name of this service.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyServiceListInner propertiesPropertyIdGet200ResponsePropertyServiceListInner = (PropertiesPropertyIdGet200ResponsePropertyServiceListInner) o; + return Objects.equals(this.code, propertiesPropertyIdGet200ResponsePropertyServiceListInner.code) && + Objects.equals(this.price, propertiesPropertyIdGet200ResponsePropertyServiceListInner.price) && + Objects.equals(this.exists, propertiesPropertyIdGet200ResponsePropertyServiceListInner.exists) && + Objects.equals(this.included, propertiesPropertyIdGet200ResponsePropertyServiceListInner.included) && + Objects.equals(this.currencyCode, propertiesPropertyIdGet200ResponsePropertyServiceListInner.currencyCode) && + Objects.equals(this.featureList, propertiesPropertyIdGet200ResponsePropertyServiceListInner.featureList) && + Objects.equals(this.typeList, propertiesPropertyIdGet200ResponsePropertyServiceListInner.typeList) && + Objects.equals(this.itemList, propertiesPropertyIdGet200ResponsePropertyServiceListInner.itemList) && + Objects.equals(this.operationTimeList, propertiesPropertyIdGet200ResponsePropertyServiceListInner.operationTimeList) && + Objects.equals(this.name, propertiesPropertyIdGet200ResponsePropertyServiceListInner.name); + } + + @Override + public int hashCode() { + return Objects.hash(code, price, exists, included, currencyCode, featureList, typeList, itemList, operationTimeList, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyServiceListInner {\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" price: ").append(toIndentedString(price)).append("\n"); + sb.append(" exists: ").append(toIndentedString(exists)).append("\n"); + sb.append(" included: ").append(toIndentedString(included)).append("\n"); + sb.append(" currencyCode: ").append(toIndentedString(currencyCode)).append("\n"); + sb.append(" featureList: ").append(toIndentedString(featureList)).append("\n"); + sb.append(" typeList: ").append(toIndentedString(typeList)).append("\n"); + sb.append(" itemList: ").append(toIndentedString(itemList)).append("\n"); + sb.append(" operationTimeList: ").append(toIndentedString(operationTimeList)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("code"); + openapiFields.add("price"); + openapiFields.add("exists"); + openapiFields.add("included"); + openapiFields.add("currencyCode"); + openapiFields.add("featureList"); + openapiFields.add("typeList"); + openapiFields.add("itemList"); + openapiFields.add("operationTimeList"); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("code"); + openapiRequiredFields.add("price"); + openapiRequiredFields.add("exists"); + openapiRequiredFields.add("included"); + openapiRequiredFields.add("currencyCode"); + openapiRequiredFields.add("featureList"); + openapiRequiredFields.add("typeList"); + openapiRequiredFields.add("itemList"); + openapiRequiredFields.add("operationTimeList"); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyServiceListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyServiceListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyServiceListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyServiceListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyServiceListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyServiceListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyServiceListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (jsonObj.get("currencyCode") != null && !jsonObj.get("currencyCode").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currencyCode` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currencyCode").toString())); + } + // ensure the json data is an array + if (jsonObj.get("featureList") != null && !jsonObj.get("featureList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `featureList` to be an array in the JSON string but got `%s`", jsonObj.get("featureList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("typeList") != null && !jsonObj.get("typeList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `typeList` to be an array in the JSON string but got `%s`", jsonObj.get("typeList").toString())); + } + // ensure the json data is an array + if (jsonObj.get("itemList") != null && !jsonObj.get("itemList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `itemList` to be an array in the JSON string but got `%s`", jsonObj.get("itemList").toString())); + } + JsonArray jsonArrayoperationTimeList = jsonObj.getAsJsonArray("operationTimeList"); + if (jsonArrayoperationTimeList != null) { + // ensure the json data is an array + if (!jsonObj.get("operationTimeList").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `operationTimeList` to be an array in the JSON string but got `%s`", jsonObj.get("operationTimeList").toString())); + } + + // validate the optional field `operationTimeList` (array) + for (int i = 0; i < jsonArrayoperationTimeList.size(); i++) { + PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.validateJsonObject(jsonArrayoperationTimeList.get(i).getAsJsonObject()); + }; + } + if (jsonObj.get("name") != null && !jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyServiceListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyServiceListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyServiceListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyServiceListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyServiceListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyServiceListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyServiceListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyServiceListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyServiceListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyServiceListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyServiceListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.java b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.java new file mode 100644 index 0000000..3165439 --- /dev/null +++ b/src/main/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.java @@ -0,0 +1,463 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import com.lodgea.JSON; + +/** + * PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-01-26T16:09:38.541455406Z[Etc/UTC]") +public class PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner { + public static final String SERIALIZED_NAME_START = "start"; + @SerializedName(SERIALIZED_NAME_START) + private BigDecimal start; + + public static final String SERIALIZED_NAME_END = "end"; + @SerializedName(SERIALIZED_NAME_END) + private BigDecimal end; + + public static final String SERIALIZED_NAME_MONDAY = "monday"; + @SerializedName(SERIALIZED_NAME_MONDAY) + private Boolean monday; + + public static final String SERIALIZED_NAME_TUESDAY = "tuesday"; + @SerializedName(SERIALIZED_NAME_TUESDAY) + private Boolean tuesday; + + public static final String SERIALIZED_NAME_WEDNESDAY = "wednesday"; + @SerializedName(SERIALIZED_NAME_WEDNESDAY) + private Boolean wednesday; + + public static final String SERIALIZED_NAME_THURSDAY = "thursday"; + @SerializedName(SERIALIZED_NAME_THURSDAY) + private Boolean thursday; + + public static final String SERIALIZED_NAME_FRIDAY = "friday"; + @SerializedName(SERIALIZED_NAME_FRIDAY) + private Boolean friday; + + public static final String SERIALIZED_NAME_SATURDAY = "saturday"; + @SerializedName(SERIALIZED_NAME_SATURDAY) + private Boolean saturday; + + public static final String SERIALIZED_NAME_SUNDAY = "sunday"; + @SerializedName(SERIALIZED_NAME_SUNDAY) + private Boolean sunday; + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner() { + } + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner start(BigDecimal start) { + + this.start = start; + return this; + } + + /** + * The start time of operation in milliseconds. + * @return start + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "25200000", required = true, value = "The start time of operation in milliseconds.") + + public BigDecimal getStart() { + return start; + } + + + public void setStart(BigDecimal start) { + this.start = start; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner end(BigDecimal end) { + + this.end = end; + return this; + } + + /** + * The end time of operation in milliseconds. + * @return end + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "39600000", required = true, value = "The end time of operation in milliseconds.") + + public BigDecimal getEnd() { + return end; + } + + + public void setEnd(BigDecimal end) { + this.end = end; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner monday(Boolean monday) { + + this.monday = monday; + return this; + } + + /** + * Indicates whether the operation is open on Monday. + * @return monday + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Indicates whether the operation is open on Monday.") + + public Boolean getMonday() { + return monday; + } + + + public void setMonday(Boolean monday) { + this.monday = monday; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner tuesday(Boolean tuesday) { + + this.tuesday = tuesday; + return this; + } + + /** + * Indicates whether the operation is open on Tuesday. + * @return tuesday + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Indicates whether the operation is open on Tuesday.") + + public Boolean getTuesday() { + return tuesday; + } + + + public void setTuesday(Boolean tuesday) { + this.tuesday = tuesday; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner wednesday(Boolean wednesday) { + + this.wednesday = wednesday; + return this; + } + + /** + * Indicates whether the operation is open on Wednesday. + * @return wednesday + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Indicates whether the operation is open on Wednesday.") + + public Boolean getWednesday() { + return wednesday; + } + + + public void setWednesday(Boolean wednesday) { + this.wednesday = wednesday; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner thursday(Boolean thursday) { + + this.thursday = thursday; + return this; + } + + /** + * Indicates whether the operation is open on Thursday. + * @return thursday + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Indicates whether the operation is open on Thursday.") + + public Boolean getThursday() { + return thursday; + } + + + public void setThursday(Boolean thursday) { + this.thursday = thursday; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner friday(Boolean friday) { + + this.friday = friday; + return this; + } + + /** + * Indicates whether the operation is open on Friday. + * @return friday + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "true", required = true, value = "Indicates whether the operation is open on Friday.") + + public Boolean getFriday() { + return friday; + } + + + public void setFriday(Boolean friday) { + this.friday = friday; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner saturday(Boolean saturday) { + + this.saturday = saturday; + return this; + } + + /** + * Indicates whether the operation is open on Saturday. + * @return saturday + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "false", required = true, value = "Indicates whether the operation is open on Saturday.") + + public Boolean getSaturday() { + return saturday; + } + + + public void setSaturday(Boolean saturday) { + this.saturday = saturday; + } + + + public PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner sunday(Boolean sunday) { + + this.sunday = sunday; + return this; + } + + /** + * Indicates whether the operation is open on Sunday. + * @return sunday + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "false", required = true, value = "Indicates whether the operation is open on Sunday.") + + public Boolean getSunday() { + return sunday; + } + + + public void setSunday(Boolean sunday) { + this.sunday = sunday; + } + + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner propertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner = (PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner) o; + return Objects.equals(this.start, propertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.start) && + Objects.equals(this.end, propertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.end) && + Objects.equals(this.monday, propertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.monday) && + Objects.equals(this.tuesday, propertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.tuesday) && + Objects.equals(this.wednesday, propertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.wednesday) && + Objects.equals(this.thursday, propertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.thursday) && + Objects.equals(this.friday, propertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.friday) && + Objects.equals(this.saturday, propertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.saturday) && + Objects.equals(this.sunday, propertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.sunday); + } + + @Override + public int hashCode() { + return Objects.hash(start, end, monday, tuesday, wednesday, thursday, friday, saturday, sunday); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner {\n"); + sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); + sb.append(" monday: ").append(toIndentedString(monday)).append("\n"); + sb.append(" tuesday: ").append(toIndentedString(tuesday)).append("\n"); + sb.append(" wednesday: ").append(toIndentedString(wednesday)).append("\n"); + sb.append(" thursday: ").append(toIndentedString(thursday)).append("\n"); + sb.append(" friday: ").append(toIndentedString(friday)).append("\n"); + sb.append(" saturday: ").append(toIndentedString(saturday)).append("\n"); + sb.append(" sunday: ").append(toIndentedString(sunday)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("start"); + openapiFields.add("end"); + openapiFields.add("monday"); + openapiFields.add("tuesday"); + openapiFields.add("wednesday"); + openapiFields.add("thursday"); + openapiFields.add("friday"); + openapiFields.add("saturday"); + openapiFields.add("sunday"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("start"); + openapiRequiredFields.add("end"); + openapiRequiredFields.add("monday"); + openapiRequiredFields.add("tuesday"); + openapiRequiredFields.add("wednesday"); + openapiRequiredFields.add("thursday"); + openapiRequiredFields.add("friday"); + openapiRequiredFields.add("saturday"); + openapiRequiredFields.add("sunday"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.openapiRequiredFields.isEmpty()) { + return; + } else { // has required fields + throw new IllegalArgumentException(String.format("The required field(s) %s in PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner is not found in the empty JSON string", PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.openapiRequiredFields.toString())); + } + } + + Set> entries = jsonObj.entrySet(); + // check to see if the JSON string contains additional fields + for (Entry entry : entries) { + if (!PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.openapiFields.contains(entry.getKey())) { + throw new IllegalArgumentException(String.format("The field `%s` in the JSON string is not defined in the `PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner` properties. JSON: %s", entry.getKey(), jsonObj.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + elementAdapter.write(out, obj); + } + + @Override + public PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + return thisAdapter.fromJsonTree(jsonObj); + } + + }.nullSafe(); + } + } + + /** + * Create an instance of PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner given an JSON string + * + * @param jsonString JSON string + * @return An instance of PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner + * @throws IOException if the JSON string is invalid with respect to PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner + */ + public static PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.class); + } + + /** + * Convert an instance of PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/src/test/java/com/lodgea/controllers/DefaultApiTest.java b/src/test/java/com/lodgea/controllers/DefaultApiTest.java new file mode 100644 index 0000000..a2a1b82 --- /dev/null +++ b/src/test/java/com/lodgea/controllers/DefaultApiTest.java @@ -0,0 +1,113 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.controllers; + +import com.lodgea.ApiException; +import com.lodgea.model.AvailabilitySearchPost200Response; +import com.lodgea.model.AvailabilitySearchPostRequest; +import com.lodgea.model.LocationSearchPost200Response; +import com.lodgea.model.LocationSearchPost400Response; +import com.lodgea.model.LocationSearchPostRequest; +import com.lodgea.model.PropertiesGet200Response; +import com.lodgea.model.PropertiesPropertyIdAvailabilityGet200Response; +import com.lodgea.model.PropertiesPropertyIdGet200Response; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; + +/** + * API tests for DefaultApi + */ +@Disabled +public class DefaultApiTest { + + private final DefaultApi api = new DefaultApi(); + + /** + * Search for availability + * + * Get availability information based on search criteria. + * + * @throws ApiException if the Api call fails + */ + @Test + public void availabilitySearchPostTest() throws ApiException { + AvailabilitySearchPostRequest availabilitySearchPostRequest = null; + AvailabilitySearchPost200Response response = api.availabilitySearchPost(availabilitySearchPostRequest); + // TODO: test validations + } + + /** + * Search for location + * + * Get a list of locations and their lowest available rate related to a given keyword. + * + * @throws ApiException if the Api call fails + */ + @Test + public void locationSearchPostTest() throws ApiException { + LocationSearchPostRequest locationSearchPostRequest = null; + LocationSearchPost200Response response = api.locationSearchPost(locationSearchPostRequest); + // TODO: test validations + } + + /** + * List (filtered) properties + * + * List properties, optionally filtered by a keyword. + * + * @throws ApiException if the Api call fails + */ + @Test + public void propertiesGetTest() throws ApiException { + String keyword = null; + String pageToken = null; + PropertiesGet200Response response = api.propertiesGet(keyword, pageToken); + // TODO: test validations + } + + /** + * Get a properties availability + * + * Get detailed availability information for a specific property. + * + * @throws ApiException if the Api call fails + */ + @Test + public void propertiesPropertyIdAvailabilityGetTest() throws ApiException { + String propertyId = null; + String currencyCode = null; + PropertiesPropertyIdAvailabilityGet200Response response = api.propertiesPropertyIdAvailabilityGet(propertyId, currencyCode); + // TODO: test validations + } + + /** + * Get a properties details + * + * Get all information about a specific property by its ID. + * + * @throws ApiException if the Api call fails + */ + @Test + public void propertiesPropertyIdGetTest() throws ApiException { + String propertyId = null; + PropertiesPropertyIdGet200Response response = api.propertiesPropertyIdGet(propertyId); + // TODO: test validations + } + +} diff --git a/src/test/java/com/lodgea/model/AvailabilitySearchPost200ResponseTest.java b/src/test/java/com/lodgea/model/AvailabilitySearchPost200ResponseTest.java new file mode 100644 index 0000000..855a665 --- /dev/null +++ b/src/test/java/com/lodgea/model/AvailabilitySearchPost200ResponseTest.java @@ -0,0 +1,61 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner1; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for AvailabilitySearchPost200Response + */ +public class AvailabilitySearchPost200ResponseTest { + private final AvailabilitySearchPost200Response model = new AvailabilitySearchPost200Response(); + + /** + * Model tests for AvailabilitySearchPost200Response + */ + @Test + public void testAvailabilitySearchPost200Response() { + // TODO: test AvailabilitySearchPost200Response + } + + /** + * Test the property 'languageCode' + */ + @Test + public void languageCodeTest() { + // TODO: test languageCode + } + + /** + * Test the property '_list' + */ + @Test + public void _listTest() { + // TODO: test _list + } + +} diff --git a/src/test/java/com/lodgea/model/AvailabilitySearchPostRequestTest.java b/src/test/java/com/lodgea/model/AvailabilitySearchPostRequestTest.java new file mode 100644 index 0000000..23e6831 --- /dev/null +++ b/src/test/java/com/lodgea/model/AvailabilitySearchPostRequestTest.java @@ -0,0 +1,189 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for AvailabilitySearchPostRequest + */ +public class AvailabilitySearchPostRequestTest { + private final AvailabilitySearchPostRequest model = new AvailabilitySearchPostRequest(); + + /** + * Model tests for AvailabilitySearchPostRequest + */ + @Test + public void testAvailabilitySearchPostRequest() { + // TODO: test AvailabilitySearchPostRequest + } + + /** + * Test the property 'adultCount' + */ + @Test + public void adultCountTest() { + // TODO: test adultCount + } + + /** + * Test the property 'childCount' + */ + @Test + public void childCountTest() { + // TODO: test childCount + } + + /** + * Test the property 'childAgeList' + */ + @Test + public void childAgeListTest() { + // TODO: test childAgeList + } + + /** + * Test the property 'currencyCode' + */ + @Test + public void currencyCodeTest() { + // TODO: test currencyCode + } + + /** + * Test the property 'languageCode' + */ + @Test + public void languageCodeTest() { + // TODO: test languageCode + } + + /** + * Test the property 'unitSystem' + */ + @Test + public void unitSystemTest() { + // TODO: test unitSystem + } + + /** + * Test the property 'minLengthOfStay' + */ + @Test + public void minLengthOfStayTest() { + // TODO: test minLengthOfStay + } + + /** + * Test the property 'maxLengthOfStay' + */ + @Test + public void maxLengthOfStayTest() { + // TODO: test maxLengthOfStay + } + + /** + * Test the property 'locationName' + */ + @Test + public void locationNameTest() { + // TODO: test locationName + } + + /** + * Test the property 'locationType' + */ + @Test + public void locationTypeTest() { + // TODO: test locationType + } + + /** + * Test the property 'earliestArrival' + */ + @Test + public void earliestArrivalTest() { + // TODO: test earliestArrival + } + + /** + * Test the property 'latestReturn' + */ + @Test + public void latestReturnTest() { + // TODO: test latestReturn + } + + /** + * Test the property 'sort' + */ + @Test + public void sortTest() { + // TODO: test sort + } + + /** + * Test the property 'serviceList' + */ + @Test + public void serviceListTest() { + // TODO: test serviceList + } + + /** + * Test the property 'typeList' + */ + @Test + public void typeListTest() { + // TODO: test typeList + } + + /** + * Test the property 'unitTypeList' + */ + @Test + public void unitTypeListTest() { + // TODO: test unitTypeList + } + + /** + * Test the property 'unitAmenityList' + */ + @Test + public void unitAmenityListTest() { + // TODO: test unitAmenityList + } + + /** + * Test the property 'mealPlanList' + */ + @Test + public void mealPlanListTest() { + // TODO: test mealPlanList + } + +} diff --git a/src/test/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerDistanceTest.java b/src/test/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerDistanceTest.java new file mode 100644 index 0000000..2aed47b --- /dev/null +++ b/src/test/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerDistanceTest.java @@ -0,0 +1,59 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for AvailablePropertiesInner1AttractionListInnerDistance + */ +public class AvailablePropertiesInner1AttractionListInnerDistanceTest { + private final AvailablePropertiesInner1AttractionListInnerDistance model = new AvailablePropertiesInner1AttractionListInnerDistance(); + + /** + * Model tests for AvailablePropertiesInner1AttractionListInnerDistance + */ + @Test + public void testAvailablePropertiesInner1AttractionListInnerDistance() { + // TODO: test AvailablePropertiesInner1AttractionListInnerDistance + } + + /** + * Test the property 'value' + */ + @Test + public void valueTest() { + // TODO: test value + } + + /** + * Test the property 'unit' + */ + @Test + public void unitTest() { + // TODO: test unit + } + +} diff --git a/src/test/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerTest.java b/src/test/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerTest.java new file mode 100644 index 0000000..bd2f1ba --- /dev/null +++ b/src/test/java/com/lodgea/model/AvailablePropertiesInner1AttractionListInnerTest.java @@ -0,0 +1,68 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner1AttractionListInnerDistance; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for AvailablePropertiesInner1AttractionListInner + */ +public class AvailablePropertiesInner1AttractionListInnerTest { + private final AvailablePropertiesInner1AttractionListInner model = new AvailablePropertiesInner1AttractionListInner(); + + /** + * Model tests for AvailablePropertiesInner1AttractionListInner + */ + @Test + public void testAvailablePropertiesInner1AttractionListInner() { + // TODO: test AvailablePropertiesInner1AttractionListInner + } + + /** + * Test the property 'typeCode' + */ + @Test + public void typeCodeTest() { + // TODO: test typeCode + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'distance' + */ + @Test + public void distanceTest() { + // TODO: test distance + } + +} diff --git a/src/test/java/com/lodgea/model/AvailablePropertiesInner1GeoLocationTest.java b/src/test/java/com/lodgea/model/AvailablePropertiesInner1GeoLocationTest.java new file mode 100644 index 0000000..3e68d14 --- /dev/null +++ b/src/test/java/com/lodgea/model/AvailablePropertiesInner1GeoLocationTest.java @@ -0,0 +1,59 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for AvailablePropertiesInner1GeoLocation + */ +public class AvailablePropertiesInner1GeoLocationTest { + private final AvailablePropertiesInner1GeoLocation model = new AvailablePropertiesInner1GeoLocation(); + + /** + * Model tests for AvailablePropertiesInner1GeoLocation + */ + @Test + public void testAvailablePropertiesInner1GeoLocation() { + // TODO: test AvailablePropertiesInner1GeoLocation + } + + /** + * Test the property 'lng' + */ + @Test + public void lngTest() { + // TODO: test lng + } + + /** + * Test the property 'lat' + */ + @Test + public void latTest() { + // TODO: test lat + } + +} diff --git a/src/test/java/com/lodgea/model/AvailablePropertiesInner1GeoTest.java b/src/test/java/com/lodgea/model/AvailablePropertiesInner1GeoTest.java new file mode 100644 index 0000000..1d217fb --- /dev/null +++ b/src/test/java/com/lodgea/model/AvailablePropertiesInner1GeoTest.java @@ -0,0 +1,219 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner1GeoLocation; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for AvailablePropertiesInner1Geo + */ +public class AvailablePropertiesInner1GeoTest { + private final AvailablePropertiesInner1Geo model = new AvailablePropertiesInner1Geo(); + + /** + * Model tests for AvailablePropertiesInner1Geo + */ + @Test + public void testAvailablePropertiesInner1Geo() { + // TODO: test AvailablePropertiesInner1Geo + } + + /** + * Test the property 'language' + */ + @Test + public void languageTest() { + // TODO: test language + } + + /** + * Test the property 'formattedAddress' + */ + @Test + public void formattedAddressTest() { + // TODO: test formattedAddress + } + + /** + * Test the property 'route' + */ + @Test + public void routeTest() { + // TODO: test route + } + + /** + * Test the property 'streetNumber' + */ + @Test + public void streetNumberTest() { + // TODO: test streetNumber + } + + /** + * Test the property 'postalCode' + */ + @Test + public void postalCodeTest() { + // TODO: test postalCode + } + + /** + * Test the property 'locality' + */ + @Test + public void localityTest() { + // TODO: test locality + } + + /** + * Test the property 'sublocality' + */ + @Test + public void sublocalityTest() { + // TODO: test sublocality + } + + /** + * Test the property 'sublocalityLevel1' + */ + @Test + public void sublocalityLevel1Test() { + // TODO: test sublocalityLevel1 + } + + /** + * Test the property 'sublocalityLevel2' + */ + @Test + public void sublocalityLevel2Test() { + // TODO: test sublocalityLevel2 + } + + /** + * Test the property 'sublocalityLevel3' + */ + @Test + public void sublocalityLevel3Test() { + // TODO: test sublocalityLevel3 + } + + /** + * Test the property 'sublocalityLevel4' + */ + @Test + public void sublocalityLevel4Test() { + // TODO: test sublocalityLevel4 + } + + /** + * Test the property 'sublocalityLevel5' + */ + @Test + public void sublocalityLevel5Test() { + // TODO: test sublocalityLevel5 + } + + /** + * Test the property 'administrativeAreaLevel1' + */ + @Test + public void administrativeAreaLevel1Test() { + // TODO: test administrativeAreaLevel1 + } + + /** + * Test the property 'administrativeAreaLevel2' + */ + @Test + public void administrativeAreaLevel2Test() { + // TODO: test administrativeAreaLevel2 + } + + /** + * Test the property 'administrativeAreaLevel3' + */ + @Test + public void administrativeAreaLevel3Test() { + // TODO: test administrativeAreaLevel3 + } + + /** + * Test the property 'administrativeAreaLevel4' + */ + @Test + public void administrativeAreaLevel4Test() { + // TODO: test administrativeAreaLevel4 + } + + /** + * Test the property 'administrativeAreaLevel5' + */ + @Test + public void administrativeAreaLevel5Test() { + // TODO: test administrativeAreaLevel5 + } + + /** + * Test the property 'stateCode' + */ + @Test + public void stateCodeTest() { + // TODO: test stateCode + } + + /** + * Test the property 'country' + */ + @Test + public void countryTest() { + // TODO: test country + } + + /** + * Test the property 'countryCode' + */ + @Test + public void countryCodeTest() { + // TODO: test countryCode + } + + /** + * Test the property 'location' + */ + @Test + public void locationTest() { + // TODO: test location + } + + /** + * Test the property 'placeId' + */ + @Test + public void placeIdTest() { + // TODO: test placeId + } + +} diff --git a/src/test/java/com/lodgea/model/AvailablePropertiesInner1LowestPriceTest.java b/src/test/java/com/lodgea/model/AvailablePropertiesInner1LowestPriceTest.java new file mode 100644 index 0000000..0dc19d4 --- /dev/null +++ b/src/test/java/com/lodgea/model/AvailablePropertiesInner1LowestPriceTest.java @@ -0,0 +1,83 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for AvailablePropertiesInner1LowestPrice + */ +public class AvailablePropertiesInner1LowestPriceTest { + private final AvailablePropertiesInner1LowestPrice model = new AvailablePropertiesInner1LowestPrice(); + + /** + * Model tests for AvailablePropertiesInner1LowestPrice + */ + @Test + public void testAvailablePropertiesInner1LowestPrice() { + // TODO: test AvailablePropertiesInner1LowestPrice + } + + /** + * Test the property 'amount' + */ + @Test + public void amountTest() { + // TODO: test amount + } + + /** + * Test the property 'currencyCode' + */ + @Test + public void currencyCodeTest() { + // TODO: test currencyCode + } + + /** + * Test the property 'arrivalDate' + */ + @Test + public void arrivalDateTest() { + // TODO: test arrivalDate + } + + /** + * Test the property 'returnDate' + */ + @Test + public void returnDateTest() { + // TODO: test returnDate + } + + /** + * Test the property 'lengthOfStay' + */ + @Test + public void lengthOfStayTest() { + // TODO: test lengthOfStay + } + +} diff --git a/src/test/java/com/lodgea/model/AvailablePropertiesInner1MediaListInnerTest.java b/src/test/java/com/lodgea/model/AvailablePropertiesInner1MediaListInnerTest.java new file mode 100644 index 0000000..0021d62 --- /dev/null +++ b/src/test/java/com/lodgea/model/AvailablePropertiesInner1MediaListInnerTest.java @@ -0,0 +1,77 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for AvailablePropertiesInner1MediaListInner + */ +public class AvailablePropertiesInner1MediaListInnerTest { + private final AvailablePropertiesInner1MediaListInner model = new AvailablePropertiesInner1MediaListInner(); + + /** + * Model tests for AvailablePropertiesInner1MediaListInner + */ + @Test + public void testAvailablePropertiesInner1MediaListInner() { + // TODO: test AvailablePropertiesInner1MediaListInner + } + + /** + * Test the property 'tagList' + */ + @Test + public void tagListTest() { + // TODO: test tagList + } + + /** + * Test the property 'isMainImage' + */ + @Test + public void isMainImageTest() { + // TODO: test isMainImage + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'sortOrder' + */ + @Test + public void sortOrderTest() { + // TODO: test sortOrder + } + +} diff --git a/src/test/java/com/lodgea/model/AvailablePropertiesInner1Test.java b/src/test/java/com/lodgea/model/AvailablePropertiesInner1Test.java new file mode 100644 index 0000000..36ff016 --- /dev/null +++ b/src/test/java/com/lodgea/model/AvailablePropertiesInner1Test.java @@ -0,0 +1,161 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner1AttractionListInner; +import com.lodgea.model.AvailablePropertiesInner1Geo; +import com.lodgea.model.AvailablePropertiesInner1LowestPrice; +import com.lodgea.model.AvailablePropertiesInner1MediaListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for AvailablePropertiesInner1 + */ +public class AvailablePropertiesInner1Test { + private final AvailablePropertiesInner1 model = new AvailablePropertiesInner1(); + + /** + * Model tests for AvailablePropertiesInner1 + */ + @Test + public void testAvailablePropertiesInner1() { + // TODO: test AvailablePropertiesInner1 + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'languageCode' + */ + @Test + public void languageCodeTest() { + // TODO: test languageCode + } + + /** + * Test the property 'currencyCode' + */ + @Test + public void currencyCodeTest() { + // TODO: test currencyCode + } + + /** + * Test the property 'unitSystem' + */ + @Test + public void unitSystemTest() { + // TODO: test unitSystem + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'uri' + */ + @Test + public void uriTest() { + // TODO: test uri + } + + /** + * Test the property 'serviceList' + */ + @Test + public void serviceListTest() { + // TODO: test serviceList + } + + /** + * Test the property 'categoryList' + */ + @Test + public void categoryListTest() { + // TODO: test categoryList + } + + /** + * Test the property 'uriPath' + */ + @Test + public void uriPathTest() { + // TODO: test uriPath + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + + /** + * Test the property 'geo' + */ + @Test + public void geoTest() { + // TODO: test geo + } + + /** + * Test the property 'mediaList' + */ + @Test + public void mediaListTest() { + // TODO: test mediaList + } + + /** + * Test the property 'attractionList' + */ + @Test + public void attractionListTest() { + // TODO: test attractionList + } + + /** + * Test the property 'lowestPrice' + */ + @Test + public void lowestPriceTest() { + // TODO: test lowestPrice + } + +} diff --git a/src/test/java/com/lodgea/model/AvailablePropertiesInnerTest.java b/src/test/java/com/lodgea/model/AvailablePropertiesInnerTest.java new file mode 100644 index 0000000..9e18e93 --- /dev/null +++ b/src/test/java/com/lodgea/model/AvailablePropertiesInnerTest.java @@ -0,0 +1,75 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for AvailablePropertiesInner + */ +public class AvailablePropertiesInnerTest { + private final AvailablePropertiesInner model = new AvailablePropertiesInner(); + + /** + * Model tests for AvailablePropertiesInner + */ + @Test + public void testAvailablePropertiesInner() { + // TODO: test AvailablePropertiesInner + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'currencyCode' + */ + @Test + public void currencyCodeTest() { + // TODO: test currencyCode + } + + /** + * Test the property 'lowestPrice' + */ + @Test + public void lowestPriceTest() { + // TODO: test lowestPrice + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/src/test/java/com/lodgea/model/LocationSearchPost200ResponseTest.java b/src/test/java/com/lodgea/model/LocationSearchPost200ResponseTest.java new file mode 100644 index 0000000..f190c91 --- /dev/null +++ b/src/test/java/com/lodgea/model/LocationSearchPost200ResponseTest.java @@ -0,0 +1,61 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for LocationSearchPost200Response + */ +public class LocationSearchPost200ResponseTest { + private final LocationSearchPost200Response model = new LocationSearchPost200Response(); + + /** + * Model tests for LocationSearchPost200Response + */ + @Test + public void testLocationSearchPost200Response() { + // TODO: test LocationSearchPost200Response + } + + /** + * Test the property 'languageCode' + */ + @Test + public void languageCodeTest() { + // TODO: test languageCode + } + + /** + * Test the property '_list' + */ + @Test + public void _listTest() { + // TODO: test _list + } + +} diff --git a/src/test/java/com/lodgea/model/LocationSearchPost400ResponseTest.java b/src/test/java/com/lodgea/model/LocationSearchPost400ResponseTest.java new file mode 100644 index 0000000..e373071 --- /dev/null +++ b/src/test/java/com/lodgea/model/LocationSearchPost400ResponseTest.java @@ -0,0 +1,53 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.LocationSearchPost400ResponseValidationErrorsInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for LocationSearchPost400Response + */ +public class LocationSearchPost400ResponseTest { + private final LocationSearchPost400Response model = new LocationSearchPost400Response(); + + /** + * Model tests for LocationSearchPost400Response + */ + @Test + public void testLocationSearchPost400Response() { + // TODO: test LocationSearchPost400Response + } + + /** + * Test the property 'validationErrors' + */ + @Test + public void validationErrorsTest() { + // TODO: test validationErrors + } + +} diff --git a/src/test/java/com/lodgea/model/LocationSearchPost400ResponseValidationErrorsInnerTest.java b/src/test/java/com/lodgea/model/LocationSearchPost400ResponseValidationErrorsInnerTest.java new file mode 100644 index 0000000..11aa731 --- /dev/null +++ b/src/test/java/com/lodgea/model/LocationSearchPost400ResponseValidationErrorsInnerTest.java @@ -0,0 +1,68 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for LocationSearchPost400ResponseValidationErrorsInner + */ +public class LocationSearchPost400ResponseValidationErrorsInnerTest { + private final LocationSearchPost400ResponseValidationErrorsInner model = new LocationSearchPost400ResponseValidationErrorsInner(); + + /** + * Model tests for LocationSearchPost400ResponseValidationErrorsInner + */ + @Test + public void testLocationSearchPost400ResponseValidationErrorsInner() { + // TODO: test LocationSearchPost400ResponseValidationErrorsInner + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'message' + */ + @Test + public void messageTest() { + // TODO: test message + } + + /** + * Test the property 'path' + */ + @Test + public void pathTest() { + // TODO: test path + } + +} diff --git a/src/test/java/com/lodgea/model/LocationSearchPostRequestTest.java b/src/test/java/com/lodgea/model/LocationSearchPostRequestTest.java new file mode 100644 index 0000000..48a67d0 --- /dev/null +++ b/src/test/java/com/lodgea/model/LocationSearchPostRequestTest.java @@ -0,0 +1,66 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for LocationSearchPostRequest + */ +public class LocationSearchPostRequestTest { + private final LocationSearchPostRequest model = new LocationSearchPostRequest(); + + /** + * Model tests for LocationSearchPostRequest + */ + @Test + public void testLocationSearchPostRequest() { + // TODO: test LocationSearchPostRequest + } + + /** + * Test the property 'searchText' + */ + @Test + public void searchTextTest() { + // TODO: test searchText + } + + /** + * Test the property 'currencyCode' + */ + @Test + public void currencyCodeTest() { + // TODO: test currencyCode + } + + /** + * Test the property 'languageCode' + */ + @Test + public void languageCodeTest() { + // TODO: test languageCode + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesGet200ResponseListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesGet200ResponseListInnerTest.java new file mode 100644 index 0000000..72ece1d --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesGet200ResponseListInnerTest.java @@ -0,0 +1,91 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesGet200ResponseListInner + */ +public class PropertiesGet200ResponseListInnerTest { + private final PropertiesGet200ResponseListInner model = new PropertiesGet200ResponseListInner(); + + /** + * Model tests for PropertiesGet200ResponseListInner + */ + @Test + public void testPropertiesGet200ResponseListInner() { + // TODO: test PropertiesGet200ResponseListInner + } + + /** + * Test the property 'published' + */ + @Test + public void publishedTest() { + // TODO: test published + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'propertyId' + */ + @Test + public void propertyIdTest() { + // TODO: test propertyId + } + + /** + * Test the property 'image' + */ + @Test + public void imageTest() { + // TODO: test image + } + + /** + * Test the property 'address' + */ + @Test + public void addressTest() { + // TODO: test address + } + + /** + * Test the property 'lastUpdated' + */ + @Test + public void lastUpdatedTest() { + // TODO: test lastUpdated + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesGet200ResponseTest.java b/src/test/java/com/lodgea/model/PropertiesGet200ResponseTest.java new file mode 100644 index 0000000..a0473d9 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesGet200ResponseTest.java @@ -0,0 +1,61 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesGet200ResponseListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesGet200Response + */ +public class PropertiesGet200ResponseTest { + private final PropertiesGet200Response model = new PropertiesGet200Response(); + + /** + * Model tests for PropertiesGet200Response + */ + @Test + public void testPropertiesGet200Response() { + // TODO: test PropertiesGet200Response + } + + /** + * Test the property '_list' + */ + @Test + public void _listTest() { + // TODO: test _list + } + + /** + * Test the property 'pageToken' + */ + @Test + public void pageTokenTest() { + // TODO: test pageToken + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInnerTest.java new file mode 100644 index 0000000..980dc0e --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInnerTest.java @@ -0,0 +1,78 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner + */ +public class PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInnerTest { + private final PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner model = new PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner(); + + /** + * Model tests for PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner + */ + @Test + public void testPropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner() { + // TODO: test PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner + } + + /** + * Test the property 'ratePlanList' + */ + @Test + public void ratePlanListTest() { + // TODO: test ratePlanList + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'mealPlanList' + */ + @Test + public void mealPlanListTest() { + // TODO: test mealPlanList + } + + /** + * Test the property 'roomTypeList' + */ + @Test + public void roomTypeListTest() { + // TODO: test roomTypeList + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseTest.java new file mode 100644 index 0000000..1f7fe41 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseTest.java @@ -0,0 +1,53 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdAvailabilityGet200Response + */ +public class PropertiesPropertyIdAvailabilityGet200ResponseTest { + private final PropertiesPropertyIdAvailabilityGet200Response model = new PropertiesPropertyIdAvailabilityGet200Response(); + + /** + * Model tests for PropertiesPropertyIdAvailabilityGet200Response + */ + @Test + public void testPropertiesPropertyIdAvailabilityGet200Response() { + // TODO: test PropertiesPropertyIdAvailabilityGet200Response + } + + /** + * Test the property 'availabilityList' + */ + @Test + public void availabilityListTest() { + // TODO: test availabilityList + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfoTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfoTest.java new file mode 100644 index 0000000..20acd53 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfoTest.java @@ -0,0 +1,146 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo + */ +public class PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfoTest { + private final PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo model = new PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo + */ + @Test + public void testPropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo() { + // TODO: test PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo + } + + /** + * Test the property 'checkInTime' + */ + @Test + public void checkInTimeTest() { + // TODO: test checkInTime + } + + /** + * Test the property 'checkOutTime' + */ + @Test + public void checkOutTimeTest() { + // TODO: test checkOutTime + } + + /** + * Test the property 'totalGuestCount' + */ + @Test + public void totalGuestCountTest() { + // TODO: test totalGuestCount + } + + /** + * Test the property 'cancellationPolicyList' + */ + @Test + public void cancellationPolicyListTest() { + // TODO: test cancellationPolicyList + } + + /** + * Test the property 'advanceBookingMin' + */ + @Test + public void advanceBookingMinTest() { + // TODO: test advanceBookingMin + } + + /** + * Test the property 'advanceBookingMax' + */ + @Test + public void advanceBookingMaxTest() { + // TODO: test advanceBookingMax + } + + /** + * Test the property 'petsPolicy' + */ + @Test + public void petsPolicyTest() { + // TODO: test petsPolicy + } + + /** + * Test the property 'prepaymentPolicy' + */ + @Test + public void prepaymentPolicyTest() { + // TODO: test prepaymentPolicy + } + + /** + * Test the property 'guaranteePolicy' + */ + @Test + public void guaranteePolicyTest() { + // TODO: test guaranteePolicy + } + + /** + * Test the property 'taxPolicyList' + */ + @Test + public void taxPolicyListTest() { + // TODO: test taxPolicyList + } + + /** + * Test the property 'feePolicyList' + */ + @Test + public void feePolicyListTest() { + // TODO: test feePolicyList + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInnerTest.java new file mode 100644 index 0000000..c80e8c0 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInnerTest.java @@ -0,0 +1,78 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner + */ +public class PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInnerTest { + private final PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner model = new PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner() { + // TODO: test PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner + } + + /** + * Test the property 'dateTime' + */ + @Test + public void dateTimeTest() { + // TODO: test dateTime + } + + /** + * Test the property 'occupancy' + */ + @Test + public void occupancyTest() { + // TODO: test occupancy + } + + /** + * Test the property 'priceList' + */ + @Test + public void priceListTest() { + // TODO: test priceList + } + + /** + * Test the property 'currencyCode' + */ + @Test + public void currencyCodeTest() { + // TODO: test currencyCode + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerTest.java new file mode 100644 index 0000000..ca8e009 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerTest.java @@ -0,0 +1,77 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner + */ +public class PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerTest { + private final PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner model = new PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner() { + // TODO: test PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner + } + + /** + * Test the property 'active' + */ + @Test + public void activeTest() { + // TODO: test active + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'pricingList' + */ + @Test + public void pricingListTest() { + // TODO: test pricingList + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerTest.java new file mode 100644 index 0000000..89b883b --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerTest.java @@ -0,0 +1,111 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo; +import com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponseProductListInner + */ +public class PropertiesPropertyIdGet200ResponseProductListInnerTest { + private final PropertiesPropertyIdGet200ResponseProductListInner model = new PropertiesPropertyIdGet200ResponseProductListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponseProductListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponseProductListInner() { + // TODO: test PropertiesPropertyIdGet200ResponseProductListInner + } + + /** + * Test the property 'propertyId' + */ + @Test + public void propertyIdTest() { + // TODO: test propertyId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'mealPlanList' + */ + @Test + public void mealPlanListTest() { + // TODO: test mealPlanList + } + + /** + * Test the property 'roomTypeList' + */ + @Test + public void roomTypeListTest() { + // TODO: test roomTypeList + } + + /** + * Test the property 'isLOSPricing' + */ + @Test + public void isLOSPricingTest() { + // TODO: test isLOSPricing + } + + /** + * Test the property 'isOBPPricing' + */ + @Test + public void isOBPPricingTest() { + // TODO: test isOBPPricing + } + + /** + * Test the property 'ratePlanList' + */ + @Test + public void ratePlanListTest() { + // TODO: test ratePlanList + } + + /** + * Test the property 'policyInfo' + */ + @Test + public void policyInfoTest() { + // TODO: test policyInfo + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInnerTest.java new file mode 100644 index 0000000..0480b3f --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInnerTest.java @@ -0,0 +1,59 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyAwardListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyAwardListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyAwardListInner model = new PropertiesPropertyIdGet200ResponsePropertyAwardListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyAwardListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyAwardListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyAwardListInner + } + + /** + * Test the property 'provider' + */ + @Test + public void providerTest() { + // TODO: test provider + } + + /** + * Test the property 'rating' + */ + @Test + public void ratingTest() { + // TODO: test rating + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriodTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriodTest.java new file mode 100644 index 0000000..fa8fe2c --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriodTest.java @@ -0,0 +1,59 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod + */ +public class PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriodTest { + private final PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod model = new PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod + } + + /** + * Test the property 'hoursAfterBooking' + */ + @Test + public void hoursAfterBookingTest() { + // TODO: test hoursAfterBooking + } + + /** + * Test the property 'weeksBeforeCheckIn' + */ + @Test + public void weeksBeforeCheckInTest() { + // TODO: test weeksBeforeCheckIn + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInnerTest.java new file mode 100644 index 0000000..08fd49f --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInnerTest.java @@ -0,0 +1,90 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner model = new PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner + } + + /** + * Test the property 'addressLine' + */ + @Test + public void addressLineTest() { + // TODO: test addressLine + } + + /** + * Test the property 'propertyName' + */ + @Test + public void propertyNameTest() { + // TODO: test propertyName + } + + /** + * Test the property 'cityName' + */ + @Test + public void cityNameTest() { + // TODO: test cityName + } + + /** + * Test the property 'postalCode' + */ + @Test + public void postalCodeTest() { + // TODO: test postalCode + } + + /** + * Test the property 'state' + */ + @Test + public void stateTest() { + // TODO: test state + } + + /** + * Test the property 'countryCode' + */ + @Test + public void countryCodeTest() { + // TODO: test countryCode + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerTest.java new file mode 100644 index 0000000..3ead5c7 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerTest.java @@ -0,0 +1,61 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyContactListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyContactListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyContactListInner model = new PropertiesPropertyIdGet200ResponsePropertyContactListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyContactListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyContactListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyContactListInner + } + + /** + * Test the property 'profileType' + */ + @Test + public void profileTypeTest() { + // TODO: test profileType + } + + /** + * Test the property 'addressList' + */ + @Test + public void addressListTest() { + // TODO: test addressList + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInnerTest.java new file mode 100644 index 0000000..aad2ed6 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInnerTest.java @@ -0,0 +1,59 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner model = new PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'quantity' + */ + @Test + public void quantityTest() { + // TODO: test quantity + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerTest.java new file mode 100644 index 0000000..83c701d --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerTest.java @@ -0,0 +1,109 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner model = new PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner + } + + /** + * Test the property 'isMainImage' + */ + @Test + public void isMainImageTest() { + // TODO: test isMainImage + } + + /** + * Test the property 'url' + */ + @Test + public void urlTest() { + // TODO: test url + } + + /** + * Test the property 'sortOrder' + */ + @Test + public void sortOrderTest() { + // TODO: test sortOrder + } + + /** + * Test the property 'tagList' + */ + @Test + public void tagListTest() { + // TODO: test tagList + } + + /** + * Test the property 'moderationLabelList' + */ + @Test + public void moderationLabelListTest() { + // TODO: test moderationLabelList + } + + /** + * Test the property 'detectionLabelList' + */ + @Test + public void detectionLabelListTest() { + // TODO: test detectionLabelList + } + + /** + * Test the property 'propertyAmenityList' + */ + @Test + public void propertyAmenityListTest() { + // TODO: test propertyAmenityList + } + + /** + * Test the property 'roomAmenityList' + */ + @Test + public void roomAmenityListTest() { + // TODO: test roomAmenityList + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInnerTest.java new file mode 100644 index 0000000..84a5024 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInnerTest.java @@ -0,0 +1,58 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner model = new PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner + } + + /** + * Test the property 'languageCode' + */ + @Test + public void languageCodeTest() { + // TODO: test languageCode + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerTest.java new file mode 100644 index 0000000..7d29547 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerTest.java @@ -0,0 +1,136 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner model = new PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner + } + + /** + * Test the property 'isActive' + */ + @Test + public void isActiveTest() { + // TODO: test isActive + } + + /** + * Test the property 'roomId' + */ + @Test + public void roomIdTest() { + // TODO: test roomId + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'mediaList' + */ + @Test + public void mediaListTest() { + // TODO: test mediaList + } + + /** + * Test the property 'roomTypeCode' + */ + @Test + public void roomTypeCodeTest() { + // TODO: test roomTypeCode + } + + /** + * Test the property 'isNonSmoking' + */ + @Test + public void isNonSmokingTest() { + // TODO: test isNonSmoking + } + + /** + * Test the property 'amenityList' + */ + @Test + public void amenityListTest() { + // TODO: test amenityList + } + + /** + * Test the property 'messageList' + */ + @Test + public void messageListTest() { + // TODO: test messageList + } + + /** + * Test the property 'maxOccupancy' + */ + @Test + public void maxOccupancyTest() { + // TODO: test maxOccupancy + } + + /** + * Test the property 'maxAdultOccupancy' + */ + @Test + public void maxAdultOccupancyTest() { + // TODO: test maxAdultOccupancy + } + + /** + * Test the property 'maxChildOccupancy' + */ + @Test + public void maxChildOccupancyTest() { + // TODO: test maxChildOccupancy + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoTest.java new file mode 100644 index 0000000..1991273 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoTest.java @@ -0,0 +1,53 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyFacilityInfo + */ +public class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoTest { + private final PropertiesPropertyIdGet200ResponsePropertyFacilityInfo model = new PropertiesPropertyIdGet200ResponsePropertyFacilityInfo(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyFacilityInfo + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyFacilityInfo() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyFacilityInfo + } + + /** + * Test the property 'guestRoomList' + */ + @Test + public void guestRoomListTest() { + // TODO: test guestRoomList + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfoTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfoTest.java new file mode 100644 index 0000000..2e98d7f --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfoTest.java @@ -0,0 +1,66 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyGuestInfo + */ +public class PropertiesPropertyIdGet200ResponsePropertyGuestInfoTest { + private final PropertiesPropertyIdGet200ResponsePropertyGuestInfo model = new PropertiesPropertyIdGet200ResponsePropertyGuestInfo(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyGuestInfo + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyGuestInfo() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyGuestInfo + } + + /** + * Test the property 'guestAddressRequired' + */ + @Test + public void guestAddressRequiredTest() { + // TODO: test guestAddressRequired + } + + /** + * Test the property 'guestContactNumberRequired' + */ + @Test + public void guestContactNumberRequiredTest() { + // TODO: test guestContactNumberRequired + } + + /** + * Test the property 'guestNameListRequired' + */ + @Test + public void guestNameListRequiredTest() { + // TODO: test guestNameListRequired + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInnerTest.java new file mode 100644 index 0000000..22f5865 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInnerTest.java @@ -0,0 +1,99 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner model = new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner + } + + /** + * Test the property 'percentAfterReservation' + */ + @Test + public void percentAfterReservationTest() { + // TODO: test percentAfterReservation + } + + /** + * Test the property 'nightsAfterReservation' + */ + @Test + public void nightsAfterReservationTest() { + // TODO: test nightsAfterReservation + } + + /** + * Test the property 'deadlineDays' + */ + @Test + public void deadlineDaysTest() { + // TODO: test deadlineDays + } + + /** + * Test the property 'deadlineHours' + */ + @Test + public void deadlineHoursTest() { + // TODO: test deadlineHours + } + + /** + * Test the property 'percentAfterDeadline' + */ + @Test + public void percentAfterDeadlineTest() { + // TODO: test percentAfterDeadline + } + + /** + * Test the property 'nightsAfterDeadline' + */ + @Test + public void nightsAfterDeadlineTest() { + // TODO: test nightsAfterDeadline + } + + /** + * Test the property 'noShowPolicy' + */ + @Test + public void noShowPolicyTest() { + // TODO: test noShowPolicy + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInnerTest.java new file mode 100644 index 0000000..d5264c3 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInnerTest.java @@ -0,0 +1,93 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner model = new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner + } + + /** + * Test the property 'typeCode' + */ + @Test + public void typeCodeTest() { + // TODO: test typeCode + } + + /** + * Test the property 'percent' + */ + @Test + public void percentTest() { + // TODO: test percent + } + + /** + * Test the property 'chargeType' + */ + @Test + public void chargeTypeTest() { + // TODO: test chargeType + } + + /** + * Test the property 'chargeFrequencyCode' + */ + @Test + public void chargeFrequencyCodeTest() { + // TODO: test chargeFrequencyCode + } + + /** + * Test the property 'currencyCode' + */ + @Test + public void currencyCodeTest() { + // TODO: test currencyCode + } + + /** + * Test the property 'conditionList' + */ + @Test + public void conditionListTest() { + // TODO: test conditionList + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicyTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicyTest.java new file mode 100644 index 0000000..62ba6ed --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicyTest.java @@ -0,0 +1,99 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy + */ +public class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicyTest { + private final PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy model = new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy + } + + /** + * Test the property 'percentAfterReservation' + */ + @Test + public void percentAfterReservationTest() { + // TODO: test percentAfterReservation + } + + /** + * Test the property 'nightsAfterReservation' + */ + @Test + public void nightsAfterReservationTest() { + // TODO: test nightsAfterReservation + } + + /** + * Test the property 'deadlineDays' + */ + @Test + public void deadlineDaysTest() { + // TODO: test deadlineDays + } + + /** + * Test the property 'deadlineHours' + */ + @Test + public void deadlineHoursTest() { + // TODO: test deadlineHours + } + + /** + * Test the property 'percentAfterDeadline' + */ + @Test + public void percentAfterDeadlineTest() { + // TODO: test percentAfterDeadline + } + + /** + * Test the property 'nightsAfterDeadline' + */ + @Test + public void nightsAfterDeadlineTest() { + // TODO: test nightsAfterDeadline + } + + /** + * Test the property 'noShowPolicy' + */ + @Test + public void noShowPolicyTest() { + // TODO: test noShowPolicy + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicyTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicyTest.java new file mode 100644 index 0000000..5a50c62 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicyTest.java @@ -0,0 +1,66 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy + */ +public class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicyTest { + private final PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy model = new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy + } + + /** + * Test the property 'allowed' + */ + @Test + public void allowedTest() { + // TODO: test allowed + } + + /** + * Test the property 'byArrangement' + */ + @Test + public void byArrangementTest() { + // TODO: test byArrangement + } + + /** + * Test the property 'freeOfCharge' + */ + @Test + public void freeOfChargeTest() { + // TODO: test freeOfCharge + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInnerTest.java new file mode 100644 index 0000000..e7cd244 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInnerTest.java @@ -0,0 +1,93 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner model = new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner + } + + /** + * Test the property 'typeCode' + */ + @Test + public void typeCodeTest() { + // TODO: test typeCode + } + + /** + * Test the property 'percent' + */ + @Test + public void percentTest() { + // TODO: test percent + } + + /** + * Test the property 'chargeType' + */ + @Test + public void chargeTypeTest() { + // TODO: test chargeType + } + + /** + * Test the property 'chargeFrequencyCode' + */ + @Test + public void chargeFrequencyCodeTest() { + // TODO: test chargeFrequencyCode + } + + /** + * Test the property 'currencyCode' + */ + @Test + public void currencyCodeTest() { + // TODO: test currencyCode + } + + /** + * Test the property 'conditionList' + */ + @Test + public void conditionListTest() { + // TODO: test conditionList + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTest.java new file mode 100644 index 0000000..78d342f --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTest.java @@ -0,0 +1,146 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPolicyListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyPolicyListInner model = new PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPolicyListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyPolicyListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyPolicyListInner + } + + /** + * Test the property 'checkInTime' + */ + @Test + public void checkInTimeTest() { + // TODO: test checkInTime + } + + /** + * Test the property 'checkOutTime' + */ + @Test + public void checkOutTimeTest() { + // TODO: test checkOutTime + } + + /** + * Test the property 'totalGuestCount' + */ + @Test + public void totalGuestCountTest() { + // TODO: test totalGuestCount + } + + /** + * Test the property 'cancellationPolicyList' + */ + @Test + public void cancellationPolicyListTest() { + // TODO: test cancellationPolicyList + } + + /** + * Test the property 'advanceBookingMin' + */ + @Test + public void advanceBookingMinTest() { + // TODO: test advanceBookingMin + } + + /** + * Test the property 'advanceBookingMax' + */ + @Test + public void advanceBookingMaxTest() { + // TODO: test advanceBookingMax + } + + /** + * Test the property 'petsPolicy' + */ + @Test + public void petsPolicyTest() { + // TODO: test petsPolicy + } + + /** + * Test the property 'prepaymentPolicy' + */ + @Test + public void prepaymentPolicyTest() { + // TODO: test prepaymentPolicy + } + + /** + * Test the property 'guaranteePolicy' + */ + @Test + public void guaranteePolicyTest() { + // TODO: test guaranteePolicy + } + + /** + * Test the property 'taxPolicyList' + */ + @Test + public void taxPolicyListTest() { + // TODO: test taxPolicyList + } + + /** + * Test the property 'feePolicyList' + */ + @Test + public void feePolicyListTest() { + // TODO: test feePolicyList + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInnerTest.java new file mode 100644 index 0000000..268bd17 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInnerTest.java @@ -0,0 +1,58 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner model = new PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'type' + */ + @Test + public void typeTest() { + // TODO: test type + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInnerTest.java new file mode 100644 index 0000000..9d79393 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInnerTest.java @@ -0,0 +1,58 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner model = new PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner + } + + /** + * Test the property 'languageCode' + */ + @Test + public void languageCodeTest() { + // TODO: test languageCode + } + + /** + * Test the property 'text' + */ + @Test + public void textTest() { + // TODO: test text + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoTest.java new file mode 100644 index 0000000..0270c5c --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoTest.java @@ -0,0 +1,96 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner1GeoLocation; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPropertyInfo + */ +public class PropertiesPropertyIdGet200ResponsePropertyPropertyInfoTest { + private final PropertiesPropertyIdGet200ResponsePropertyPropertyInfo model = new PropertiesPropertyIdGet200ResponsePropertyPropertyInfo(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyPropertyInfo + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyPropertyInfo() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyPropertyInfo + } + + /** + * Test the property 'unitCount' + */ + @Test + public void unitCountTest() { + // TODO: test unitCount + } + + /** + * Test the property 'messageList' + */ + @Test + public void messageListTest() { + // TODO: test messageList + } + + /** + * Test the property 'categoryList' + */ + @Test + public void categoryListTest() { + // TODO: test categoryList + } + + /** + * Test the property 'languageList' + */ + @Test + public void languageListTest() { + // TODO: test languageList + } + + /** + * Test the property 'location' + */ + @Test + public void locationTest() { + // TODO: test location + } + + /** + * Test the property 'acceptedPaymentList' + */ + @Test + public void acceptedPaymentListTest() { + // TODO: test acceptedPaymentList + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreatedTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreatedTest.java new file mode 100644 index 0000000..3e637dd --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreatedTest.java @@ -0,0 +1,75 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyRecordCreated + */ +public class PropertiesPropertyIdGet200ResponsePropertyRecordCreatedTest { + private final PropertiesPropertyIdGet200ResponsePropertyRecordCreated model = new PropertiesPropertyIdGet200ResponsePropertyRecordCreated(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyRecordCreated + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyRecordCreated() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyRecordCreated + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + + /** + * Test the property 'tenant' + */ + @Test + public void tenantTest() { + // TODO: test tenant + } + + /** + * Test the property 'role' + */ + @Test + public void roleTest() { + // TODO: test role + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModifiedTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModifiedTest.java new file mode 100644 index 0000000..167376a --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModifiedTest.java @@ -0,0 +1,75 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyRecordModified + */ +public class PropertiesPropertyIdGet200ResponsePropertyRecordModifiedTest { + private final PropertiesPropertyIdGet200ResponsePropertyRecordModified model = new PropertiesPropertyIdGet200ResponsePropertyRecordModified(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyRecordModified + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyRecordModified() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyRecordModified + } + + /** + * Test the property 'user' + */ + @Test + public void userTest() { + // TODO: test user + } + + /** + * Test the property 'tenant' + */ + @Test + public void tenantTest() { + // TODO: test tenant + } + + /** + * Test the property 'role' + */ + @Test + public void roleTest() { + // TODO: test role + } + + /** + * Test the property 'time' + */ + @Test + public void timeTest() { + // TODO: test time + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInnerTest.java new file mode 100644 index 0000000..a82a6f0 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInnerTest.java @@ -0,0 +1,115 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner model = new PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner + } + + /** + * Test the property 'start' + */ + @Test + public void startTest() { + // TODO: test start + } + + /** + * Test the property 'end' + */ + @Test + public void endTest() { + // TODO: test end + } + + /** + * Test the property 'monday' + */ + @Test + public void mondayTest() { + // TODO: test monday + } + + /** + * Test the property 'tuesday' + */ + @Test + public void tuesdayTest() { + // TODO: test tuesday + } + + /** + * Test the property 'wednesday' + */ + @Test + public void wednesdayTest() { + // TODO: test wednesday + } + + /** + * Test the property 'thursday' + */ + @Test + public void thursdayTest() { + // TODO: test thursday + } + + /** + * Test the property 'friday' + */ + @Test + public void fridayTest() { + // TODO: test friday + } + + /** + * Test the property 'saturday' + */ + @Test + public void saturdayTest() { + // TODO: test saturday + } + + /** + * Test the property 'sunday' + */ + @Test + public void sundayTest() { + // TODO: test sunday + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerTest.java new file mode 100644 index 0000000..a06d576 --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerTest.java @@ -0,0 +1,126 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.math.BigDecimal; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyServiceListInner + */ +public class PropertiesPropertyIdGet200ResponsePropertyServiceListInnerTest { + private final PropertiesPropertyIdGet200ResponsePropertyServiceListInner model = new PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponsePropertyServiceListInner + */ + @Test + public void testPropertiesPropertyIdGet200ResponsePropertyServiceListInner() { + // TODO: test PropertiesPropertyIdGet200ResponsePropertyServiceListInner + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'price' + */ + @Test + public void priceTest() { + // TODO: test price + } + + /** + * Test the property 'exists' + */ + @Test + public void existsTest() { + // TODO: test exists + } + + /** + * Test the property 'included' + */ + @Test + public void includedTest() { + // TODO: test included + } + + /** + * Test the property 'currencyCode' + */ + @Test + public void currencyCodeTest() { + // TODO: test currencyCode + } + + /** + * Test the property 'featureList' + */ + @Test + public void featureListTest() { + // TODO: test featureList + } + + /** + * Test the property 'typeList' + */ + @Test + public void typeListTest() { + // TODO: test typeList + } + + /** + * Test the property 'itemList' + */ + @Test + public void itemListTest() { + // TODO: test itemList + } + + /** + * Test the property 'operationTimeList' + */ + @Test + public void operationTimeListTest() { + // TODO: test operationTimeList + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyTest.java new file mode 100644 index 0000000..9f1b2cb --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponsePropertyTest.java @@ -0,0 +1,186 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.AvailablePropertiesInner1Geo; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyAwardListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyContactListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfo; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyGuestInfo; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyRecordCreated; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyRecordModified; +import com.lodgea.model.PropertiesPropertyIdGet200ResponsePropertyServiceListInner; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200ResponseProperty + */ +public class PropertiesPropertyIdGet200ResponsePropertyTest { + private final PropertiesPropertyIdGet200ResponseProperty model = new PropertiesPropertyIdGet200ResponseProperty(); + + /** + * Model tests for PropertiesPropertyIdGet200ResponseProperty + */ + @Test + public void testPropertiesPropertyIdGet200ResponseProperty() { + // TODO: test PropertiesPropertyIdGet200ResponseProperty + } + + /** + * Test the property 'code' + */ + @Test + public void codeTest() { + // TODO: test code + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'recordCreated' + */ + @Test + public void recordCreatedTest() { + // TODO: test recordCreated + } + + /** + * Test the property 'recordModified' + */ + @Test + public void recordModifiedTest() { + // TODO: test recordModified + } + + /** + * Test the property 'propertyInfo' + */ + @Test + public void propertyInfoTest() { + // TODO: test propertyInfo + } + + /** + * Test the property 'guestInfo' + */ + @Test + public void guestInfoTest() { + // TODO: test guestInfo + } + + /** + * Test the property 'awardList' + */ + @Test + public void awardListTest() { + // TODO: test awardList + } + + /** + * Test the property 'contactList' + */ + @Test + public void contactListTest() { + // TODO: test contactList + } + + /** + * Test the property 'facilityInfo' + */ + @Test + public void facilityInfoTest() { + // TODO: test facilityInfo + } + + /** + * Test the property 'mediaList' + */ + @Test + public void mediaListTest() { + // TODO: test mediaList + } + + /** + * Test the property 'geo' + */ + @Test + public void geoTest() { + // TODO: test geo + } + + /** + * Test the property 'published' + */ + @Test + public void publishedTest() { + // TODO: test published + } + + /** + * Test the property 'policyList' + */ + @Test + public void policyListTest() { + // TODO: test policyList + } + + /** + * Test the property 'uri' + */ + @Test + public void uriTest() { + // TODO: test uri + } + + /** + * Test the property 'cancellationGracePeriod' + */ + @Test + public void cancellationGracePeriodTest() { + // TODO: test cancellationGracePeriod + } + + /** + * Test the property 'serviceList' + */ + @Test + public void serviceListTest() { + // TODO: test serviceList + } + +} diff --git a/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseTest.java b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseTest.java new file mode 100644 index 0000000..f68167c --- /dev/null +++ b/src/test/java/com/lodgea/model/PropertiesPropertyIdGet200ResponseTest.java @@ -0,0 +1,62 @@ +/* + * lodgea-java + * LODGEA SDK for Java. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.1.0 + * Contact: support@lodgea.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package com.lodgea.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import com.lodgea.model.PropertiesPropertyIdGet200ResponseProductListInner; +import com.lodgea.model.PropertiesPropertyIdGet200ResponseProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PropertiesPropertyIdGet200Response + */ +public class PropertiesPropertyIdGet200ResponseTest { + private final PropertiesPropertyIdGet200Response model = new PropertiesPropertyIdGet200Response(); + + /** + * Model tests for PropertiesPropertyIdGet200Response + */ + @Test + public void testPropertiesPropertyIdGet200Response() { + // TODO: test PropertiesPropertyIdGet200Response + } + + /** + * Test the property 'property' + */ + @Test + public void propertyTest() { + // TODO: test property + } + + /** + * Test the property 'productList' + */ + @Test + public void productListTest() { + // TODO: test productList + } + +}