diff --git a/.gitignore b/.gitignore index 6a7d6d8..e920c16 100644 --- a/.gitignore +++ b/.gitignore @@ -2,129 +2,32 @@ logs *.log npm-debug.log* -yarn-debug.log* -yarn-error.log* -lerna-debug.log* -.pnpm-debug.log* - -# Diagnostic reports (https://nodejs.org/api/report.html) -report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json # Runtime data pids *.pid *.seed -*.pid.lock # Directory for instrumented libs generated by jscoverage/JSCover lib-cov # Coverage directory used by tools like istanbul coverage -*.lcov - -# nyc test coverage -.nyc_output -# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files) +# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) .grunt -# Bower dependency directory (https://bower.io/) -bower_components - # node-waf configuration .lock-wscript -# Compiled binary addons (https://nodejs.org/api/addons.html) +# Compiled binary addons (http://nodejs.org/api/addons.html) build/Release -# Dependency directories -node_modules/ -jspm_packages/ - -# Snowpack dependency directory (https://snowpack.dev/) -web_modules/ - -# TypeScript cache -*.tsbuildinfo +# Dependency directory +node_modules # Optional npm cache directory .npm -# Optional eslint cache -.eslintcache - -# Optional stylelint cache -.stylelintcache - -# Microbundle cache -.rpt2_cache/ -.rts2_cache_cjs/ -.rts2_cache_es/ -.rts2_cache_umd/ - # Optional REPL history .node_repl_history - -# Output of 'npm pack' -*.tgz - -# Yarn Integrity file -.yarn-integrity - -# dotenv environment variable files -.env -.env.development.local -.env.test.local -.env.production.local -.env.local - -# parcel-bundler cache (https://parceljs.org/) -.cache -.parcel-cache - -# Next.js build output -.next -out - -# Nuxt.js build / generate output -.nuxt -dist - -# Gatsby files -.cache/ -# Comment in the public line in if your project uses Gatsby and not Next.js -# https://nextjs.org/blog/next-9-1#public-directory-support -# public - -# vuepress build output -.vuepress/dist - -# vuepress v2.x temp and cache directory -.temp -.cache - -# Docusaurus cache and generated files -.docusaurus - -# Serverless directories -.serverless/ - -# FuseBox cache -.fusebox/ - -# DynamoDB Local files -.dynamodb/ - -# TernJS port file -.tern-port - -# Stores VSCode versions used for testing VSCode extensions -.vscode-test - -# yarn v2 -.yarn/cache -.yarn/unplugged -.yarn/build-state.yml -.yarn/install-state.gz -.pnp.* \ No newline at end of file diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 8888497..211e738 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -3,152 +3,173 @@ .openapi-generator-ignore .travis.yml README.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 +docs/InlineObject.md +docs/InlineObject1.md +docs/InlineResponse200.md +docs/InlineResponse2001.md +docs/InlineResponse2001AttractionList.md +docs/InlineResponse2001Distance.md +docs/InlineResponse2001Geo.md +docs/InlineResponse2001GeoLocation.md +docs/InlineResponse2001List.md +docs/InlineResponse2001LowestPrice.md +docs/InlineResponse2001MediaList.md +docs/InlineResponse2002.md +docs/InlineResponse2002List.md +docs/InlineResponse2003.md +docs/InlineResponse2003PolicyInfo.md +docs/InlineResponse2003PolicyInfoFeePolicyList.md +docs/InlineResponse2003PolicyInfoTaxPolicyList.md +docs/InlineResponse2003PricingList.md +docs/InlineResponse2003ProductList.md +docs/InlineResponse2003Property.md +docs/InlineResponse2003PropertyAddressList.md +docs/InlineResponse2003PropertyAwardList.md +docs/InlineResponse2003PropertyCancellationGracePeriod.md +docs/InlineResponse2003PropertyCancellationPolicyList.md +docs/InlineResponse2003PropertyContactList.md +docs/InlineResponse2003PropertyFacilityInfo.md +docs/InlineResponse2003PropertyFacilityInfoAmenityList.md +docs/InlineResponse2003PropertyFacilityInfoGuestRoomList.md +docs/InlineResponse2003PropertyFacilityInfoMediaList.md +docs/InlineResponse2003PropertyFacilityInfoMessageList.md +docs/InlineResponse2003PropertyFeePolicyList.md +docs/InlineResponse2003PropertyGuaranteePolicy.md +docs/InlineResponse2003PropertyGuestInfo.md +docs/InlineResponse2003PropertyMediaList.md +docs/InlineResponse2003PropertyOperationTimeList.md +docs/InlineResponse2003PropertyPetsPolicy.md +docs/InlineResponse2003PropertyPolicyList.md +docs/InlineResponse2003PropertyPropertyInfo.md +docs/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.md +docs/InlineResponse2003PropertyPropertyInfoMessageList.md +docs/InlineResponse2003PropertyRecordCreated.md +docs/InlineResponse2003PropertyRecordModified.md +docs/InlineResponse2003PropertyServiceList.md +docs/InlineResponse2003PropertyTaxPolicyList.md +docs/InlineResponse2003RatePlanList.md +docs/InlineResponse2004.md +docs/InlineResponse2004AvailabilityList.md +docs/InlineResponse2004PricingList.md +docs/InlineResponse2004RatePlanList.md +docs/InlineResponse200List.md +docs/InlineResponse400.md +docs/InlineResponse4001.md +docs/InlineResponse4001ValidationErrors.md +docs/InlineResponse400ValidationErrors.md git_push.sh mocha.opts package.json src/com.lodgea/ApiClient.js src/com.lodgea/com.lodgea.controllers/DefaultApi.js -src/com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response.js -src/com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest.js -src/com.lodgea/com.lodgea.model/AvailablePropertiesInner.js -src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1.js -src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInner.js -src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance.js -src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1Geo.js -src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1GeoLocation.js -src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice.js -src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1MediaListInner.js -src/com.lodgea/com.lodgea.model/LocationSearchPost200Response.js -src/com.lodgea/com.lodgea.model/LocationSearchPost400Response.js -src/com.lodgea/com.lodgea.model/LocationSearchPost400ResponseValidationErrorsInner.js -src/com.lodgea/com.lodgea.model/LocationSearchPostRequest.js -src/com.lodgea/com.lodgea.model/PropertiesGet200Response.js -src/com.lodgea/com.lodgea.model/PropertiesGet200ResponseListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200Response.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProperty.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.js -src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.js +src/com.lodgea/com.lodgea.model/InlineObject.js +src/com.lodgea/com.lodgea.model/InlineObject1.js +src/com.lodgea/com.lodgea.model/InlineResponse200.js +src/com.lodgea/com.lodgea.model/InlineResponse2001.js +src/com.lodgea/com.lodgea.model/InlineResponse2001AttractionList.js +src/com.lodgea/com.lodgea.model/InlineResponse2001Distance.js +src/com.lodgea/com.lodgea.model/InlineResponse2001Geo.js +src/com.lodgea/com.lodgea.model/InlineResponse2001GeoLocation.js +src/com.lodgea/com.lodgea.model/InlineResponse2001List.js +src/com.lodgea/com.lodgea.model/InlineResponse2001LowestPrice.js +src/com.lodgea/com.lodgea.model/InlineResponse2001MediaList.js +src/com.lodgea/com.lodgea.model/InlineResponse2002.js +src/com.lodgea/com.lodgea.model/InlineResponse2002List.js +src/com.lodgea/com.lodgea.model/InlineResponse2003.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfo.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PricingList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003ProductList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003Property.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyAddressList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyAwardList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationGracePeriod.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationPolicyList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyContactList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfo.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoAmenityList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoGuestRoomList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMediaList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMessageList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuaranteePolicy.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuestInfo.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyMediaList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyOperationTimeList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPetsPolicy.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPolicyList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfo.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoMessageList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordCreated.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordModified.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyServiceList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList.js +src/com.lodgea/com.lodgea.model/InlineResponse2003RatePlanList.js +src/com.lodgea/com.lodgea.model/InlineResponse2004.js +src/com.lodgea/com.lodgea.model/InlineResponse2004AvailabilityList.js +src/com.lodgea/com.lodgea.model/InlineResponse2004PricingList.js +src/com.lodgea/com.lodgea.model/InlineResponse2004RatePlanList.js +src/com.lodgea/com.lodgea.model/InlineResponse200List.js +src/com.lodgea/com.lodgea.model/InlineResponse400.js +src/com.lodgea/com.lodgea.model/InlineResponse4001.js +src/com.lodgea/com.lodgea.model/InlineResponse4001ValidationErrors.js +src/com.lodgea/com.lodgea.model/InlineResponse400ValidationErrors.js src/com.lodgea/index.js test/com.lodgea/api/DefaultApi.spec.js -test/com.lodgea/model/AvailabilitySearchPost200Response.spec.js -test/com.lodgea/model/AvailabilitySearchPostRequest.spec.js -test/com.lodgea/model/AvailablePropertiesInner.spec.js -test/com.lodgea/model/AvailablePropertiesInner1.spec.js -test/com.lodgea/model/AvailablePropertiesInner1AttractionListInner.spec.js -test/com.lodgea/model/AvailablePropertiesInner1AttractionListInnerDistance.spec.js -test/com.lodgea/model/AvailablePropertiesInner1Geo.spec.js -test/com.lodgea/model/AvailablePropertiesInner1GeoLocation.spec.js -test/com.lodgea/model/AvailablePropertiesInner1LowestPrice.spec.js -test/com.lodgea/model/AvailablePropertiesInner1MediaListInner.spec.js -test/com.lodgea/model/LocationSearchPost200Response.spec.js -test/com.lodgea/model/LocationSearchPost400Response.spec.js -test/com.lodgea/model/LocationSearchPost400ResponseValidationErrorsInner.spec.js -test/com.lodgea/model/LocationSearchPostRequest.spec.js -test/com.lodgea/model/PropertiesGet200Response.spec.js -test/com.lodgea/model/PropertiesGet200ResponseListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdAvailabilityGet200Response.spec.js -test/com.lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200Response.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProperty.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.spec.js -test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.spec.js +test/com.lodgea/model/InlineObject.spec.js +test/com.lodgea/model/InlineObject1.spec.js +test/com.lodgea/model/InlineResponse200.spec.js +test/com.lodgea/model/InlineResponse2001.spec.js +test/com.lodgea/model/InlineResponse2001AttractionList.spec.js +test/com.lodgea/model/InlineResponse2001Distance.spec.js +test/com.lodgea/model/InlineResponse2001Geo.spec.js +test/com.lodgea/model/InlineResponse2001GeoLocation.spec.js +test/com.lodgea/model/InlineResponse2001List.spec.js +test/com.lodgea/model/InlineResponse2001LowestPrice.spec.js +test/com.lodgea/model/InlineResponse2001MediaList.spec.js +test/com.lodgea/model/InlineResponse2002.spec.js +test/com.lodgea/model/InlineResponse2002List.spec.js +test/com.lodgea/model/InlineResponse2003.spec.js +test/com.lodgea/model/InlineResponse2003PolicyInfo.spec.js +test/com.lodgea/model/InlineResponse2003PolicyInfoFeePolicyList.spec.js +test/com.lodgea/model/InlineResponse2003PolicyInfoTaxPolicyList.spec.js +test/com.lodgea/model/InlineResponse2003PricingList.spec.js +test/com.lodgea/model/InlineResponse2003ProductList.spec.js +test/com.lodgea/model/InlineResponse2003Property.spec.js +test/com.lodgea/model/InlineResponse2003PropertyAddressList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyAwardList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyCancellationGracePeriod.spec.js +test/com.lodgea/model/InlineResponse2003PropertyCancellationPolicyList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyContactList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyFacilityInfo.spec.js +test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoAmenityList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoGuestRoomList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoMediaList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoMessageList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyFeePolicyList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyGuaranteePolicy.spec.js +test/com.lodgea/model/InlineResponse2003PropertyGuestInfo.spec.js +test/com.lodgea/model/InlineResponse2003PropertyMediaList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyOperationTimeList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyPetsPolicy.spec.js +test/com.lodgea/model/InlineResponse2003PropertyPolicyList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyPropertyInfo.spec.js +test/com.lodgea/model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyPropertyInfoMessageList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyRecordCreated.spec.js +test/com.lodgea/model/InlineResponse2003PropertyRecordModified.spec.js +test/com.lodgea/model/InlineResponse2003PropertyServiceList.spec.js +test/com.lodgea/model/InlineResponse2003PropertyTaxPolicyList.spec.js +test/com.lodgea/model/InlineResponse2003RatePlanList.spec.js +test/com.lodgea/model/InlineResponse2004.spec.js +test/com.lodgea/model/InlineResponse2004AvailabilityList.spec.js +test/com.lodgea/model/InlineResponse2004PricingList.spec.js +test/com.lodgea/model/InlineResponse2004RatePlanList.spec.js +test/com.lodgea/model/InlineResponse200List.spec.js +test/com.lodgea/model/InlineResponse400.spec.js +test/com.lodgea/model/InlineResponse4001.spec.js +test/com.lodgea/model/InlineResponse4001ValidationErrors.spec.js +test/com.lodgea/model/InlineResponse400ValidationErrors.spec.js diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index e7e42a4..1e20ec3 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -6.3.0 \ No newline at end of file +5.4.0 \ No newline at end of file diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/README.md b/README.md index f98bed5..26b25f5 100644 --- a/README.md +++ b/README.md @@ -4,8 +4,8 @@ LodgeaJs - JavaScript client for lodgea_js LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: 1.1.0 -- Package version: 1.1.5 +- API version: 1.2.0 +- Package version: 1.2.0 - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen ## Installation @@ -109,7 +109,7 @@ ApiKeyAuth.apiKey = "YOUR API KEY" var api = new LodgeaJs.DefaultApi() var opts = { - 'availabilitySearchPostRequest': new LodgeaJs.AvailabilitySearchPostRequest() // {AvailabilitySearchPostRequest} + 'inlineObject1': new LodgeaJs.InlineObject1() // {InlineObject1} }; var callback = function(error, data, response) { if (error) { @@ -137,53 +137,60 @@ Class | Method | HTTP request | Description ## Documentation for Models - - [LodgeaJs.AvailabilitySearchPost200Response](docs/AvailabilitySearchPost200Response.md) - - [LodgeaJs.AvailabilitySearchPostRequest](docs/AvailabilitySearchPostRequest.md) - - [LodgeaJs.AvailablePropertiesInner](docs/AvailablePropertiesInner.md) - - [LodgeaJs.AvailablePropertiesInner1](docs/AvailablePropertiesInner1.md) - - [LodgeaJs.AvailablePropertiesInner1AttractionListInner](docs/AvailablePropertiesInner1AttractionListInner.md) - - [LodgeaJs.AvailablePropertiesInner1AttractionListInnerDistance](docs/AvailablePropertiesInner1AttractionListInnerDistance.md) - - [LodgeaJs.AvailablePropertiesInner1Geo](docs/AvailablePropertiesInner1Geo.md) - - [LodgeaJs.AvailablePropertiesInner1GeoLocation](docs/AvailablePropertiesInner1GeoLocation.md) - - [LodgeaJs.AvailablePropertiesInner1LowestPrice](docs/AvailablePropertiesInner1LowestPrice.md) - - [LodgeaJs.AvailablePropertiesInner1MediaListInner](docs/AvailablePropertiesInner1MediaListInner.md) - - [LodgeaJs.LocationSearchPost200Response](docs/LocationSearchPost200Response.md) - - [LodgeaJs.LocationSearchPost400Response](docs/LocationSearchPost400Response.md) - - [LodgeaJs.LocationSearchPost400ResponseValidationErrorsInner](docs/LocationSearchPost400ResponseValidationErrorsInner.md) - - [LodgeaJs.LocationSearchPostRequest](docs/LocationSearchPostRequest.md) - - [LodgeaJs.PropertiesGet200Response](docs/PropertiesGet200Response.md) - - [LodgeaJs.PropertiesGet200ResponseListInner](docs/PropertiesGet200ResponseListInner.md) - - [LodgeaJs.PropertiesPropertyIdAvailabilityGet200Response](docs/PropertiesPropertyIdAvailabilityGet200Response.md) - - [LodgeaJs.PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner](docs/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200Response](docs/PropertiesPropertyIdGet200Response.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner](docs/PropertiesPropertyIdGet200ResponseProductListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo](docs/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner](docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner](docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponseProperty](docs/PropertiesPropertyIdGet200ResponseProperty.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyAwardListInner](docs/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod](docs/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInner](docs/PropertiesPropertyIdGet200ResponsePropertyContactListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner](docs/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfo](docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner](docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner](docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner](docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner](docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyGuestInfo](docs/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner](docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner](docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner](docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy](docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy](docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner](docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo](docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner](docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner](docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordCreated](docs/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordModified](docs/PropertiesPropertyIdGet200ResponsePropertyRecordModified.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner](docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.md) - - [LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner](docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.md) + - [LodgeaJs.InlineObject](docs/InlineObject.md) + - [LodgeaJs.InlineObject1](docs/InlineObject1.md) + - [LodgeaJs.InlineResponse200](docs/InlineResponse200.md) + - [LodgeaJs.InlineResponse2001](docs/InlineResponse2001.md) + - [LodgeaJs.InlineResponse2001AttractionList](docs/InlineResponse2001AttractionList.md) + - [LodgeaJs.InlineResponse2001Distance](docs/InlineResponse2001Distance.md) + - [LodgeaJs.InlineResponse2001Geo](docs/InlineResponse2001Geo.md) + - [LodgeaJs.InlineResponse2001GeoLocation](docs/InlineResponse2001GeoLocation.md) + - [LodgeaJs.InlineResponse2001List](docs/InlineResponse2001List.md) + - [LodgeaJs.InlineResponse2001LowestPrice](docs/InlineResponse2001LowestPrice.md) + - [LodgeaJs.InlineResponse2001MediaList](docs/InlineResponse2001MediaList.md) + - [LodgeaJs.InlineResponse2002](docs/InlineResponse2002.md) + - [LodgeaJs.InlineResponse2002List](docs/InlineResponse2002List.md) + - [LodgeaJs.InlineResponse2003](docs/InlineResponse2003.md) + - [LodgeaJs.InlineResponse2003PolicyInfo](docs/InlineResponse2003PolicyInfo.md) + - [LodgeaJs.InlineResponse2003PolicyInfoFeePolicyList](docs/InlineResponse2003PolicyInfoFeePolicyList.md) + - [LodgeaJs.InlineResponse2003PolicyInfoTaxPolicyList](docs/InlineResponse2003PolicyInfoTaxPolicyList.md) + - [LodgeaJs.InlineResponse2003PricingList](docs/InlineResponse2003PricingList.md) + - [LodgeaJs.InlineResponse2003ProductList](docs/InlineResponse2003ProductList.md) + - [LodgeaJs.InlineResponse2003Property](docs/InlineResponse2003Property.md) + - [LodgeaJs.InlineResponse2003PropertyAddressList](docs/InlineResponse2003PropertyAddressList.md) + - [LodgeaJs.InlineResponse2003PropertyAwardList](docs/InlineResponse2003PropertyAwardList.md) + - [LodgeaJs.InlineResponse2003PropertyCancellationGracePeriod](docs/InlineResponse2003PropertyCancellationGracePeriod.md) + - [LodgeaJs.InlineResponse2003PropertyCancellationPolicyList](docs/InlineResponse2003PropertyCancellationPolicyList.md) + - [LodgeaJs.InlineResponse2003PropertyContactList](docs/InlineResponse2003PropertyContactList.md) + - [LodgeaJs.InlineResponse2003PropertyFacilityInfo](docs/InlineResponse2003PropertyFacilityInfo.md) + - [LodgeaJs.InlineResponse2003PropertyFacilityInfoAmenityList](docs/InlineResponse2003PropertyFacilityInfoAmenityList.md) + - [LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList](docs/InlineResponse2003PropertyFacilityInfoGuestRoomList.md) + - [LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList](docs/InlineResponse2003PropertyFacilityInfoMediaList.md) + - [LodgeaJs.InlineResponse2003PropertyFacilityInfoMessageList](docs/InlineResponse2003PropertyFacilityInfoMessageList.md) + - [LodgeaJs.InlineResponse2003PropertyFeePolicyList](docs/InlineResponse2003PropertyFeePolicyList.md) + - [LodgeaJs.InlineResponse2003PropertyGuaranteePolicy](docs/InlineResponse2003PropertyGuaranteePolicy.md) + - [LodgeaJs.InlineResponse2003PropertyGuestInfo](docs/InlineResponse2003PropertyGuestInfo.md) + - [LodgeaJs.InlineResponse2003PropertyMediaList](docs/InlineResponse2003PropertyMediaList.md) + - [LodgeaJs.InlineResponse2003PropertyOperationTimeList](docs/InlineResponse2003PropertyOperationTimeList.md) + - [LodgeaJs.InlineResponse2003PropertyPetsPolicy](docs/InlineResponse2003PropertyPetsPolicy.md) + - [LodgeaJs.InlineResponse2003PropertyPolicyList](docs/InlineResponse2003PropertyPolicyList.md) + - [LodgeaJs.InlineResponse2003PropertyPropertyInfo](docs/InlineResponse2003PropertyPropertyInfo.md) + - [LodgeaJs.InlineResponse2003PropertyPropertyInfoAcceptedPaymentList](docs/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.md) + - [LodgeaJs.InlineResponse2003PropertyPropertyInfoMessageList](docs/InlineResponse2003PropertyPropertyInfoMessageList.md) + - [LodgeaJs.InlineResponse2003PropertyRecordCreated](docs/InlineResponse2003PropertyRecordCreated.md) + - [LodgeaJs.InlineResponse2003PropertyRecordModified](docs/InlineResponse2003PropertyRecordModified.md) + - [LodgeaJs.InlineResponse2003PropertyServiceList](docs/InlineResponse2003PropertyServiceList.md) + - [LodgeaJs.InlineResponse2003PropertyTaxPolicyList](docs/InlineResponse2003PropertyTaxPolicyList.md) + - [LodgeaJs.InlineResponse2003RatePlanList](docs/InlineResponse2003RatePlanList.md) + - [LodgeaJs.InlineResponse2004](docs/InlineResponse2004.md) + - [LodgeaJs.InlineResponse2004AvailabilityList](docs/InlineResponse2004AvailabilityList.md) + - [LodgeaJs.InlineResponse2004PricingList](docs/InlineResponse2004PricingList.md) + - [LodgeaJs.InlineResponse2004RatePlanList](docs/InlineResponse2004RatePlanList.md) + - [LodgeaJs.InlineResponse200List](docs/InlineResponse200List.md) + - [LodgeaJs.InlineResponse400](docs/InlineResponse400.md) + - [LodgeaJs.InlineResponse4001](docs/InlineResponse4001.md) + - [LodgeaJs.InlineResponse4001ValidationErrors](docs/InlineResponse4001ValidationErrors.md) + - [LodgeaJs.InlineResponse400ValidationErrors](docs/InlineResponse400ValidationErrors.md) ## Documentation for Authorization diff --git a/docs/AvailabilitySearchPost200Response.md b/docs/AvailabilitySearchPost200Response.md deleted file mode 100644 index aa47df7..0000000 --- a/docs/AvailabilitySearchPost200Response.md +++ /dev/null @@ -1,93 +0,0 @@ -# LodgeaJs.AvailabilitySearchPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**languageCode** | **String** | 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** | [**[AvailablePropertiesInner1]**](AvailablePropertiesInner1.md) | A list of available properties matching the given criteria. | - - - -## Enum: LanguageCodeEnum - - -* `af` (value: `"af"`) - -* `ar` (value: `"ar"`) - -* `bg` (value: `"bg"`) - -* `ca` (value: `"ca"`) - -* `cs` (value: `"cs"`) - -* `da` (value: `"da"`) - -* `de` (value: `"de"`) - -* `el` (value: `"el"`) - -* `en` (value: `"en"`) - -* `es` (value: `"es"`) - -* `et` (value: `"et"`) - -* `fi` (value: `"fi"`) - -* `fr` (value: `"fr"`) - -* `he` (value: `"he"`) - -* `hi` (value: `"hi"`) - -* `hr` (value: `"hr"`) - -* `hu` (value: `"hu"`) - -* `id` (value: `"id"`) - -* `is` (value: `"is"`) - -* `it` (value: `"it"`) - -* `ja` (value: `"ja"`) - -* `ko` (value: `"ko"`) - -* `lt` (value: `"lt"`) - -* `lv` (value: `"lv"`) - -* `nl` (value: `"nl"`) - -* `no` (value: `"no"`) - -* `pl` (value: `"pl"`) - -* `pt` (value: `"pt"`) - -* `ro` (value: `"ro"`) - -* `ru` (value: `"ru"`) - -* `sk` (value: `"sk"`) - -* `sl` (value: `"sl"`) - -* `sr` (value: `"sr"`) - -* `sv` (value: `"sv"`) - -* `th` (value: `"th"`) - -* `tr` (value: `"tr"`) - -* `vi` (value: `"vi"`) - -* `zh` (value: `"zh"`) - - - - diff --git a/docs/AvailablePropertiesInner1LowestPrice.md b/docs/AvailablePropertiesInner1LowestPrice.md deleted file mode 100644 index f5cba4b..0000000 --- a/docs/AvailablePropertiesInner1LowestPrice.md +++ /dev/null @@ -1,120 +0,0 @@ -# LodgeaJs.AvailablePropertiesInner1LowestPrice - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**amount** | **Number** | The amount of the lowest price. | -**currencyCode** | **String** | The currency code for the given amount.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> | -**arrivalDate** | **Number** | Arrival date for the given price as unix timestamp (seconds). | -**returnDate** | **Number** | Departure date for the given price as unix timestamp (seconds). | -**lengthOfStay** | **Number** | The amount of nights of stay this price is for | - - - -## Enum: CurrencyCodeEnum - - -* `AED` (value: `"AED"`) - -* `ARS` (value: `"ARS"`) - -* `AUD` (value: `"AUD"`) - -* `AZN` (value: `"AZN"`) - -* `BGN` (value: `"BGN"`) - -* `BHD` (value: `"BHD"`) - -* `BRL` (value: `"BRL"`) - -* `CAD` (value: `"CAD"`) - -* `CHF` (value: `"CHF"`) - -* `CLP` (value: `"CLP"`) - -* `CNY` (value: `"CNY"`) - -* `COP` (value: `"COP"`) - -* `CZK` (value: `"CZK"`) - -* `DKK` (value: `"DKK"`) - -* `EGP` (value: `"EGP"`) - -* `EUR` (value: `"EUR"`) - -* `FJD` (value: `"FJD"`) - -* `GBP` (value: `"GBP"`) - -* `GEL` (value: `"GEL"`) - -* `HKD` (value: `"HKD"`) - -* `HUF` (value: `"HUF"`) - -* `IDR` (value: `"IDR"`) - -* `ILS` (value: `"ILS"`) - -* `INR` (value: `"INR"`) - -* `JOD` (value: `"JOD"`) - -* `JPY` (value: `"JPY"`) - -* `KRW` (value: `"KRW"`) - -* `KWD` (value: `"KWD"`) - -* `KZT` (value: `"KZT"`) - -* `MDL` (value: `"MDL"`) - -* `MXN` (value: `"MXN"`) - -* `MYR` (value: `"MYR"`) - -* `NAD` (value: `"NAD"`) - -* `NOK` (value: `"NOK"`) - -* `NZD` (value: `"NZD"`) - -* `OMR` (value: `"OMR"`) - -* `PLN` (value: `"PLN"`) - -* `QAR` (value: `"QAR"`) - -* `RON` (value: `"RON"`) - -* `RUB` (value: `"RUB"`) - -* `SAR` (value: `"SAR"`) - -* `SEK` (value: `"SEK"`) - -* `SGD` (value: `"SGD"`) - -* `THB` (value: `"THB"`) - -* `TRY` (value: `"TRY"`) - -* `TWD` (value: `"TWD"`) - -* `UAH` (value: `"UAH"`) - -* `USD` (value: `"USD"`) - -* `XOF` (value: `"XOF"`) - -* `ZAR` (value: `"ZAR"`) - - - - diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 832ab9e..54e2ea1 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -14,7 +14,7 @@ Method | HTTP request | Description ## availabilitySearchPost -> AvailabilitySearchPost200Response availabilitySearchPost(opts) +> InlineResponse2001 availabilitySearchPost(opts) Search for availability @@ -33,7 +33,7 @@ ApiKeyAuth.apiKey = 'YOUR API KEY'; let apiInstance = new LodgeaJs.DefaultApi(); let opts = { - 'availabilitySearchPostRequest': new LodgeaJs.AvailabilitySearchPostRequest() // AvailabilitySearchPostRequest | + 'inlineObject1': new LodgeaJs.InlineObject1() // InlineObject1 | }; apiInstance.availabilitySearchPost(opts, (error, data, response) => { if (error) { @@ -49,11 +49,11 @@ apiInstance.availabilitySearchPost(opts, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **availabilitySearchPostRequest** | [**AvailabilitySearchPostRequest**](AvailabilitySearchPostRequest.md)| | [optional] + **inlineObject1** | [**InlineObject1**](InlineObject1.md)| | [optional] ### Return type -[**AvailabilitySearchPost200Response**](AvailabilitySearchPost200Response.md) +[**InlineResponse2001**](InlineResponse2001.md) ### Authorization @@ -67,7 +67,7 @@ Name | Type | Description | Notes ## locationSearchPost -> LocationSearchPost200Response locationSearchPost(opts) +> InlineResponse200 locationSearchPost(opts) Search for location @@ -86,7 +86,7 @@ ApiKeyAuth.apiKey = 'YOUR API KEY'; let apiInstance = new LodgeaJs.DefaultApi(); let opts = { - 'locationSearchPostRequest': new LodgeaJs.LocationSearchPostRequest() // LocationSearchPostRequest | + 'inlineObject': new LodgeaJs.InlineObject() // InlineObject | }; apiInstance.locationSearchPost(opts, (error, data, response) => { if (error) { @@ -102,11 +102,11 @@ apiInstance.locationSearchPost(opts, (error, data, response) => { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **locationSearchPostRequest** | [**LocationSearchPostRequest**](LocationSearchPostRequest.md)| | [optional] + **inlineObject** | [**InlineObject**](InlineObject.md)| | [optional] ### Return type -[**LocationSearchPost200Response**](LocationSearchPost200Response.md) +[**InlineResponse200**](InlineResponse200.md) ### Authorization @@ -120,7 +120,7 @@ Name | Type | Description | Notes ## propertiesGet -> PropertiesGet200Response propertiesGet(opts) +> InlineResponse2002 propertiesGet(opts) List (filtered) properties @@ -161,7 +161,7 @@ Name | Type | Description | Notes ### Return type -[**PropertiesGet200Response**](PropertiesGet200Response.md) +[**InlineResponse2002**](InlineResponse2002.md) ### Authorization @@ -175,7 +175,7 @@ Name | Type | Description | Notes ## propertiesPropertyIdAvailabilityGet -> PropertiesPropertyIdAvailabilityGet200Response propertiesPropertyIdAvailabilityGet(propertyId, currencyCode) +> InlineResponse2004 propertiesPropertyIdAvailabilityGet(propertyId, currencyCode) Get a properties availability @@ -214,7 +214,7 @@ Name | Type | Description | Notes ### Return type -[**PropertiesPropertyIdAvailabilityGet200Response**](PropertiesPropertyIdAvailabilityGet200Response.md) +[**InlineResponse2004**](InlineResponse2004.md) ### Authorization @@ -228,7 +228,7 @@ Name | Type | Description | Notes ## propertiesPropertyIdGet -> PropertiesPropertyIdGet200Response propertiesPropertyIdGet(propertyId) +> InlineResponse2003 propertiesPropertyIdGet(propertyId) Get a properties details @@ -265,7 +265,7 @@ Name | Type | Description | Notes ### Return type -[**PropertiesPropertyIdGet200Response**](PropertiesPropertyIdGet200Response.md) +[**InlineResponse2003**](InlineResponse2003.md) ### Authorization diff --git a/docs/LocationSearchPostRequest.md b/docs/InlineObject.md similarity index 98% rename from docs/LocationSearchPostRequest.md rename to docs/InlineObject.md index 431d744..8fd04b8 100644 --- a/docs/LocationSearchPostRequest.md +++ b/docs/InlineObject.md @@ -1,4 +1,4 @@ -# LodgeaJs.LocationSearchPostRequest +# LodgeaJs.InlineObject ## Properties diff --git a/docs/AvailabilitySearchPostRequest.md b/docs/InlineObject1.md similarity index 89% rename from docs/AvailabilitySearchPostRequest.md rename to docs/InlineObject1.md index 4e3a53d..0bd9dd3 100644 --- a/docs/AvailabilitySearchPostRequest.md +++ b/docs/InlineObject1.md @@ -1,4 +1,4 @@ -# LodgeaJs.AvailabilitySearchPostRequest +# LodgeaJs.InlineObject1 ## Properties @@ -25,196 +25,6 @@ Name | Type | Description | Notes -## Enum: CurrencyCodeEnum - - -* `AED` (value: `"AED"`) - -* `ARS` (value: `"ARS"`) - -* `AUD` (value: `"AUD"`) - -* `AZN` (value: `"AZN"`) - -* `BGN` (value: `"BGN"`) - -* `BHD` (value: `"BHD"`) - -* `BRL` (value: `"BRL"`) - -* `CAD` (value: `"CAD"`) - -* `CHF` (value: `"CHF"`) - -* `CLP` (value: `"CLP"`) - -* `CNY` (value: `"CNY"`) - -* `COP` (value: `"COP"`) - -* `CZK` (value: `"CZK"`) - -* `DKK` (value: `"DKK"`) - -* `EGP` (value: `"EGP"`) - -* `EUR` (value: `"EUR"`) - -* `FJD` (value: `"FJD"`) - -* `GBP` (value: `"GBP"`) - -* `GEL` (value: `"GEL"`) - -* `HKD` (value: `"HKD"`) - -* `HUF` (value: `"HUF"`) - -* `IDR` (value: `"IDR"`) - -* `ILS` (value: `"ILS"`) - -* `INR` (value: `"INR"`) - -* `JOD` (value: `"JOD"`) - -* `JPY` (value: `"JPY"`) - -* `KRW` (value: `"KRW"`) - -* `KWD` (value: `"KWD"`) - -* `KZT` (value: `"KZT"`) - -* `MDL` (value: `"MDL"`) - -* `MXN` (value: `"MXN"`) - -* `MYR` (value: `"MYR"`) - -* `NAD` (value: `"NAD"`) - -* `NOK` (value: `"NOK"`) - -* `NZD` (value: `"NZD"`) - -* `OMR` (value: `"OMR"`) - -* `PLN` (value: `"PLN"`) - -* `QAR` (value: `"QAR"`) - -* `RON` (value: `"RON"`) - -* `RUB` (value: `"RUB"`) - -* `SAR` (value: `"SAR"`) - -* `SEK` (value: `"SEK"`) - -* `SGD` (value: `"SGD"`) - -* `THB` (value: `"THB"`) - -* `TRY` (value: `"TRY"`) - -* `TWD` (value: `"TWD"`) - -* `UAH` (value: `"UAH"`) - -* `USD` (value: `"USD"`) - -* `XOF` (value: `"XOF"`) - -* `ZAR` (value: `"ZAR"`) - - - - - -## Enum: LanguageCodeEnum - - -* `af` (value: `"af"`) - -* `ar` (value: `"ar"`) - -* `bg` (value: `"bg"`) - -* `ca` (value: `"ca"`) - -* `cs` (value: `"cs"`) - -* `da` (value: `"da"`) - -* `de` (value: `"de"`) - -* `el` (value: `"el"`) - -* `en` (value: `"en"`) - -* `es` (value: `"es"`) - -* `et` (value: `"et"`) - -* `fi` (value: `"fi"`) - -* `fr` (value: `"fr"`) - -* `he` (value: `"he"`) - -* `hi` (value: `"hi"`) - -* `hr` (value: `"hr"`) - -* `hu` (value: `"hu"`) - -* `id` (value: `"id"`) - -* `is` (value: `"is"`) - -* `it` (value: `"it"`) - -* `ja` (value: `"ja"`) - -* `ko` (value: `"ko"`) - -* `lt` (value: `"lt"`) - -* `lv` (value: `"lv"`) - -* `nl` (value: `"nl"`) - -* `no` (value: `"no"`) - -* `pl` (value: `"pl"`) - -* `pt` (value: `"pt"`) - -* `ro` (value: `"ro"`) - -* `ru` (value: `"ru"`) - -* `sk` (value: `"sk"`) - -* `sl` (value: `"sl"`) - -* `sr` (value: `"sr"`) - -* `sv` (value: `"sv"`) - -* `th` (value: `"th"`) - -* `tr` (value: `"tr"`) - -* `vi` (value: `"vi"`) - -* `zh` (value: `"zh"`) - - - - - ## Enum: UnitSystemEnum @@ -226,57 +36,6 @@ Name | Type | Description | Notes -## Enum: LocationTypeEnum - - -* `formatted_address` (value: `"formatted_address"`) - -* `place_id` (value: `"place_id"`) - -* `locality` (value: `"locality"`) - -* `administrative_area_level_1` (value: `"administrative_area_level_1"`) - -* `administrative_area_level_2` (value: `"administrative_area_level_2"`) - -* `administrative_area_level_3` (value: `"administrative_area_level_3"`) - -* `administrative_area_level_4` (value: `"administrative_area_level_4"`) - -* `administrative_area_level_5` (value: `"administrative_area_level_5"`) - -* `state_code` (value: `"state_code"`) - -* `country` (value: `"country"`) - -* `country_code` (value: `"country_code"`) - -* `postal_code` (value: `"postal_code"`) - -* `language` (value: `"language"`) - -* `natural_feature` (value: `"natural_feature"`) - -* `establishment` (value: `"establishment"`) - -* `sublocality` (value: `"sublocality"`) - -* `sublocality_level_1` (value: `"sublocality_level_1"`) - -* `sublocality_level_2` (value: `"sublocality_level_2"`) - -* `sublocality_level_3` (value: `"sublocality_level_3"`) - -* `sublocality_level_4` (value: `"sublocality_level_4"`) - -* `sublocality_level_5` (value: `"sublocality_level_5"`) - -* `streetNumber` (value: `"streetNumber"`) - - - - - ## Enum: SortEnum diff --git a/docs/InlineResponse200.md b/docs/InlineResponse200.md new file mode 100644 index 0000000..b5868ea --- /dev/null +++ b/docs/InlineResponse200.md @@ -0,0 +1,10 @@ +# LodgeaJs.InlineResponse200 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**languageCode** | **String** | 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** | [**[InlineResponse200List]**](InlineResponse200List.md) | A list of available properties matching the given criteria. | + + diff --git a/docs/InlineResponse2001.md b/docs/InlineResponse2001.md new file mode 100644 index 0000000..57023ca --- /dev/null +++ b/docs/InlineResponse2001.md @@ -0,0 +1,10 @@ +# LodgeaJs.InlineResponse2001 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**languageCode** | **String** | 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** | [**[InlineResponse2001List]**](InlineResponse2001List.md) | A list of available properties matching the given criteria. | + + diff --git a/docs/AvailablePropertiesInner1AttractionListInner.md b/docs/InlineResponse2001AttractionList.md similarity index 94% rename from docs/AvailablePropertiesInner1AttractionListInner.md rename to docs/InlineResponse2001AttractionList.md index 37258b2..d66e092 100644 --- a/docs/AvailablePropertiesInner1AttractionListInner.md +++ b/docs/InlineResponse2001AttractionList.md @@ -1,4 +1,4 @@ -# LodgeaJs.AvailablePropertiesInner1AttractionListInner +# LodgeaJs.InlineResponse2001AttractionList ## Properties @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **typeCode** | **Number** | 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) | | +**distance** | [**InlineResponse2001Distance**](InlineResponse2001Distance.md) | | diff --git a/docs/AvailablePropertiesInner1AttractionListInnerDistance.md b/docs/InlineResponse2001Distance.md similarity index 82% rename from docs/AvailablePropertiesInner1AttractionListInnerDistance.md rename to docs/InlineResponse2001Distance.md index 7fee004..84aa3b0 100644 --- a/docs/AvailablePropertiesInner1AttractionListInnerDistance.md +++ b/docs/InlineResponse2001Distance.md @@ -1,4 +1,4 @@ -# LodgeaJs.AvailablePropertiesInner1AttractionListInnerDistance +# LodgeaJs.InlineResponse2001Distance ## Properties diff --git a/docs/AvailablePropertiesInner1Geo.md b/docs/InlineResponse2001Geo.md similarity index 67% rename from docs/AvailablePropertiesInner1Geo.md rename to docs/InlineResponse2001Geo.md index 4be5726..a2f5175 100644 --- a/docs/AvailablePropertiesInner1Geo.md +++ b/docs/InlineResponse2001Geo.md @@ -1,4 +1,4 @@ -# LodgeaJs.AvailablePropertiesInner1Geo +# LodgeaJs.InlineResponse2001Geo ## Properties @@ -24,90 +24,7 @@ Name | Type | Description | Notes **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) | | +**location** | [**InlineResponse2001GeoLocation**](InlineResponse2001GeoLocation.md) | | **placeId** | **String** | Uniquely identifies a place in our database. | - -## Enum: LanguageEnum - - -* `af` (value: `"af"`) - -* `ar` (value: `"ar"`) - -* `bg` (value: `"bg"`) - -* `ca` (value: `"ca"`) - -* `cs` (value: `"cs"`) - -* `da` (value: `"da"`) - -* `de` (value: `"de"`) - -* `el` (value: `"el"`) - -* `en` (value: `"en"`) - -* `es` (value: `"es"`) - -* `et` (value: `"et"`) - -* `fi` (value: `"fi"`) - -* `fr` (value: `"fr"`) - -* `he` (value: `"he"`) - -* `hi` (value: `"hi"`) - -* `hr` (value: `"hr"`) - -* `hu` (value: `"hu"`) - -* `id` (value: `"id"`) - -* `is` (value: `"is"`) - -* `it` (value: `"it"`) - -* `ja` (value: `"ja"`) - -* `ko` (value: `"ko"`) - -* `lt` (value: `"lt"`) - -* `lv` (value: `"lv"`) - -* `nl` (value: `"nl"`) - -* `no` (value: `"no"`) - -* `pl` (value: `"pl"`) - -* `pt` (value: `"pt"`) - -* `ro` (value: `"ro"`) - -* `ru` (value: `"ru"`) - -* `sk` (value: `"sk"`) - -* `sl` (value: `"sl"`) - -* `sr` (value: `"sr"`) - -* `sv` (value: `"sv"`) - -* `th` (value: `"th"`) - -* `tr` (value: `"tr"`) - -* `vi` (value: `"vi"`) - -* `zh` (value: `"zh"`) - - - - diff --git a/docs/AvailablePropertiesInner1GeoLocation.md b/docs/InlineResponse2001GeoLocation.md similarity index 83% rename from docs/AvailablePropertiesInner1GeoLocation.md rename to docs/InlineResponse2001GeoLocation.md index 3969a00..0877183 100644 --- a/docs/AvailablePropertiesInner1GeoLocation.md +++ b/docs/InlineResponse2001GeoLocation.md @@ -1,4 +1,4 @@ -# LodgeaJs.AvailablePropertiesInner1GeoLocation +# LodgeaJs.InlineResponse2001GeoLocation ## Properties diff --git a/docs/AvailablePropertiesInner1.md b/docs/InlineResponse2001List.md similarity index 84% rename from docs/AvailablePropertiesInner1.md rename to docs/InlineResponse2001List.md index 2656aca..57f10d7 100644 --- a/docs/AvailablePropertiesInner1.md +++ b/docs/InlineResponse2001List.md @@ -1,4 +1,4 @@ -# LodgeaJs.AvailablePropertiesInner1 +# LodgeaJs.InlineResponse2001List ## Properties @@ -14,200 +14,10 @@ Name | Type | Description | Notes **categoryList** | **[Number]** | 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** | [**[AvailablePropertiesInner1MediaListInner]**](AvailablePropertiesInner1MediaListInner.md) | A list of media objects for the property. | -**attractionList** | [**[AvailablePropertiesInner1AttractionListInner]**](AvailablePropertiesInner1AttractionListInner.md) | A list of objects describing the attractions available at the property. | -**lowestPrice** | [**AvailablePropertiesInner1LowestPrice**](AvailablePropertiesInner1LowestPrice.md) | | - - - -## Enum: LanguageCodeEnum - - -* `af` (value: `"af"`) - -* `ar` (value: `"ar"`) - -* `bg` (value: `"bg"`) - -* `ca` (value: `"ca"`) - -* `cs` (value: `"cs"`) - -* `da` (value: `"da"`) - -* `de` (value: `"de"`) - -* `el` (value: `"el"`) - -* `en` (value: `"en"`) - -* `es` (value: `"es"`) - -* `et` (value: `"et"`) - -* `fi` (value: `"fi"`) - -* `fr` (value: `"fr"`) - -* `he` (value: `"he"`) - -* `hi` (value: `"hi"`) - -* `hr` (value: `"hr"`) - -* `hu` (value: `"hu"`) - -* `id` (value: `"id"`) - -* `is` (value: `"is"`) - -* `it` (value: `"it"`) - -* `ja` (value: `"ja"`) - -* `ko` (value: `"ko"`) - -* `lt` (value: `"lt"`) - -* `lv` (value: `"lv"`) - -* `nl` (value: `"nl"`) - -* `no` (value: `"no"`) - -* `pl` (value: `"pl"`) - -* `pt` (value: `"pt"`) - -* `ro` (value: `"ro"`) - -* `ru` (value: `"ru"`) - -* `sk` (value: `"sk"`) - -* `sl` (value: `"sl"`) - -* `sr` (value: `"sr"`) - -* `sv` (value: `"sv"`) - -* `th` (value: `"th"`) - -* `tr` (value: `"tr"`) - -* `vi` (value: `"vi"`) - -* `zh` (value: `"zh"`) - - - - - -## Enum: CurrencyCodeEnum - - -* `AED` (value: `"AED"`) - -* `ARS` (value: `"ARS"`) - -* `AUD` (value: `"AUD"`) - -* `AZN` (value: `"AZN"`) - -* `BGN` (value: `"BGN"`) - -* `BHD` (value: `"BHD"`) - -* `BRL` (value: `"BRL"`) - -* `CAD` (value: `"CAD"`) - -* `CHF` (value: `"CHF"`) - -* `CLP` (value: `"CLP"`) - -* `CNY` (value: `"CNY"`) - -* `COP` (value: `"COP"`) - -* `CZK` (value: `"CZK"`) - -* `DKK` (value: `"DKK"`) - -* `EGP` (value: `"EGP"`) - -* `EUR` (value: `"EUR"`) - -* `FJD` (value: `"FJD"`) - -* `GBP` (value: `"GBP"`) - -* `GEL` (value: `"GEL"`) - -* `HKD` (value: `"HKD"`) - -* `HUF` (value: `"HUF"`) - -* `IDR` (value: `"IDR"`) - -* `ILS` (value: `"ILS"`) - -* `INR` (value: `"INR"`) - -* `JOD` (value: `"JOD"`) - -* `JPY` (value: `"JPY"`) - -* `KRW` (value: `"KRW"`) - -* `KWD` (value: `"KWD"`) - -* `KZT` (value: `"KZT"`) - -* `MDL` (value: `"MDL"`) - -* `MXN` (value: `"MXN"`) - -* `MYR` (value: `"MYR"`) - -* `NAD` (value: `"NAD"`) - -* `NOK` (value: `"NOK"`) - -* `NZD` (value: `"NZD"`) - -* `OMR` (value: `"OMR"`) - -* `PLN` (value: `"PLN"`) - -* `QAR` (value: `"QAR"`) - -* `RON` (value: `"RON"`) - -* `RUB` (value: `"RUB"`) - -* `SAR` (value: `"SAR"`) - -* `SEK` (value: `"SEK"`) - -* `SGD` (value: `"SGD"`) - -* `THB` (value: `"THB"`) - -* `TRY` (value: `"TRY"`) - -* `TWD` (value: `"TWD"`) - -* `UAH` (value: `"UAH"`) - -* `USD` (value: `"USD"`) - -* `XOF` (value: `"XOF"`) - -* `ZAR` (value: `"ZAR"`) - - +**geo** | [**InlineResponse2001Geo**](InlineResponse2001Geo.md) | | [optional] +**mediaList** | [**[InlineResponse2001MediaList]**](InlineResponse2001MediaList.md) | A list of media objects for the property. | +**attractionList** | [**[InlineResponse2001AttractionList]**](InlineResponse2001AttractionList.md) | A list of objects describing the attractions available at the property. | +**lowestPrice** | [**InlineResponse2001LowestPrice**](InlineResponse2001LowestPrice.md) | | diff --git a/docs/InlineResponse2001LowestPrice.md b/docs/InlineResponse2001LowestPrice.md new file mode 100644 index 0000000..9facda3 --- /dev/null +++ b/docs/InlineResponse2001LowestPrice.md @@ -0,0 +1,13 @@ +# LodgeaJs.InlineResponse2001LowestPrice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amount** | **Number** | The amount of the lowest price. | +**currencyCode** | **String** | The currency code for the given amount.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> | +**arrivalDate** | **Number** | Arrival date for the given price as unix timestamp (seconds). | +**returnDate** | **Number** | Departure date for the given price as unix timestamp (seconds). | +**lengthOfStay** | **Number** | The amount of nights of stay this price is for | + + diff --git a/docs/AvailablePropertiesInner1MediaListInner.md b/docs/InlineResponse2001MediaList.md similarity index 98% rename from docs/AvailablePropertiesInner1MediaListInner.md rename to docs/InlineResponse2001MediaList.md index dbd9e9e..6f51588 100644 --- a/docs/AvailablePropertiesInner1MediaListInner.md +++ b/docs/InlineResponse2001MediaList.md @@ -1,4 +1,4 @@ -# LodgeaJs.AvailablePropertiesInner1MediaListInner +# LodgeaJs.InlineResponse2001MediaList ## Properties diff --git a/docs/PropertiesGet200Response.md b/docs/InlineResponse2002.md similarity index 67% rename from docs/PropertiesGet200Response.md rename to docs/InlineResponse2002.md index 58d0e86..1a59c78 100644 --- a/docs/PropertiesGet200Response.md +++ b/docs/InlineResponse2002.md @@ -1,10 +1,10 @@ -# LodgeaJs.PropertiesGet200Response +# LodgeaJs.InlineResponse2002 ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**list** | [**[PropertiesGet200ResponseListInner]**](PropertiesGet200ResponseListInner.md) | | +**list** | [**[InlineResponse2002List]**](InlineResponse2002List.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/InlineResponse2002List.md similarity index 92% rename from docs/PropertiesGet200ResponseListInner.md rename to docs/InlineResponse2002List.md index 6b6fdfd..3415700 100644 --- a/docs/PropertiesGet200ResponseListInner.md +++ b/docs/InlineResponse2002List.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesGet200ResponseListInner +# LodgeaJs.InlineResponse2002List ## Properties diff --git a/docs/InlineResponse2003.md b/docs/InlineResponse2003.md new file mode 100644 index 0000000..7c46653 --- /dev/null +++ b/docs/InlineResponse2003.md @@ -0,0 +1,10 @@ +# LodgeaJs.InlineResponse2003 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**property** | [**InlineResponse2003Property**](InlineResponse2003Property.md) | | +**productList** | [**[InlineResponse2003ProductList]**](InlineResponse2003ProductList.md) | | + + diff --git a/docs/InlineResponse2003PolicyInfo.md b/docs/InlineResponse2003PolicyInfo.md new file mode 100644 index 0000000..9aacc4f --- /dev/null +++ b/docs/InlineResponse2003PolicyInfo.md @@ -0,0 +1,20 @@ +# LodgeaJs.InlineResponse2003PolicyInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**checkInTime** | **Number** | Check-in time (unix timestamp in ms). | +**checkOutTime** | **Number** | Check-out time (unix timestamp in ms). | +**totalGuestCount** | **Number** | The maximum number of guests allowed. | [optional] +**cancellationPolicyList** | [**[InlineResponse2003PropertyCancellationPolicyList]**](InlineResponse2003PropertyCancellationPolicyList.md) | List of cancellation policies. | +**advanceBookingMin** | **Number** | The minimum number of days in advance a booking must be made | +**advanceBookingMax** | **Number** | The maximum number of days in advance a booking can be made | +**petsPolicy** | [**InlineResponse2003PropertyPetsPolicy**](InlineResponse2003PropertyPetsPolicy.md) | | [optional] +**prepaymentPolicy** | **String** | The type of the prepayment policy. | [optional] +**guaranteePolicy** | [**InlineResponse2003PropertyGuaranteePolicy**](InlineResponse2003PropertyGuaranteePolicy.md) | | [optional] +**taxPolicyList** | [**[InlineResponse2003PolicyInfoTaxPolicyList]**](InlineResponse2003PolicyInfoTaxPolicyList.md) | A list of taxes and their policies. | +**feePolicyList** | [**[InlineResponse2003PolicyInfoFeePolicyList]**](InlineResponse2003PolicyInfoFeePolicyList.md) | A list of fees and their policies. | +**name** | **String** | The name of this policy. | [optional] + + diff --git a/docs/InlineResponse2003PolicyInfoFeePolicyList.md b/docs/InlineResponse2003PolicyInfoFeePolicyList.md new file mode 100644 index 0000000..6196906 --- /dev/null +++ b/docs/InlineResponse2003PolicyInfoFeePolicyList.md @@ -0,0 +1,196 @@ +# LodgeaJs.InlineResponse2003PolicyInfoFeePolicyList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typeCode** | **Number** | The code that represents the type of fee.<p>See also <a href=\"#feetype-codes\">in the appendix</a>.</p> | +**percent** | **Number** | The charged percentage if applicable. | [optional] +**chargeType** | **String** | The type of charge. | +**chargeFrequencyCode** | **Number** | The code that represents the frequency of charge.<p>See also <a href=\"#chargetype-codes\">in the appendix</a>.</p> | +**currencyCode** | **String** | The currency code of the currency in that the charge is applied.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> | +**conditionList** | **[String]** | A list of conditions for the tax. Is empty if <code>chargeType</code> is not <code>conditional</code>. | + + + +## Enum: TypeCodeEnum + + +* `2` (value: `2`) + +* `9` (value: `9`) + +* `11` (value: `11`) + +* `12` (value: `12`) + +* `14` (value: `14`) + +* `16` (value: `16`) + +* `27` (value: `27`) + +* `29` (value: `29`) + +* `31` (value: `31`) + +* `32` (value: `32`) + +* `33` (value: `33`) + +* `34` (value: `34`) + +* `37` (value: `37`) + +* `38` (value: `38`) + +* `40` (value: `40`) + +* `41` (value: `41`) + +* `42` (value: `42`) + +* `44` (value: `44`) + +* `45` (value: `45`) + +* `47` (value: `47`) + +* `51` (value: `51`) + +* `52` (value: `52`) + +* `53` (value: `53`) + +* `54` (value: `54`) + +* `55` (value: `55`) + +* `56` (value: `56`) + +* `5000` (value: `5000`) + +* `5003` (value: `5003`) + +* `5005` (value: `5005`) + +* `5006` (value: `5006`) + +* `5009` (value: `5009`) + +* `5010` (value: `5010`) + +* `5011` (value: `5011`) + +* `5012` (value: `5012`) + +* `5013` (value: `5013`) + +* `5014` (value: `5014`) + +* `5015` (value: `5015`) + +* `5016` (value: `5016`) + +* `5017` (value: `5017`) + +* `5018` (value: `5018`) + +* `5019` (value: `5019`) + +* `5020` (value: `5020`) + +* `5021` (value: `5021`) + +* `5022` (value: `5022`) + +* `5023` (value: `5023`) + +* `5024` (value: `5024`) + +* `5025` (value: `5025`) + +* `5026` (value: `5026`) + +* `5027` (value: `5027`) + +* `5028` (value: `5028`) + +* `5029` (value: `5029`) + +* `5030` (value: `5030`) + +* `5031` (value: `5031`) + +* `5032` (value: `5032`) + +* `5033` (value: `5033`) + +* `5035` (value: `5035`) + +* `5036` (value: `5036`) + +* `20001` (value: `20001`) + + + + + +## Enum: ChargeFrequencyCodeEnum + + +* `1` (value: `1`) + +* `2` (value: `2`) + +* `7` (value: `7`) + +* `10` (value: `10`) + +* `12` (value: `12`) + +* `17` (value: `17`) + +* `19` (value: `19`) + +* `20` (value: `20`) + +* `21` (value: `21`) + +* `25` (value: `25`) + +* `31` (value: `31`) + +* `5000` (value: `5000`) + +* `5001` (value: `5001`) + +* `5002` (value: `5002`) + +* `5010` (value: `5010`) + +* `5011` (value: `5011`) + +* `5012` (value: `5012`) + +* `5013` (value: `5013`) + +* `5014` (value: `5014`) + +* `5015` (value: `5015`) + +* `5016` (value: `5016`) + +* `5017` (value: `5017`) + +* `90010` (value: `90010`) + +* `90011` (value: `90011`) + +* `90012` (value: `90012`) + +* `90013` (value: `90013`) + + + + diff --git a/docs/InlineResponse2003PolicyInfoTaxPolicyList.md b/docs/InlineResponse2003PolicyInfoTaxPolicyList.md new file mode 100644 index 0000000..e17c9e1 --- /dev/null +++ b/docs/InlineResponse2003PolicyInfoTaxPolicyList.md @@ -0,0 +1,130 @@ +# LodgeaJs.InlineResponse2003PolicyInfoTaxPolicyList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**typeCode** | **Number** | The code that represents the type of tax.<p>See also <a href=\"#taxtype-codes\">in the appendix</a>.</p> | +**percent** | **Number** | The charged percentage if applicable. | [optional] +**chargeType** | **String** | The type of charge. | +**chargeFrequencyCode** | **Number** | The code that represents the frequency of charge.<p>See also <a href=\"#chargetype-codes\">in the appendix</a>.</p> | +**currencyCode** | **String** | The currency code of the currency in that the charge is applied.<p>See also <a href=\"#currencycodes\">in the appendix</a>.</p> | +**conditionList** | **[String]** | A list of conditions for the tax. Is empty if <code>chargeType</code> is not <code>conditional</code>. | + + + +## Enum: TypeCodeEnum + + +* `1` (value: `1`) + +* `3` (value: `3`) + +* `4` (value: `4`) + +* `5` (value: `5`) + +* `6` (value: `6`) + +* `7` (value: `7`) + +* `8` (value: `8`) + +* `10` (value: `10`) + +* `13` (value: `13`) + +* `15` (value: `15`) + +* `17` (value: `17`) + +* `18` (value: `18`) + +* `19` (value: `19`) + +* `28` (value: `28`) + +* `30` (value: `30`) + +* `35` (value: `35`) + +* `36` (value: `36`) + +* `39` (value: `39`) + +* `43` (value: `43`) + +* `46` (value: `46`) + +* `5001` (value: `5001`) + +* `5002` (value: `5002`) + +* `5004` (value: `5004`) + +* `5007` (value: `5007`) + +* `5008` (value: `5008`) + + + + + +## Enum: ChargeFrequencyCodeEnum + + +* `1` (value: `1`) + +* `2` (value: `2`) + +* `7` (value: `7`) + +* `10` (value: `10`) + +* `12` (value: `12`) + +* `17` (value: `17`) + +* `19` (value: `19`) + +* `20` (value: `20`) + +* `21` (value: `21`) + +* `25` (value: `25`) + +* `31` (value: `31`) + +* `5000` (value: `5000`) + +* `5001` (value: `5001`) + +* `5002` (value: `5002`) + +* `5010` (value: `5010`) + +* `5011` (value: `5011`) + +* `5012` (value: `5012`) + +* `5013` (value: `5013`) + +* `5014` (value: `5014`) + +* `5015` (value: `5015`) + +* `5016` (value: `5016`) + +* `5017` (value: `5017`) + +* `90010` (value: `90010`) + +* `90011` (value: `90011`) + +* `90012` (value: `90012`) + +* `90013` (value: `90013`) + + + + diff --git a/docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.md b/docs/InlineResponse2003PricingList.md similarity index 81% rename from docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.md rename to docs/InlineResponse2003PricingList.md index 1f5f10e..2e39154 100644 --- a/docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.md +++ b/docs/InlineResponse2003PricingList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner +# LodgeaJs.InlineResponse2003PricingList ## Properties diff --git a/docs/PropertiesPropertyIdGet200ResponseProductListInner.md b/docs/InlineResponse2003ProductList.md similarity index 73% rename from docs/PropertiesPropertyIdGet200ResponseProductListInner.md rename to docs/InlineResponse2003ProductList.md index fbfe20e..f1f91cd 100644 --- a/docs/PropertiesPropertyIdGet200ResponseProductListInner.md +++ b/docs/InlineResponse2003ProductList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner +# LodgeaJs.InlineResponse2003ProductList ## Properties @@ -10,8 +10,8 @@ Name | Type | Description | Notes **roomTypeList** | **[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** | [**[PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner]**](PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md) | The rate plans for this product. | -**policyInfo** | [**PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo**](PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.md) | | [optional] +**ratePlanList** | [**[InlineResponse2003RatePlanList]**](InlineResponse2003RatePlanList.md) | The rate plans for this product. | +**policyInfo** | [**InlineResponse2003PolicyInfo**](InlineResponse2003PolicyInfo.md) | | [optional] diff --git a/docs/InlineResponse2003Property.md b/docs/InlineResponse2003Property.md new file mode 100644 index 0000000..17b8658 --- /dev/null +++ b/docs/InlineResponse2003Property.md @@ -0,0 +1,24 @@ +# LodgeaJs.InlineResponse2003Property + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | The properties unique identifier. | +**name** | **String** | The properties name. | +**recordCreated** | [**InlineResponse2003PropertyRecordCreated**](InlineResponse2003PropertyRecordCreated.md) | | +**recordModified** | [**InlineResponse2003PropertyRecordModified**](InlineResponse2003PropertyRecordModified.md) | | +**propertyInfo** | [**InlineResponse2003PropertyPropertyInfo**](InlineResponse2003PropertyPropertyInfo.md) | | +**guestInfo** | [**InlineResponse2003PropertyGuestInfo**](InlineResponse2003PropertyGuestInfo.md) | | [optional] +**awardList** | [**[InlineResponse2003PropertyAwardList]**](InlineResponse2003PropertyAwardList.md) | A list of the ratings available for this property. | +**contactList** | [**[InlineResponse2003PropertyContactList]**](InlineResponse2003PropertyContactList.md) | A contact with a profile type and a list of addresses | +**facilityInfo** | [**InlineResponse2003PropertyFacilityInfo**](InlineResponse2003PropertyFacilityInfo.md) | | [optional] +**mediaList** | [**[InlineResponse2003PropertyMediaList]**](InlineResponse2003PropertyMediaList.md) | A list of media objects for the property. | +**geo** | [**{String: InlineResponse2001Geo}**](InlineResponse2001Geo.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** | [**[InlineResponse2003PropertyPolicyList]**](InlineResponse2003PropertyPolicyList.md) | A list of policies associated with the property. | +**uri** | **String** | A unique identifier for the accommodation. | [optional] +**cancellationGracePeriod** | [**InlineResponse2003PropertyCancellationGracePeriod**](InlineResponse2003PropertyCancellationGracePeriod.md) | | [optional] +**serviceList** | [**[InlineResponse2003PropertyServiceList]**](InlineResponse2003PropertyServiceList.md) | A list of objects each describing an available service, its pricing and its availability. | + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.md b/docs/InlineResponse2003PropertyAddressList.md similarity index 86% rename from docs/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.md rename to docs/InlineResponse2003PropertyAddressList.md index e8da654..7353ab8 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.md +++ b/docs/InlineResponse2003PropertyAddressList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner +# LodgeaJs.InlineResponse2003PropertyAddressList ## Properties diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.md b/docs/InlineResponse2003PropertyAwardList.md similarity index 84% rename from docs/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.md rename to docs/InlineResponse2003PropertyAwardList.md index bf167ec..db28260 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.md +++ b/docs/InlineResponse2003PropertyAwardList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyAwardListInner +# LodgeaJs.InlineResponse2003PropertyAwardList ## Properties diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.md b/docs/InlineResponse2003PropertyCancellationGracePeriod.md similarity index 81% rename from docs/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.md rename to docs/InlineResponse2003PropertyCancellationGracePeriod.md index af4c896..84045e5 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.md +++ b/docs/InlineResponse2003PropertyCancellationGracePeriod.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod +# LodgeaJs.InlineResponse2003PropertyCancellationGracePeriod ## Properties diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md b/docs/InlineResponse2003PropertyCancellationPolicyList.md similarity index 87% rename from docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md rename to docs/InlineResponse2003PropertyCancellationPolicyList.md index eb484bf..a4d90a7 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md +++ b/docs/InlineResponse2003PropertyCancellationPolicyList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy +# LodgeaJs.InlineResponse2003PropertyCancellationPolicyList ## Properties diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyContactListInner.md b/docs/InlineResponse2003PropertyContactList.md similarity index 68% rename from docs/PropertiesPropertyIdGet200ResponsePropertyContactListInner.md rename to docs/InlineResponse2003PropertyContactList.md index c5ddbd3..ff71779 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyContactListInner.md +++ b/docs/InlineResponse2003PropertyContactList.md @@ -1,11 +1,11 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInner +# LodgeaJs.InlineResponse2003PropertyContactList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **profileType** | **String** | The type of profile this contact belongs to. | -**addressList** | [**[PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner]**](PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.md) | A list of addresses for this contact | +**addressList** | [**[InlineResponse2003PropertyAddressList]**](InlineResponse2003PropertyAddressList.md) | A list of addresses for this contact | diff --git a/docs/InlineResponse2003PropertyFacilityInfo.md b/docs/InlineResponse2003PropertyFacilityInfo.md new file mode 100644 index 0000000..6a7f873 --- /dev/null +++ b/docs/InlineResponse2003PropertyFacilityInfo.md @@ -0,0 +1,9 @@ +# LodgeaJs.InlineResponse2003PropertyFacilityInfo + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**guestRoomList** | [**[InlineResponse2003PropertyFacilityInfoGuestRoomList]**](InlineResponse2003PropertyFacilityInfoGuestRoomList.md) | An array of objects representing a room in the property. | + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md b/docs/InlineResponse2003PropertyFacilityInfoAmenityList.md similarity index 99% rename from docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md rename to docs/InlineResponse2003PropertyFacilityInfoAmenityList.md index d407619..26b0f20 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md +++ b/docs/InlineResponse2003PropertyFacilityInfoAmenityList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner +# LodgeaJs.InlineResponse2003PropertyFacilityInfoAmenityList ## Properties diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.md b/docs/InlineResponse2003PropertyFacilityInfoGuestRoomList.md similarity index 59% rename from docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.md rename to docs/InlineResponse2003PropertyFacilityInfoGuestRoomList.md index 568290f..6f53707 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.md +++ b/docs/InlineResponse2003PropertyFacilityInfoGuestRoomList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner +# LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList ## Properties @@ -7,11 +7,11 @@ 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** | [**[PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner]**](PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md) | A list of media objects for the room. | +**mediaList** | [**[InlineResponse2003PropertyFacilityInfoMediaList]**](InlineResponse2003PropertyFacilityInfoMediaList.md) | A list of media objects for the room. | **roomTypeCode** | **Number** | 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** | [**[PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner]**](PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.md) | A list of amenities provided in the room. | -**messageList** | [**[PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner]**](PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md) | A list of messages associated with the room. | +**amenityList** | [**[InlineResponse2003PropertyFacilityInfoAmenityList]**](InlineResponse2003PropertyFacilityInfoAmenityList.md) | A list of amenities provided in the room. | +**messageList** | [**[InlineResponse2003PropertyFacilityInfoMessageList]**](InlineResponse2003PropertyFacilityInfoMessageList.md) | A list of messages associated with the room. | **maxOccupancy** | **Number** | The maximum occupancy of the room. | **maxAdultOccupancy** | **Number** | The maximum number of adults that can occupy the room. | **maxChildOccupancy** | **Number** | The maximum number of children that can occupy the room. | diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md b/docs/InlineResponse2003PropertyFacilityInfoMediaList.md similarity index 99% rename from docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md rename to docs/InlineResponse2003PropertyFacilityInfoMediaList.md index 01b2fbd..48d2a14 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md +++ b/docs/InlineResponse2003PropertyFacilityInfoMediaList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner +# LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList ## Properties diff --git a/docs/InlineResponse2003PropertyFacilityInfoMessageList.md b/docs/InlineResponse2003PropertyFacilityInfoMessageList.md new file mode 100644 index 0000000..d52bd43 --- /dev/null +++ b/docs/InlineResponse2003PropertyFacilityInfoMessageList.md @@ -0,0 +1,10 @@ +# LodgeaJs.InlineResponse2003PropertyFacilityInfoMessageList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**languageCode** | **String** | 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. | + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md b/docs/InlineResponse2003PropertyFeePolicyList.md similarity index 70% rename from docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md rename to docs/InlineResponse2003PropertyFeePolicyList.md index 7966927..2602e62 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md +++ b/docs/InlineResponse2003PropertyFeePolicyList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner +# LodgeaJs.InlineResponse2003PropertyFeePolicyList ## Properties @@ -208,113 +208,6 @@ Name | Type | Description | Notes -## Enum: CurrencyCodeEnum - - -* `AED` (value: `"AED"`) - -* `ARS` (value: `"ARS"`) - -* `AUD` (value: `"AUD"`) - -* `AZN` (value: `"AZN"`) - -* `BGN` (value: `"BGN"`) - -* `BHD` (value: `"BHD"`) - -* `BRL` (value: `"BRL"`) - -* `CAD` (value: `"CAD"`) - -* `CHF` (value: `"CHF"`) - -* `CLP` (value: `"CLP"`) - -* `CNY` (value: `"CNY"`) - -* `COP` (value: `"COP"`) - -* `CZK` (value: `"CZK"`) - -* `DKK` (value: `"DKK"`) - -* `EGP` (value: `"EGP"`) - -* `EUR` (value: `"EUR"`) - -* `FJD` (value: `"FJD"`) - -* `GBP` (value: `"GBP"`) - -* `GEL` (value: `"GEL"`) - -* `HKD` (value: `"HKD"`) - -* `HUF` (value: `"HUF"`) - -* `IDR` (value: `"IDR"`) - -* `ILS` (value: `"ILS"`) - -* `INR` (value: `"INR"`) - -* `JOD` (value: `"JOD"`) - -* `JPY` (value: `"JPY"`) - -* `KRW` (value: `"KRW"`) - -* `KWD` (value: `"KWD"`) - -* `KZT` (value: `"KZT"`) - -* `MDL` (value: `"MDL"`) - -* `MXN` (value: `"MXN"`) - -* `MYR` (value: `"MYR"`) - -* `NAD` (value: `"NAD"`) - -* `NOK` (value: `"NOK"`) - -* `NZD` (value: `"NZD"`) - -* `OMR` (value: `"OMR"`) - -* `PLN` (value: `"PLN"`) - -* `QAR` (value: `"QAR"`) - -* `RON` (value: `"RON"`) - -* `RUB` (value: `"RUB"`) - -* `SAR` (value: `"SAR"`) - -* `SEK` (value: `"SEK"`) - -* `SGD` (value: `"SGD"`) - -* `THB` (value: `"THB"`) - -* `TRY` (value: `"TRY"`) - -* `TWD` (value: `"TWD"`) - -* `UAH` (value: `"UAH"`) - -* `USD` (value: `"USD"`) - -* `XOF` (value: `"XOF"`) - -* `ZAR` (value: `"ZAR"`) - - - - - ## Enum: [ConditionListEnum] diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md b/docs/InlineResponse2003PropertyGuaranteePolicy.md similarity index 86% rename from docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md rename to docs/InlineResponse2003PropertyGuaranteePolicy.md index 1d44655..eaf9a01 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md +++ b/docs/InlineResponse2003PropertyGuaranteePolicy.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner +# LodgeaJs.InlineResponse2003PropertyGuaranteePolicy ## Properties diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.md b/docs/InlineResponse2003PropertyGuestInfo.md similarity index 88% rename from docs/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.md rename to docs/InlineResponse2003PropertyGuestInfo.md index af7cdb2..a8baebb 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.md +++ b/docs/InlineResponse2003PropertyGuestInfo.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyGuestInfo +# LodgeaJs.InlineResponse2003PropertyGuestInfo ## Properties diff --git a/docs/InlineResponse2003PropertyMediaList.md b/docs/InlineResponse2003PropertyMediaList.md new file mode 100644 index 0000000..077205b --- /dev/null +++ b/docs/InlineResponse2003PropertyMediaList.md @@ -0,0 +1,2301 @@ +# LodgeaJs.InlineResponse2003PropertyMediaList + +## 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** | **Number** | The sort order for the media. | +**tagList** | **[Number]** | A list of tag codes for the media.<p>See also <a href=\"#imagetype-codes\">in the appendix</a>.</p> | +**moderationLabelList** | **[String]** | A list of detection labels for moderated content (e.g. containing alcoholic beverages) for the media from an AI based detection engine. | +**detectionLabelList** | **[String]** | A list of detection labels for the media from an AI based detection engine. | [optional] +**propertyAmenityList** | **[Number]** | A list of property amenities available at the property that are visible in this media element. | +**roomAmenityList** | **[Number]** | 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: [TagListEnum] + + +* `1` (value: `1`) + +* `2` (value: `2`) + +* `3` (value: `3`) + +* `4` (value: `4`) + +* `5` (value: `5`) + +* `6` (value: `6`) + +* `7` (value: `7`) + +* `8` (value: `8`) + +* `10` (value: `10`) + +* `11` (value: `11`) + +* `13` (value: `13`) + +* `14` (value: `14`) + +* `37` (value: `37`) + +* `41` (value: `41`) + +* `42` (value: `42`) + +* `43` (value: `43`) + +* `50` (value: `50`) + +* `55` (value: `55`) + +* `61` (value: `61`) + +* `70` (value: `70`) + +* `74` (value: `74`) + +* `81` (value: `81`) + +* `82` (value: `82`) + +* `87` (value: `87`) + +* `89` (value: `89`) + +* `90` (value: `90`) + +* `94` (value: `94`) + +* `95` (value: `95`) + +* `96` (value: `96`) + +* `97` (value: `97`) + +* `100` (value: `100`) + +* `102` (value: `102`) + +* `103` (value: `103`) + +* `104` (value: `104`) + +* `106` (value: `106`) + +* `107` (value: `107`) + +* `108` (value: `108`) + +* `112` (value: `112`) + +* `113` (value: `113`) + +* `114` (value: `114`) + +* `115` (value: `115`) + +* `116` (value: `116`) + +* `124` (value: `124`) + +* `125` (value: `125`) + +* `128` (value: `128`) + +* `131` (value: `131`) + +* `133` (value: `133`) + +* `134` (value: `134`) + +* `137` (value: `137`) + +* `141` (value: `141`) + +* `143` (value: `143`) + +* `153` (value: `153`) + +* `154` (value: `154`) + +* `155` (value: `155`) + +* `156` (value: `156`) + +* `157` (value: `157`) + +* `158` (value: `158`) + +* `159` (value: `159`) + +* `160` (value: `160`) + +* `161` (value: `161`) + +* `164` (value: `164`) + +* `165` (value: `165`) + +* `167` (value: `167`) + +* `172` (value: `172`) + +* `173` (value: `173`) + +* `177` (value: `177`) + +* `178` (value: `178`) + +* `179` (value: `179`) + +* `182` (value: `182`) + +* `183` (value: `183`) + +* `184` (value: `184`) + +* `185` (value: `185`) + +* `186` (value: `186`) + +* `187` (value: `187`) + +* `188` (value: `188`) + +* `189` (value: `189`) + +* `190` (value: `190`) + +* `191` (value: `191`) + +* `192` (value: `192`) + +* `193` (value: `193`) + +* `194` (value: `194`) + +* `197` (value: `197`) + +* `198` (value: `198`) + +* `199` (value: `199`) + +* `204` (value: `204`) + +* `205` (value: `205`) + +* `240` (value: `240`) + +* `241` (value: `241`) + +* `242` (value: `242`) + +* `245` (value: `245`) + +* `246` (value: `246`) + +* `247` (value: `247`) + +* `248` (value: `248`) + +* `249` (value: `249`) + +* `250` (value: `250`) + +* `251` (value: `251`) + +* `252` (value: `252`) + +* `253` (value: `253`) + +* `254` (value: `254`) + +* `255` (value: `255`) + +* `256` (value: `256`) + +* `257` (value: `257`) + +* `258` (value: `258`) + +* `259` (value: `259`) + +* `260` (value: `260`) + +* `261` (value: `261`) + +* `262` (value: `262`) + +* `263` (value: `263`) + +* `264` (value: `264`) + +* `265` (value: `265`) + +* `266` (value: `266`) + +* `267` (value: `267`) + +* `268` (value: `268`) + +* `269` (value: `269`) + +* `270` (value: `270`) + +* `271` (value: `271`) + +* `272` (value: `272`) + +* `273` (value: `273`) + +* `276` (value: `276`) + +* `277` (value: `277`) + +* `278` (value: `278`) + +* `279` (value: `279`) + +* `280` (value: `280`) + +* `281` (value: `281`) + +* `282` (value: `282`) + +* `283` (value: `283`) + +* `284` (value: `284`) + +* `285` (value: `285`) + +* `286` (value: `286`) + +* `287` (value: `287`) + +* `289` (value: `289`) + +* `290` (value: `290`) + +* `291` (value: `291`) + + + + + +## Enum: [PropertyAmenityListEnum] + + +* `1` (value: `1`) + +* `2` (value: `2`) + +* `3` (value: `3`) + +* `4` (value: `4`) + +* `5` (value: `5`) + +* `6` (value: `6`) + +* `7` (value: `7`) + +* `8` (value: `8`) + +* `9` (value: `9`) + +* `10` (value: `10`) + +* `11` (value: `11`) + +* `12` (value: `12`) + +* `13` (value: `13`) + +* `14` (value: `14`) + +* `15` (value: `15`) + +* `16` (value: `16`) + +* `17` (value: `17`) + +* `18` (value: `18`) + +* `19` (value: `19`) + +* `20` (value: `20`) + +* `21` (value: `21`) + +* `22` (value: `22`) + +* `23` (value: `23`) + +* `24` (value: `24`) + +* `25` (value: `25`) + +* `26` (value: `26`) + +* `27` (value: `27`) + +* `28` (value: `28`) + +* `29` (value: `29`) + +* `30` (value: `30`) + +* `31` (value: `31`) + +* `32` (value: `32`) + +* `33` (value: `33`) + +* `34` (value: `34`) + +* `35` (value: `35`) + +* `36` (value: `36`) + +* `37` (value: `37`) + +* `38` (value: `38`) + +* `39` (value: `39`) + +* `40` (value: `40`) + +* `41` (value: `41`) + +* `42` (value: `42`) + +* `43` (value: `43`) + +* `44` (value: `44`) + +* `45` (value: `45`) + +* `46` (value: `46`) + +* `47` (value: `47`) + +* `48` (value: `48`) + +* `49` (value: `49`) + +* `50` (value: `50`) + +* `51` (value: `51`) + +* `52` (value: `52`) + +* `53` (value: `53`) + +* `54` (value: `54`) + +* `55` (value: `55`) + +* `56` (value: `56`) + +* `57` (value: `57`) + +* `58` (value: `58`) + +* `59` (value: `59`) + +* `60` (value: `60`) + +* `61` (value: `61`) + +* `62` (value: `62`) + +* `63` (value: `63`) + +* `64` (value: `64`) + +* `65` (value: `65`) + +* `66` (value: `66`) + +* `67` (value: `67`) + +* `68` (value: `68`) + +* `69` (value: `69`) + +* `70` (value: `70`) + +* `71` (value: `71`) + +* `72` (value: `72`) + +* `73` (value: `73`) + +* `74` (value: `74`) + +* `75` (value: `75`) + +* `76` (value: `76`) + +* `77` (value: `77`) + +* `78` (value: `78`) + +* `79` (value: `79`) + +* `80` (value: `80`) + +* `81` (value: `81`) + +* `82` (value: `82`) + +* `83` (value: `83`) + +* `84` (value: `84`) + +* `85` (value: `85`) + +* `86` (value: `86`) + +* `87` (value: `87`) + +* `88` (value: `88`) + +* `89` (value: `89`) + +* `90` (value: `90`) + +* `91` (value: `91`) + +* `92` (value: `92`) + +* `93` (value: `93`) + +* `94` (value: `94`) + +* `95` (value: `95`) + +* `96` (value: `96`) + +* `97` (value: `97`) + +* `98` (value: `98`) + +* `99` (value: `99`) + +* `100` (value: `100`) + +* `101` (value: `101`) + +* `102` (value: `102`) + +* `103` (value: `103`) + +* `104` (value: `104`) + +* `105` (value: `105`) + +* `106` (value: `106`) + +* `107` (value: `107`) + +* `108` (value: `108`) + +* `109` (value: `109`) + +* `110` (value: `110`) + +* `111` (value: `111`) + +* `112` (value: `112`) + +* `113` (value: `113`) + +* `114` (value: `114`) + +* `115` (value: `115`) + +* `116` (value: `116`) + +* `117` (value: `117`) + +* `118` (value: `118`) + +* `119` (value: `119`) + +* `120` (value: `120`) + +* `121` (value: `121`) + +* `122` (value: `122`) + +* `123` (value: `123`) + +* `124` (value: `124`) + +* `125` (value: `125`) + +* `126` (value: `126`) + +* `127` (value: `127`) + +* `128` (value: `128`) + +* `129` (value: `129`) + +* `130` (value: `130`) + +* `131` (value: `131`) + +* `132` (value: `132`) + +* `133` (value: `133`) + +* `134` (value: `134`) + +* `135` (value: `135`) + +* `136` (value: `136`) + +* `137` (value: `137`) + +* `138` (value: `138`) + +* `139` (value: `139`) + +* `140` (value: `140`) + +* `141` (value: `141`) + +* `142` (value: `142`) + +* `143` (value: `143`) + +* `144` (value: `144`) + +* `145` (value: `145`) + +* `146` (value: `146`) + +* `147` (value: `147`) + +* `148` (value: `148`) + +* `149` (value: `149`) + +* `150` (value: `150`) + +* `151` (value: `151`) + +* `152` (value: `152`) + +* `153` (value: `153`) + +* `154` (value: `154`) + +* `155` (value: `155`) + +* `156` (value: `156`) + +* `157` (value: `157`) + +* `158` (value: `158`) + +* `159` (value: `159`) + +* `160` (value: `160`) + +* `161` (value: `161`) + +* `162` (value: `162`) + +* `163` (value: `163`) + +* `164` (value: `164`) + +* `165` (value: `165`) + +* `166` (value: `166`) + +* `167` (value: `167`) + +* `168` (value: `168`) + +* `169` (value: `169`) + +* `170` (value: `170`) + +* `171` (value: `171`) + +* `172` (value: `172`) + +* `173` (value: `173`) + +* `174` (value: `174`) + +* `175` (value: `175`) + +* `176` (value: `176`) + +* `177` (value: `177`) + +* `178` (value: `178`) + +* `179` (value: `179`) + +* `180` (value: `180`) + +* `181` (value: `181`) + +* `182` (value: `182`) + +* `183` (value: `183`) + +* `184` (value: `184`) + +* `185` (value: `185`) + +* `186` (value: `186`) + +* `187` (value: `187`) + +* `188` (value: `188`) + +* `189` (value: `189`) + +* `190` (value: `190`) + +* `191` (value: `191`) + +* `192` (value: `192`) + +* `193` (value: `193`) + +* `194` (value: `194`) + +* `195` (value: `195`) + +* `196` (value: `196`) + +* `197` (value: `197`) + +* `198` (value: `198`) + +* `199` (value: `199`) + +* `200` (value: `200`) + +* `201` (value: `201`) + +* `202` (value: `202`) + +* `203` (value: `203`) + +* `204` (value: `204`) + +* `205` (value: `205`) + +* `206` (value: `206`) + +* `207` (value: `207`) + +* `208` (value: `208`) + +* `209` (value: `209`) + +* `210` (value: `210`) + +* `211` (value: `211`) + +* `212` (value: `212`) + +* `213` (value: `213`) + +* `214` (value: `214`) + +* `215` (value: `215`) + +* `216` (value: `216`) + +* `217` (value: `217`) + +* `218` (value: `218`) + +* `219` (value: `219`) + +* `220` (value: `220`) + +* `221` (value: `221`) + +* `222` (value: `222`) + +* `223` (value: `223`) + +* `224` (value: `224`) + +* `225` (value: `225`) + +* `226` (value: `226`) + +* `227` (value: `227`) + +* `228` (value: `228`) + +* `229` (value: `229`) + +* `230` (value: `230`) + +* `231` (value: `231`) + +* `232` (value: `232`) + +* `233` (value: `233`) + +* `234` (value: `234`) + +* `235` (value: `235`) + +* `236` (value: `236`) + +* `237` (value: `237`) + +* `238` (value: `238`) + +* `239` (value: `239`) + +* `240` (value: `240`) + +* `241` (value: `241`) + +* `242` (value: `242`) + +* `243` (value: `243`) + +* `244` (value: `244`) + +* `245` (value: `245`) + +* `246` (value: `246`) + +* `247` (value: `247`) + +* `248` (value: `248`) + +* `249` (value: `249`) + +* `250` (value: `250`) + +* `251` (value: `251`) + +* `252` (value: `252`) + +* `253` (value: `253`) + +* `254` (value: `254`) + +* `255` (value: `255`) + +* `256` (value: `256`) + +* `257` (value: `257`) + +* `258` (value: `258`) + +* `259` (value: `259`) + +* `260` (value: `260`) + +* `261` (value: `261`) + +* `262` (value: `262`) + +* `263` (value: `263`) + +* `264` (value: `264`) + +* `265` (value: `265`) + +* `266` (value: `266`) + +* `267` (value: `267`) + +* `268` (value: `268`) + +* `269` (value: `269`) + +* `270` (value: `270`) + +* `271` (value: `271`) + +* `272` (value: `272`) + +* `273` (value: `273`) + +* `274` (value: `274`) + +* `275` (value: `275`) + +* `276` (value: `276`) + +* `277` (value: `277`) + +* `278` (value: `278`) + +* `279` (value: `279`) + +* `280` (value: `280`) + +* `281` (value: `281`) + +* `282` (value: `282`) + +* `283` (value: `283`) + +* `284` (value: `284`) + +* `285` (value: `285`) + +* `286` (value: `286`) + +* `287` (value: `287`) + +* `288` (value: `288`) + +* `289` (value: `289`) + +* `290` (value: `290`) + +* `291` (value: `291`) + +* `292` (value: `292`) + +* `293` (value: `293`) + +* `294` (value: `294`) + +* `295` (value: `295`) + +* `296` (value: `296`) + +* `297` (value: `297`) + +* `298` (value: `298`) + +* `299` (value: `299`) + +* `300` (value: `300`) + +* `301` (value: `301`) + +* `302` (value: `302`) + +* `303` (value: `303`) + +* `304` (value: `304`) + +* `305` (value: `305`) + +* `306` (value: `306`) + +* `307` (value: `307`) + +* `308` (value: `308`) + +* `309` (value: `309`) + +* `310` (value: `310`) + +* `311` (value: `311`) + +* `312` (value: `312`) + +* `313` (value: `313`) + +* `314` (value: `314`) + +* `315` (value: `315`) + +* `316` (value: `316`) + +* `317` (value: `317`) + +* `318` (value: `318`) + +* `319` (value: `319`) + +* `320` (value: `320`) + +* `321` (value: `321`) + +* `322` (value: `322`) + +* `323` (value: `323`) + +* `324` (value: `324`) + +* `325` (value: `325`) + +* `326` (value: `326`) + +* `327` (value: `327`) + +* `328` (value: `328`) + +* `329` (value: `329`) + +* `331` (value: `331`) + +* `332` (value: `332`) + +* `333` (value: `333`) + +* `334` (value: `334`) + +* `335` (value: `335`) + +* `336` (value: `336`) + +* `337` (value: `337`) + +* `338` (value: `338`) + +* `339` (value: `339`) + +* `340` (value: `340`) + +* `341` (value: `341`) + +* `342` (value: `342`) + +* `343` (value: `343`) + +* `344` (value: `344`) + +* `345` (value: `345`) + +* `348` (value: `348`) + +* `349` (value: `349`) + +* `350` (value: `350`) + +* `351` (value: `351`) + +* `5000` (value: `5000`) + +* `5001` (value: `5001`) + +* `5002` (value: `5002`) + +* `5003` (value: `5003`) + +* `5004` (value: `5004`) + +* `5005` (value: `5005`) + +* `5006` (value: `5006`) + +* `5007` (value: `5007`) + +* `5008` (value: `5008`) + +* `5009` (value: `5009`) + +* `5010` (value: `5010`) + +* `5011` (value: `5011`) + +* `5012` (value: `5012`) + +* `5013` (value: `5013`) + +* `5014` (value: `5014`) + +* `5015` (value: `5015`) + +* `5016` (value: `5016`) + +* `5017` (value: `5017`) + +* `5018` (value: `5018`) + +* `5020` (value: `5020`) + +* `5021` (value: `5021`) + +* `5022` (value: `5022`) + +* `5023` (value: `5023`) + +* `5024` (value: `5024`) + +* `5025` (value: `5025`) + +* `5026` (value: `5026`) + +* `5027` (value: `5027`) + +* `5028` (value: `5028`) + +* `5029` (value: `5029`) + +* `5030` (value: `5030`) + +* `5031` (value: `5031`) + +* `5032` (value: `5032`) + +* `5033` (value: `5033`) + +* `5034` (value: `5034`) + +* `5035` (value: `5035`) + +* `5036` (value: `5036`) + +* `5037` (value: `5037`) + +* `5039` (value: `5039`) + +* `5040` (value: `5040`) + +* `5041` (value: `5041`) + +* `5042` (value: `5042`) + +* `5043` (value: `5043`) + +* `5044` (value: `5044`) + +* `5045` (value: `5045`) + +* `5046` (value: `5046`) + +* `5047` (value: `5047`) + +* `5048` (value: `5048`) + +* `5049` (value: `5049`) + +* `5050` (value: `5050`) + +* `5051` (value: `5051`) + +* `5052` (value: `5052`) + +* `5053` (value: `5053`) + +* `5054` (value: `5054`) + +* `5055` (value: `5055`) + +* `5056` (value: `5056`) + +* `5057` (value: `5057`) + +* `5058` (value: `5058`) + +* `5059` (value: `5059`) + +* `5060` (value: `5060`) + +* `5061` (value: `5061`) + +* `5062` (value: `5062`) + +* `5063` (value: `5063`) + +* `5064` (value: `5064`) + +* `5065` (value: `5065`) + +* `5066` (value: `5066`) + +* `5067` (value: `5067`) + +* `5068` (value: `5068`) + +* `5069` (value: `5069`) + +* `5070` (value: `5070`) + +* `5071` (value: `5071`) + +* `5072` (value: `5072`) + +* `5073` (value: `5073`) + +* `5074` (value: `5074`) + +* `5075` (value: `5075`) + +* `5076` (value: `5076`) + +* `5077` (value: `5077`) + +* `5078` (value: `5078`) + +* `5079` (value: `5079`) + +* `5080` (value: `5080`) + +* `5081` (value: `5081`) + +* `5082` (value: `5082`) + +* `5083` (value: `5083`) + +* `5084` (value: `5084`) + +* `5085` (value: `5085`) + +* `5086` (value: `5086`) + +* `5087` (value: `5087`) + +* `5088` (value: `5088`) + +* `5089` (value: `5089`) + +* `5090` (value: `5090`) + +* `5091` (value: `5091`) + +* `5092` (value: `5092`) + +* `5093` (value: `5093`) + +* `5094` (value: `5094`) + +* `5095` (value: `5095`) + +* `5096` (value: `5096`) + +* `5097` (value: `5097`) + +* `5098` (value: `5098`) + +* `5099` (value: `5099`) + +* `5100` (value: `5100`) + +* `5101` (value: `5101`) + +* `5102` (value: `5102`) + +* `5103` (value: `5103`) + +* `5104` (value: `5104`) + +* `5105` (value: `5105`) + +* `5106` (value: `5106`) + +* `5107` (value: `5107`) + +* `5108` (value: `5108`) + +* `5109` (value: `5109`) + +* `5110` (value: `5110`) + +* `5111` (value: `5111`) + +* `5112` (value: `5112`) + +* `5113` (value: `5113`) + +* `5114` (value: `5114`) + +* `5115` (value: `5115`) + +* `5116` (value: `5116`) + +* `5117` (value: `5117`) + +* `5118` (value: `5118`) + +* `5119` (value: `5119`) + +* `5120` (value: `5120`) + +* `5121` (value: `5121`) + +* `5122` (value: `5122`) + +* `5123` (value: `5123`) + +* `5124` (value: `5124`) + +* `5125` (value: `5125`) + +* `5126` (value: `5126`) + +* `5127` (value: `5127`) + +* `5128` (value: `5128`) + +* `5129` (value: `5129`) + +* `5130` (value: `5130`) + +* `5131` (value: `5131`) + +* `5132` (value: `5132`) + +* `5133` (value: `5133`) + +* `5134` (value: `5134`) + +* `5135` (value: `5135`) + +* `5136` (value: `5136`) + +* `5137` (value: `5137`) + +* `5138` (value: `5138`) + +* `5139` (value: `5139`) + +* `5140` (value: `5140`) + +* `5141` (value: `5141`) + +* `5142` (value: `5142`) + +* `5143` (value: `5143`) + +* `5144` (value: `5144`) + +* `5145` (value: `5145`) + +* `5146` (value: `5146`) + +* `5147` (value: `5147`) + +* `5148` (value: `5148`) + +* `5149` (value: `5149`) + +* `5150` (value: `5150`) + +* `5151` (value: `5151`) + +* `5152` (value: `5152`) + +* `5153` (value: `5153`) + +* `5154` (value: `5154`) + +* `5156` (value: `5156`) + +* `5157` (value: `5157`) + +* `5158` (value: `5158`) + +* `5159` (value: `5159`) + +* `5160` (value: `5160`) + +* `5161` (value: `5161`) + +* `5162` (value: `5162`) + +* `5163` (value: `5163`) + +* `5164` (value: `5164`) + +* `5165` (value: `5165`) + +* `5166` (value: `5166`) + +* `5167` (value: `5167`) + +* `5168` (value: `5168`) + +* `5169` (value: `5169`) + +* `5170` (value: `5170`) + +* `5171` (value: `5171`) + +* `5172` (value: `5172`) + +* `5173` (value: `5173`) + +* `5174` (value: `5174`) + +* `5175` (value: `5175`) + +* `5176` (value: `5176`) + +* `5177` (value: `5177`) + +* `5178` (value: `5178`) + +* `6000` (value: `6000`) + +* `6001` (value: `6001`) + +* `90001` (value: `90001`) + + + + + +## Enum: [RoomAmenityListEnum] + + +* `1` (value: `1`) + +* `2` (value: `2`) + +* `3` (value: `3`) + +* `4` (value: `4`) + +* `5` (value: `5`) + +* `6` (value: `6`) + +* `7` (value: `7`) + +* `8` (value: `8`) + +* `9` (value: `9`) + +* `10` (value: `10`) + +* `11` (value: `11`) + +* `12` (value: `12`) + +* `13` (value: `13`) + +* `14` (value: `14`) + +* `15` (value: `15`) + +* `16` (value: `16`) + +* `17` (value: `17`) + +* `18` (value: `18`) + +* `19` (value: `19`) + +* `20` (value: `20`) + +* `21` (value: `21`) + +* `22` (value: `22`) + +* `23` (value: `23`) + +* `24` (value: `24`) + +* `25` (value: `25`) + +* `26` (value: `26`) + +* `27` (value: `27`) + +* `28` (value: `28`) + +* `29` (value: `29`) + +* `30` (value: `30`) + +* `31` (value: `31`) + +* `32` (value: `32`) + +* `33` (value: `33`) + +* `34` (value: `34`) + +* `35` (value: `35`) + +* `36` (value: `36`) + +* `37` (value: `37`) + +* `38` (value: `38`) + +* `39` (value: `39`) + +* `40` (value: `40`) + +* `41` (value: `41`) + +* `42` (value: `42`) + +* `43` (value: `43`) + +* `44` (value: `44`) + +* `45` (value: `45`) + +* `46` (value: `46`) + +* `47` (value: `47`) + +* `48` (value: `48`) + +* `49` (value: `49`) + +* `50` (value: `50`) + +* `51` (value: `51`) + +* `52` (value: `52`) + +* `53` (value: `53`) + +* `54` (value: `54`) + +* `55` (value: `55`) + +* `56` (value: `56`) + +* `57` (value: `57`) + +* `58` (value: `58`) + +* `59` (value: `59`) + +* `60` (value: `60`) + +* `61` (value: `61`) + +* `62` (value: `62`) + +* `63` (value: `63`) + +* `64` (value: `64`) + +* `65` (value: `65`) + +* `66` (value: `66`) + +* `67` (value: `67`) + +* `68` (value: `68`) + +* `69` (value: `69`) + +* `70` (value: `70`) + +* `71` (value: `71`) + +* `72` (value: `72`) + +* `73` (value: `73`) + +* `74` (value: `74`) + +* `75` (value: `75`) + +* `76` (value: `76`) + +* `77` (value: `77`) + +* `78` (value: `78`) + +* `79` (value: `79`) + +* `80` (value: `80`) + +* `81` (value: `81`) + +* `82` (value: `82`) + +* `83` (value: `83`) + +* `84` (value: `84`) + +* `85` (value: `85`) + +* `86` (value: `86`) + +* `87` (value: `87`) + +* `88` (value: `88`) + +* `89` (value: `89`) + +* `90` (value: `90`) + +* `91` (value: `91`) + +* `92` (value: `92`) + +* `93` (value: `93`) + +* `94` (value: `94`) + +* `95` (value: `95`) + +* `96` (value: `96`) + +* `97` (value: `97`) + +* `98` (value: `98`) + +* `99` (value: `99`) + +* `100` (value: `100`) + +* `101` (value: `101`) + +* `102` (value: `102`) + +* `103` (value: `103`) + +* `104` (value: `104`) + +* `105` (value: `105`) + +* `106` (value: `106`) + +* `107` (value: `107`) + +* `108` (value: `108`) + +* `109` (value: `109`) + +* `110` (value: `110`) + +* `111` (value: `111`) + +* `112` (value: `112`) + +* `113` (value: `113`) + +* `114` (value: `114`) + +* `115` (value: `115`) + +* `116` (value: `116`) + +* `117` (value: `117`) + +* `118` (value: `118`) + +* `119` (value: `119`) + +* `120` (value: `120`) + +* `121` (value: `121`) + +* `122` (value: `122`) + +* `123` (value: `123`) + +* `124` (value: `124`) + +* `125` (value: `125`) + +* `126` (value: `126`) + +* `127` (value: `127`) + +* `128` (value: `128`) + +* `129` (value: `129`) + +* `130` (value: `130`) + +* `131` (value: `131`) + +* `132` (value: `132`) + +* `133` (value: `133`) + +* `134` (value: `134`) + +* `135` (value: `135`) + +* `136` (value: `136`) + +* `137` (value: `137`) + +* `138` (value: `138`) + +* `139` (value: `139`) + +* `140` (value: `140`) + +* `141` (value: `141`) + +* `142` (value: `142`) + +* `143` (value: `143`) + +* `144` (value: `144`) + +* `145` (value: `145`) + +* `146` (value: `146`) + +* `147` (value: `147`) + +* `148` (value: `148`) + +* `149` (value: `149`) + +* `150` (value: `150`) + +* `151` (value: `151`) + +* `152` (value: `152`) + +* `153` (value: `153`) + +* `154` (value: `154`) + +* `155` (value: `155`) + +* `156` (value: `156`) + +* `157` (value: `157`) + +* `158` (value: `158`) + +* `159` (value: `159`) + +* `160` (value: `160`) + +* `161` (value: `161`) + +* `162` (value: `162`) + +* `163` (value: `163`) + +* `164` (value: `164`) + +* `165` (value: `165`) + +* `166` (value: `166`) + +* `167` (value: `167`) + +* `168` (value: `168`) + +* `169` (value: `169`) + +* `170` (value: `170`) + +* `171` (value: `171`) + +* `172` (value: `172`) + +* `173` (value: `173`) + +* `174` (value: `174`) + +* `175` (value: `175`) + +* `176` (value: `176`) + +* `177` (value: `177`) + +* `178` (value: `178`) + +* `179` (value: `179`) + +* `180` (value: `180`) + +* `181` (value: `181`) + +* `182` (value: `182`) + +* `183` (value: `183`) + +* `184` (value: `184`) + +* `185` (value: `185`) + +* `186` (value: `186`) + +* `187` (value: `187`) + +* `188` (value: `188`) + +* `189` (value: `189`) + +* `190` (value: `190`) + +* `191` (value: `191`) + +* `192` (value: `192`) + +* `193` (value: `193`) + +* `194` (value: `194`) + +* `195` (value: `195`) + +* `196` (value: `196`) + +* `197` (value: `197`) + +* `198` (value: `198`) + +* `199` (value: `199`) + +* `200` (value: `200`) + +* `201` (value: `201`) + +* `202` (value: `202`) + +* `203` (value: `203`) + +* `204` (value: `204`) + +* `205` (value: `205`) + +* `206` (value: `206`) + +* `207` (value: `207`) + +* `208` (value: `208`) + +* `209` (value: `209`) + +* `210` (value: `210`) + +* `211` (value: `211`) + +* `212` (value: `212`) + +* `213` (value: `213`) + +* `214` (value: `214`) + +* `215` (value: `215`) + +* `216` (value: `216`) + +* `217` (value: `217`) + +* `218` (value: `218`) + +* `219` (value: `219`) + +* `220` (value: `220`) + +* `221` (value: `221`) + +* `222` (value: `222`) + +* `223` (value: `223`) + +* `224` (value: `224`) + +* `225` (value: `225`) + +* `226` (value: `226`) + +* `227` (value: `227`) + +* `228` (value: `228`) + +* `229` (value: `229`) + +* `230` (value: `230`) + +* `231` (value: `231`) + +* `232` (value: `232`) + +* `233` (value: `233`) + +* `234` (value: `234`) + +* `235` (value: `235`) + +* `236` (value: `236`) + +* `237` (value: `237`) + +* `238` (value: `238`) + +* `239` (value: `239`) + +* `240` (value: `240`) + +* `241` (value: `241`) + +* `242` (value: `242`) + +* `243` (value: `243`) + +* `244` (value: `244`) + +* `245` (value: `245`) + +* `246` (value: `246`) + +* `247` (value: `247`) + +* `248` (value: `248`) + +* `249` (value: `249`) + +* `250` (value: `250`) + +* `251` (value: `251`) + +* `252` (value: `252`) + +* `253` (value: `253`) + +* `254` (value: `254`) + +* `255` (value: `255`) + +* `256` (value: `256`) + +* `257` (value: `257`) + +* `258` (value: `258`) + +* `259` (value: `259`) + +* `260` (value: `260`) + +* `261` (value: `261`) + +* `262` (value: `262`) + +* `263` (value: `263`) + +* `264` (value: `264`) + +* `265` (value: `265`) + +* `266` (value: `266`) + +* `267` (value: `267`) + +* `268` (value: `268`) + +* `269` (value: `269`) + +* `270` (value: `270`) + +* `271` (value: `271`) + +* `272` (value: `272`) + +* `273` (value: `273`) + +* `274` (value: `274`) + +* `275` (value: `275`) + +* `276` (value: `276`) + +* `277` (value: `277`) + +* `278` (value: `278`) + +* `279` (value: `279`) + +* `280` (value: `280`) + +* `281` (value: `281`) + +* `282` (value: `282`) + +* `283` (value: `283`) + +* `5001` (value: `5001`) + +* `5002` (value: `5002`) + +* `5003` (value: `5003`) + +* `5004` (value: `5004`) + +* `5005` (value: `5005`) + +* `5006` (value: `5006`) + +* `5007` (value: `5007`) + +* `5008` (value: `5008`) + +* `5009` (value: `5009`) + +* `5010` (value: `5010`) + +* `5011` (value: `5011`) + +* `5012` (value: `5012`) + +* `5013` (value: `5013`) + +* `5014` (value: `5014`) + +* `5015` (value: `5015`) + +* `5016` (value: `5016`) + +* `5017` (value: `5017`) + +* `5018` (value: `5018`) + +* `5019` (value: `5019`) + +* `5020` (value: `5020`) + +* `5021` (value: `5021`) + +* `5022` (value: `5022`) + +* `5023` (value: `5023`) + +* `5024` (value: `5024`) + +* `5025` (value: `5025`) + +* `5026` (value: `5026`) + +* `5027` (value: `5027`) + +* `5028` (value: `5028`) + +* `5029` (value: `5029`) + +* `5030` (value: `5030`) + +* `5031` (value: `5031`) + +* `5032` (value: `5032`) + +* `5033` (value: `5033`) + +* `5034` (value: `5034`) + +* `5035` (value: `5035`) + +* `5036` (value: `5036`) + +* `5037` (value: `5037`) + +* `5038` (value: `5038`) + +* `5039` (value: `5039`) + +* `5040` (value: `5040`) + +* `5041` (value: `5041`) + +* `5042` (value: `5042`) + +* `5043` (value: `5043`) + +* `5044` (value: `5044`) + +* `5045` (value: `5045`) + +* `5046` (value: `5046`) + +* `5068` (value: `5068`) + +* `5069` (value: `5069`) + +* `5070` (value: `5070`) + +* `5071` (value: `5071`) + +* `5072` (value: `5072`) + +* `5073` (value: `5073`) + +* `5074` (value: `5074`) + +* `5075` (value: `5075`) + +* `5076` (value: `5076`) + +* `5077` (value: `5077`) + +* `5079` (value: `5079`) + +* `5080` (value: `5080`) + +* `5081` (value: `5081`) + +* `5082` (value: `5082`) + +* `5083` (value: `5083`) + +* `5084` (value: `5084`) + +* `5085` (value: `5085`) + +* `5086` (value: `5086`) + +* `5087` (value: `5087`) + +* `5088` (value: `5088`) + +* `5089` (value: `5089`) + +* `5090` (value: `5090`) + +* `5091` (value: `5091`) + +* `5092` (value: `5092`) + +* `5093` (value: `5093`) + +* `5094` (value: `5094`) + +* `5095` (value: `5095`) + +* `5096` (value: `5096`) + +* `5097` (value: `5097`) + +* `5098` (value: `5098`) + +* `5099` (value: `5099`) + +* `5100` (value: `5100`) + +* `5101` (value: `5101`) + +* `5102` (value: `5102`) + +* `5103` (value: `5103`) + +* `5104` (value: `5104`) + +* `5105` (value: `5105`) + +* `5106` (value: `5106`) + +* `5107` (value: `5107`) + +* `5108` (value: `5108`) + +* `5109` (value: `5109`) + +* `5110` (value: `5110`) + +* `5111` (value: `5111`) + +* `5112` (value: `5112`) + +* `5113` (value: `5113`) + +* `5114` (value: `5114`) + +* `5115` (value: `5115`) + +* `5116` (value: `5116`) + +* `5117` (value: `5117`) + +* `5118` (value: `5118`) + +* `5119` (value: `5119`) + +* `5120` (value: `5120`) + +* `5121` (value: `5121`) + +* `5122` (value: `5122`) + +* `5123` (value: `5123`) + +* `5124` (value: `5124`) + +* `5125` (value: `5125`) + +* `5126` (value: `5126`) + +* `5127` (value: `5127`) + +* `5129` (value: `5129`) + +* `5130` (value: `5130`) + +* `5131` (value: `5131`) + +* `5132` (value: `5132`) + +* `5133` (value: `5133`) + +* `5134` (value: `5134`) + +* `5135` (value: `5135`) + +* `5136` (value: `5136`) + +* `5137` (value: `5137`) + +* `5138` (value: `5138`) + +* `5139` (value: `5139`) + +* `5140` (value: `5140`) + +* `5141` (value: `5141`) + +* `5142` (value: `5142`) + +* `5143` (value: `5143`) + +* `5144` (value: `5144`) + +* `5145` (value: `5145`) + +* `5146` (value: `5146`) + +* `5147` (value: `5147`) + +* `5148` (value: `5148`) + +* `5149` (value: `5149`) + +* `5150` (value: `5150`) + +* `5151` (value: `5151`) + +* `5152` (value: `5152`) + +* `5153` (value: `5153`) + +* `5154` (value: `5154`) + +* `5157` (value: `5157`) + +* `5158` (value: `5158`) + +* `5159` (value: `5159`) + +* `5160` (value: `5160`) + +* `5161` (value: `5161`) + +* `5162` (value: `5162`) + +* `5163` (value: `5163`) + +* `5164` (value: `5164`) + +* `5165` (value: `5165`) + +* `5166` (value: `5166`) + +* `5167` (value: `5167`) + +* `5168` (value: `5168`) + +* `5169` (value: `5169`) + +* `5170` (value: `5170`) + +* `5171` (value: `5171`) + +* `5172` (value: `5172`) + +* `5173` (value: `5173`) + +* `5174` (value: `5174`) + +* `5175` (value: `5175`) + +* `5176` (value: `5176`) + +* `5177` (value: `5177`) + +* `5178` (value: `5178`) + +* `5179` (value: `5179`) + +* `5180` (value: `5180`) + +* `5181` (value: `5181`) + +* `5182` (value: `5182`) + +* `5184` (value: `5184`) + +* `5185` (value: `5185`) + +* `5186` (value: `5186`) + +* `5187` (value: `5187`) + +* `5188` (value: `5188`) + +* `5189` (value: `5189`) + +* `5190` (value: `5190`) + +* `5191` (value: `5191`) + +* `5196` (value: `5196`) + +* `5198` (value: `5198`) + +* `5199` (value: `5199`) + +* `5200` (value: `5200`) + +* `5201` (value: `5201`) + +* `5202` (value: `5202`) + +* `5203` (value: `5203`) + +* `5204` (value: `5204`) + +* `5205` (value: `5205`) + +* `5206` (value: `5206`) + +* `5207` (value: `5207`) + +* `5211` (value: `5211`) + +* `5212` (value: `5212`) + +* `90001` (value: `90001`) + +* `90002` (value: `90002`) + +* `90003` (value: `90003`) + +* `90004` (value: `90004`) + +* `90005` (value: `90005`) + +* `90006` (value: `90006`) + +* `90007` (value: `90007`) + +* `90008` (value: `90008`) + +* `90009` (value: `90009`) + +* `90010` (value: `90010`) + +* `90011` (value: `90011`) + + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.md b/docs/InlineResponse2003PropertyOperationTimeList.md similarity index 90% rename from docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.md rename to docs/InlineResponse2003PropertyOperationTimeList.md index e6df55e..9691a9b 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.md +++ b/docs/InlineResponse2003PropertyOperationTimeList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner +# LodgeaJs.InlineResponse2003PropertyOperationTimeList ## Properties diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md b/docs/InlineResponse2003PropertyPetsPolicy.md similarity index 82% rename from docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md rename to docs/InlineResponse2003PropertyPetsPolicy.md index ef22463..89e953f 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md +++ b/docs/InlineResponse2003PropertyPetsPolicy.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy +# LodgeaJs.InlineResponse2003PropertyPetsPolicy ## Properties diff --git a/docs/InlineResponse2003PropertyPolicyList.md b/docs/InlineResponse2003PropertyPolicyList.md new file mode 100644 index 0000000..6f3a8f0 --- /dev/null +++ b/docs/InlineResponse2003PropertyPolicyList.md @@ -0,0 +1,31 @@ +# LodgeaJs.InlineResponse2003PropertyPolicyList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**checkInTime** | **Number** | Check-in time (unix timestamp in ms). | +**checkOutTime** | **Number** | Check-out time (unix timestamp in ms). | +**totalGuestCount** | **Number** | The maximum number of guests allowed. | [optional] +**cancellationPolicyList** | [**[InlineResponse2003PropertyCancellationPolicyList]**](InlineResponse2003PropertyCancellationPolicyList.md) | List of cancellation policies. | +**advanceBookingMin** | **Number** | The minimum number of days in advance a booking must be made | +**advanceBookingMax** | **Number** | The maximum number of days in advance a booking can be made | +**petsPolicy** | [**InlineResponse2003PropertyPetsPolicy**](InlineResponse2003PropertyPetsPolicy.md) | | [optional] +**prepaymentPolicy** | **String** | The type of the prepayment policy. | [optional] +**guaranteePolicy** | [**InlineResponse2003PropertyGuaranteePolicy**](InlineResponse2003PropertyGuaranteePolicy.md) | | [optional] +**taxPolicyList** | [**[InlineResponse2003PropertyTaxPolicyList]**](InlineResponse2003PropertyTaxPolicyList.md) | A list of taxes and their policies. | +**feePolicyList** | [**[InlineResponse2003PropertyFeePolicyList]**](InlineResponse2003PropertyFeePolicyList.md) | A list of fees and their policies. | +**name** | **String** | The name of this policy. | [optional] + + + +## Enum: PrepaymentPolicyEnum + + +* `cancellation_fee_begins` (value: `"after_cancellation_fee_begins"`) + +* `reservation_is_made` (value: `"after_reservation_is_made"`) + + + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.md b/docs/InlineResponse2003PropertyPropertyInfo.md similarity index 80% rename from docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.md rename to docs/InlineResponse2003PropertyPropertyInfo.md index 3adc62b..1182036 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.md +++ b/docs/InlineResponse2003PropertyPropertyInfo.md @@ -1,15 +1,15 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo +# LodgeaJs.InlineResponse2003PropertyPropertyInfo ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **unitCount** | **Number** | The amount of units the property has. | [optional] -**messageList** | [**[PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner]**](PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.md) | Contains a descriptive message for this property in all supported languages. | +**messageList** | [**[InlineResponse2003PropertyPropertyInfoMessageList]**](InlineResponse2003PropertyPropertyInfoMessageList.md) | Contains a descriptive message for this property in all supported languages. | **categoryList** | **[Number]** | A list of code of the property class types that apply to the property. | **languageList** | **[String]** | 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** | [**[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> | +**location** | [**InlineResponse2001GeoLocation**](InlineResponse2001GeoLocation.md) | | [optional] +**acceptedPaymentList** | [**[InlineResponse2003PropertyPropertyInfoAcceptedPaymentList]**](InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.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> | diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md b/docs/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.md similarity index 93% rename from docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md rename to docs/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.md index 2314918..f0fdaef 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.md +++ b/docs/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner +# LodgeaJs.InlineResponse2003PropertyPropertyInfoAcceptedPaymentList ## Properties diff --git a/docs/InlineResponse2003PropertyPropertyInfoMessageList.md b/docs/InlineResponse2003PropertyPropertyInfoMessageList.md new file mode 100644 index 0000000..c651dd5 --- /dev/null +++ b/docs/InlineResponse2003PropertyPropertyInfoMessageList.md @@ -0,0 +1,10 @@ +# LodgeaJs.InlineResponse2003PropertyPropertyInfoMessageList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**languageCode** | **String** | 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. | + + diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.md b/docs/InlineResponse2003PropertyRecordCreated.md similarity index 87% rename from docs/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.md rename to docs/InlineResponse2003PropertyRecordCreated.md index 854fdb3..e631922 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.md +++ b/docs/InlineResponse2003PropertyRecordCreated.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordCreated +# LodgeaJs.InlineResponse2003PropertyRecordCreated ## Properties diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyRecordModified.md b/docs/InlineResponse2003PropertyRecordModified.md similarity index 87% rename from docs/PropertiesPropertyIdGet200ResponsePropertyRecordModified.md rename to docs/InlineResponse2003PropertyRecordModified.md index f289464..d09c86a 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyRecordModified.md +++ b/docs/InlineResponse2003PropertyRecordModified.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordModified +# LodgeaJs.InlineResponse2003PropertyRecordModified ## Properties diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.md b/docs/InlineResponse2003PropertyServiceList.md similarity index 89% rename from docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.md rename to docs/InlineResponse2003PropertyServiceList.md index 514e995..4ac9371 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.md +++ b/docs/InlineResponse2003PropertyServiceList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner +# LodgeaJs.InlineResponse2003PropertyServiceList ## Properties @@ -12,7 +12,7 @@ Name | Type | Description | Notes **featureList** | **[String]** | A list of features. | **typeList** | **[Number]** | A list of codes describing the available breakfast type.<p>See also <a href=\"#breakfasttype-codes\">in the appendix</a>.</p> | **itemList** | **[Number]** | A list of codes describing the available breakfast items.<p>See also <a href=\"#breakfastitem-codes\">in the appendix</a>.</p> | -**operationTimeList** | [**[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. | +**operationTimeList** | [**[InlineResponse2003PropertyOperationTimeList]**](InlineResponse2003PropertyOperationTimeList.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. | @@ -1078,113 +1078,6 @@ Name | Type | Description | Notes -## Enum: CurrencyCodeEnum - - -* `AED` (value: `"AED"`) - -* `ARS` (value: `"ARS"`) - -* `AUD` (value: `"AUD"`) - -* `AZN` (value: `"AZN"`) - -* `BGN` (value: `"BGN"`) - -* `BHD` (value: `"BHD"`) - -* `BRL` (value: `"BRL"`) - -* `CAD` (value: `"CAD"`) - -* `CHF` (value: `"CHF"`) - -* `CLP` (value: `"CLP"`) - -* `CNY` (value: `"CNY"`) - -* `COP` (value: `"COP"`) - -* `CZK` (value: `"CZK"`) - -* `DKK` (value: `"DKK"`) - -* `EGP` (value: `"EGP"`) - -* `EUR` (value: `"EUR"`) - -* `FJD` (value: `"FJD"`) - -* `GBP` (value: `"GBP"`) - -* `GEL` (value: `"GEL"`) - -* `HKD` (value: `"HKD"`) - -* `HUF` (value: `"HUF"`) - -* `IDR` (value: `"IDR"`) - -* `ILS` (value: `"ILS"`) - -* `INR` (value: `"INR"`) - -* `JOD` (value: `"JOD"`) - -* `JPY` (value: `"JPY"`) - -* `KRW` (value: `"KRW"`) - -* `KWD` (value: `"KWD"`) - -* `KZT` (value: `"KZT"`) - -* `MDL` (value: `"MDL"`) - -* `MXN` (value: `"MXN"`) - -* `MYR` (value: `"MYR"`) - -* `NAD` (value: `"NAD"`) - -* `NOK` (value: `"NOK"`) - -* `NZD` (value: `"NZD"`) - -* `OMR` (value: `"OMR"`) - -* `PLN` (value: `"PLN"`) - -* `QAR` (value: `"QAR"`) - -* `RON` (value: `"RON"`) - -* `RUB` (value: `"RUB"`) - -* `SAR` (value: `"SAR"`) - -* `SEK` (value: `"SEK"`) - -* `SGD` (value: `"SGD"`) - -* `THB` (value: `"THB"`) - -* `TRY` (value: `"TRY"`) - -* `TWD` (value: `"TWD"`) - -* `UAH` (value: `"UAH"`) - -* `USD` (value: `"USD"`) - -* `XOF` (value: `"XOF"`) - -* `ZAR` (value: `"ZAR"`) - - - - - ## Enum: [FeatureListEnum] diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md b/docs/InlineResponse2003PropertyTaxPolicyList.md similarity index 64% rename from docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md rename to docs/InlineResponse2003PropertyTaxPolicyList.md index 5740f59..4879fbb 100644 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md +++ b/docs/InlineResponse2003PropertyTaxPolicyList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner +# LodgeaJs.InlineResponse2003PropertyTaxPolicyList ## Properties @@ -142,113 +142,6 @@ Name | Type | Description | Notes -## Enum: CurrencyCodeEnum - - -* `AED` (value: `"AED"`) - -* `ARS` (value: `"ARS"`) - -* `AUD` (value: `"AUD"`) - -* `AZN` (value: `"AZN"`) - -* `BGN` (value: `"BGN"`) - -* `BHD` (value: `"BHD"`) - -* `BRL` (value: `"BRL"`) - -* `CAD` (value: `"CAD"`) - -* `CHF` (value: `"CHF"`) - -* `CLP` (value: `"CLP"`) - -* `CNY` (value: `"CNY"`) - -* `COP` (value: `"COP"`) - -* `CZK` (value: `"CZK"`) - -* `DKK` (value: `"DKK"`) - -* `EGP` (value: `"EGP"`) - -* `EUR` (value: `"EUR"`) - -* `FJD` (value: `"FJD"`) - -* `GBP` (value: `"GBP"`) - -* `GEL` (value: `"GEL"`) - -* `HKD` (value: `"HKD"`) - -* `HUF` (value: `"HUF"`) - -* `IDR` (value: `"IDR"`) - -* `ILS` (value: `"ILS"`) - -* `INR` (value: `"INR"`) - -* `JOD` (value: `"JOD"`) - -* `JPY` (value: `"JPY"`) - -* `KRW` (value: `"KRW"`) - -* `KWD` (value: `"KWD"`) - -* `KZT` (value: `"KZT"`) - -* `MDL` (value: `"MDL"`) - -* `MXN` (value: `"MXN"`) - -* `MYR` (value: `"MYR"`) - -* `NAD` (value: `"NAD"`) - -* `NOK` (value: `"NOK"`) - -* `NZD` (value: `"NZD"`) - -* `OMR` (value: `"OMR"`) - -* `PLN` (value: `"PLN"`) - -* `QAR` (value: `"QAR"`) - -* `RON` (value: `"RON"`) - -* `RUB` (value: `"RUB"`) - -* `SAR` (value: `"SAR"`) - -* `SEK` (value: `"SEK"`) - -* `SGD` (value: `"SGD"`) - -* `THB` (value: `"THB"`) - -* `TRY` (value: `"TRY"`) - -* `TWD` (value: `"TWD"`) - -* `UAH` (value: `"UAH"`) - -* `USD` (value: `"USD"`) - -* `XOF` (value: `"XOF"`) - -* `ZAR` (value: `"ZAR"`) - - - - - ## Enum: [ConditionListEnum] diff --git a/docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md b/docs/InlineResponse2003RatePlanList.md similarity index 50% rename from docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md rename to docs/InlineResponse2003RatePlanList.md index dd6799a..6065303 100644 --- a/docs/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md +++ b/docs/InlineResponse2003RatePlanList.md @@ -1,4 +1,4 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner +# LodgeaJs.InlineResponse2003RatePlanList ## Properties @@ -7,6 +7,6 @@ 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** | [**[PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner]**](PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.md) | | +**pricingList** | [**[InlineResponse2003PricingList]**](InlineResponse2003PricingList.md) | | diff --git a/docs/InlineResponse2004.md b/docs/InlineResponse2004.md new file mode 100644 index 0000000..4b2d2de --- /dev/null +++ b/docs/InlineResponse2004.md @@ -0,0 +1,9 @@ +# LodgeaJs.InlineResponse2004 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**availabilityList** | [**[InlineResponse2004AvailabilityList]**](InlineResponse2004AvailabilityList.md) | An array of objects describing the available booking options. | + + diff --git a/docs/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.md b/docs/InlineResponse2004AvailabilityList.md similarity index 77% rename from docs/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.md rename to docs/InlineResponse2004AvailabilityList.md index 91fc16e..b0ad9ce 100644 --- a/docs/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.md +++ b/docs/InlineResponse2004AvailabilityList.md @@ -1,10 +1,10 @@ -# LodgeaJs.PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner +# LodgeaJs.InlineResponse2004AvailabilityList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ratePlanList** | [**[PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner]**](PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.md) | A list of available rate plans. | +**ratePlanList** | [**[InlineResponse2004RatePlanList]**](InlineResponse2004RatePlanList.md) | A list of available rate plans. | **name** | **String** | The name of the rate plan group. | **mealPlanList** | **[Number]** | The available meal plans.<p>See also <a href=\"#mealplan-type-codes\">in the appendix</a>.</p> | **roomTypeList** | **[String]** | The rooms this availability is for. | diff --git a/docs/InlineResponse2004PricingList.md b/docs/InlineResponse2004PricingList.md new file mode 100644 index 0000000..c76cd7b --- /dev/null +++ b/docs/InlineResponse2004PricingList.md @@ -0,0 +1,12 @@ +# LodgeaJs.InlineResponse2004PricingList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**dateTime** | **Number** | The timestamp of the pricing information. | +**occupancy** | **Number** | The number of occupants for which the pricing applies. | +**priceList** | **{String: Number}** | A mapping of number of days of stay to prices. | +**currencyCode** | **String** | The currency code for the prices. | + + diff --git a/docs/InlineResponse2004RatePlanList.md b/docs/InlineResponse2004RatePlanList.md new file mode 100644 index 0000000..727cbc0 --- /dev/null +++ b/docs/InlineResponse2004RatePlanList.md @@ -0,0 +1,12 @@ +# LodgeaJs.InlineResponse2004RatePlanList + +## 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** | [**[InlineResponse2004PricingList]**](InlineResponse2004PricingList.md) | | + + diff --git a/docs/AvailablePropertiesInner.md b/docs/InlineResponse200List.md similarity index 55% rename from docs/AvailablePropertiesInner.md rename to docs/InlineResponse200List.md index fed0b02..19baaae 100644 --- a/docs/AvailablePropertiesInner.md +++ b/docs/InlineResponse200List.md @@ -1,4 +1,4 @@ -# LodgeaJs.AvailablePropertiesInner +# LodgeaJs.InlineResponse200List ## Properties @@ -11,113 +11,6 @@ Name | Type | Description | Notes -## Enum: CurrencyCodeEnum - - -* `AED` (value: `"AED"`) - -* `ARS` (value: `"ARS"`) - -* `AUD` (value: `"AUD"`) - -* `AZN` (value: `"AZN"`) - -* `BGN` (value: `"BGN"`) - -* `BHD` (value: `"BHD"`) - -* `BRL` (value: `"BRL"`) - -* `CAD` (value: `"CAD"`) - -* `CHF` (value: `"CHF"`) - -* `CLP` (value: `"CLP"`) - -* `CNY` (value: `"CNY"`) - -* `COP` (value: `"COP"`) - -* `CZK` (value: `"CZK"`) - -* `DKK` (value: `"DKK"`) - -* `EGP` (value: `"EGP"`) - -* `EUR` (value: `"EUR"`) - -* `FJD` (value: `"FJD"`) - -* `GBP` (value: `"GBP"`) - -* `GEL` (value: `"GEL"`) - -* `HKD` (value: `"HKD"`) - -* `HUF` (value: `"HUF"`) - -* `IDR` (value: `"IDR"`) - -* `ILS` (value: `"ILS"`) - -* `INR` (value: `"INR"`) - -* `JOD` (value: `"JOD"`) - -* `JPY` (value: `"JPY"`) - -* `KRW` (value: `"KRW"`) - -* `KWD` (value: `"KWD"`) - -* `KZT` (value: `"KZT"`) - -* `MDL` (value: `"MDL"`) - -* `MXN` (value: `"MXN"`) - -* `MYR` (value: `"MYR"`) - -* `NAD` (value: `"NAD"`) - -* `NOK` (value: `"NOK"`) - -* `NZD` (value: `"NZD"`) - -* `OMR` (value: `"OMR"`) - -* `PLN` (value: `"PLN"`) - -* `QAR` (value: `"QAR"`) - -* `RON` (value: `"RON"`) - -* `RUB` (value: `"RUB"`) - -* `SAR` (value: `"SAR"`) - -* `SEK` (value: `"SEK"`) - -* `SGD` (value: `"SGD"`) - -* `THB` (value: `"THB"`) - -* `TRY` (value: `"TRY"`) - -* `TWD` (value: `"TWD"`) - -* `UAH` (value: `"UAH"`) - -* `USD` (value: `"USD"`) - -* `XOF` (value: `"XOF"`) - -* `ZAR` (value: `"ZAR"`) - - - - - ## Enum: TypeEnum diff --git a/docs/InlineResponse400.md b/docs/InlineResponse400.md new file mode 100644 index 0000000..65ac084 --- /dev/null +++ b/docs/InlineResponse400.md @@ -0,0 +1,9 @@ +# LodgeaJs.InlineResponse400 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**validationErrors** | [**[InlineResponse400ValidationErrors]**](InlineResponse400ValidationErrors.md) | | + + diff --git a/docs/InlineResponse4001.md b/docs/InlineResponse4001.md new file mode 100644 index 0000000..34f74e0 --- /dev/null +++ b/docs/InlineResponse4001.md @@ -0,0 +1,9 @@ +# LodgeaJs.InlineResponse4001 + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**validationErrors** | [**[InlineResponse4001ValidationErrors]**](InlineResponse4001ValidationErrors.md) | | + + diff --git a/docs/LocationSearchPost400ResponseValidationErrorsInner.md b/docs/InlineResponse4001ValidationErrors.md similarity index 95% rename from docs/LocationSearchPost400ResponseValidationErrorsInner.md rename to docs/InlineResponse4001ValidationErrors.md index 572b51a..f1d82cb 100644 --- a/docs/LocationSearchPost400ResponseValidationErrorsInner.md +++ b/docs/InlineResponse4001ValidationErrors.md @@ -1,4 +1,4 @@ -# LodgeaJs.LocationSearchPost400ResponseValidationErrorsInner +# LodgeaJs.InlineResponse4001ValidationErrors ## Properties diff --git a/docs/InlineResponse400ValidationErrors.md b/docs/InlineResponse400ValidationErrors.md new file mode 100644 index 0000000..d7036fa --- /dev/null +++ b/docs/InlineResponse400ValidationErrors.md @@ -0,0 +1,50 @@ +# LodgeaJs.InlineResponse400ValidationErrors + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | The ZodIssueCode describing the issue. | +**message** | **String** | A message describing the error in a human readable way. | +**path** | **[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 + + +* `invalid_type` (value: `"invalid_type"`) + +* `invalid_literal` (value: `"invalid_literal"`) + +* `custom` (value: `"custom"`) + +* `invalid_union` (value: `"invalid_union"`) + +* `invalid_union_discriminator` (value: `"invalid_union_discriminator"`) + +* `invalid_enum_value` (value: `"invalid_enum_value"`) + +* `unrecognized_keys` (value: `"unrecognized_keys"`) + +* `invalid_arguments` (value: `"invalid_arguments"`) + +* `invalid_return_type` (value: `"invalid_return_type"`) + +* `invalid_date` (value: `"invalid_date"`) + +* `invalid_string` (value: `"invalid_string"`) + +* `too_small` (value: `"too_small"`) + +* `too_big` (value: `"too_big"`) + +* `invalid_intersection_types` (value: `"invalid_intersection_types"`) + +* `not_multiple_of` (value: `"not_multiple_of"`) + +* `not_finite` (value: `"not_finite"`) + + + + diff --git a/docs/LocationSearchPost200Response.md b/docs/LocationSearchPost200Response.md deleted file mode 100644 index 51f837d..0000000 --- a/docs/LocationSearchPost200Response.md +++ /dev/null @@ -1,93 +0,0 @@ -# LodgeaJs.LocationSearchPost200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**languageCode** | **String** | 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** | [**[AvailablePropertiesInner]**](AvailablePropertiesInner.md) | A list of available properties matching the given criteria. | - - - -## Enum: LanguageCodeEnum - - -* `af` (value: `"af"`) - -* `ar` (value: `"ar"`) - -* `bg` (value: `"bg"`) - -* `ca` (value: `"ca"`) - -* `cs` (value: `"cs"`) - -* `da` (value: `"da"`) - -* `de` (value: `"de"`) - -* `el` (value: `"el"`) - -* `en` (value: `"en"`) - -* `es` (value: `"es"`) - -* `et` (value: `"et"`) - -* `fi` (value: `"fi"`) - -* `fr` (value: `"fr"`) - -* `he` (value: `"he"`) - -* `hi` (value: `"hi"`) - -* `hr` (value: `"hr"`) - -* `hu` (value: `"hu"`) - -* `id` (value: `"id"`) - -* `is` (value: `"is"`) - -* `it` (value: `"it"`) - -* `ja` (value: `"ja"`) - -* `ko` (value: `"ko"`) - -* `lt` (value: `"lt"`) - -* `lv` (value: `"lv"`) - -* `nl` (value: `"nl"`) - -* `no` (value: `"no"`) - -* `pl` (value: `"pl"`) - -* `pt` (value: `"pt"`) - -* `ro` (value: `"ro"`) - -* `ru` (value: `"ru"`) - -* `sk` (value: `"sk"`) - -* `sl` (value: `"sl"`) - -* `sr` (value: `"sr"`) - -* `sv` (value: `"sv"`) - -* `th` (value: `"th"`) - -* `tr` (value: `"tr"`) - -* `vi` (value: `"vi"`) - -* `zh` (value: `"zh"`) - - - - diff --git a/docs/LocationSearchPost400Response.md b/docs/LocationSearchPost400Response.md deleted file mode 100644 index 438789e..0000000 --- a/docs/LocationSearchPost400Response.md +++ /dev/null @@ -1,9 +0,0 @@ -# LodgeaJs.LocationSearchPost400Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**validationErrors** | [**[LocationSearchPost400ResponseValidationErrorsInner]**](LocationSearchPost400ResponseValidationErrorsInner.md) | | - - diff --git a/docs/PropertiesPropertyIdAvailabilityGet200Response.md b/docs/PropertiesPropertyIdAvailabilityGet200Response.md deleted file mode 100644 index 618f639..0000000 --- a/docs/PropertiesPropertyIdAvailabilityGet200Response.md +++ /dev/null @@ -1,9 +0,0 @@ -# LodgeaJs.PropertiesPropertyIdAvailabilityGet200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**availabilityList** | [**[PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner]**](PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.md) | An array of objects describing the available booking options. | - - diff --git a/docs/PropertiesPropertyIdGet200Response.md b/docs/PropertiesPropertyIdGet200Response.md deleted file mode 100644 index 4c40385..0000000 --- a/docs/PropertiesPropertyIdGet200Response.md +++ /dev/null @@ -1,10 +0,0 @@ -# LodgeaJs.PropertiesPropertyIdGet200Response - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**property** | [**PropertiesPropertyIdGet200ResponseProperty**](PropertiesPropertyIdGet200ResponseProperty.md) | | -**productList** | [**[PropertiesPropertyIdGet200ResponseProductListInner]**](PropertiesPropertyIdGet200ResponseProductListInner.md) | | - - diff --git a/docs/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.md b/docs/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.md deleted file mode 100644 index 5d5a462..0000000 --- a/docs/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.md +++ /dev/null @@ -1,31 +0,0 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**checkInTime** | **Number** | Check-in time (unix timestamp in ms). | -**checkOutTime** | **Number** | Check-out time (unix timestamp in ms). | -**totalGuestCount** | **Number** | The maximum number of guests allowed. | [optional] -**cancellationPolicyList** | [**[PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner]**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md) | List of cancellation policies. | -**advanceBookingMin** | **Number** | The minimum number of days in advance a booking must be made | -**advanceBookingMax** | **Number** | The maximum number of days in advance a booking can be made | -**petsPolicy** | [**PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md) | | [optional] -**prepaymentPolicy** | **String** | The type of the prepayment policy. | [optional] -**guaranteePolicy** | [**PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md) | | [optional] -**taxPolicyList** | [**[PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner]**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md) | A list of taxes and their policies. | -**feePolicyList** | [**[PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner]**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md) | A list of fees and their policies. | -**name** | **String** | The name of this policy. | [optional] - - - -## Enum: PrepaymentPolicyEnum - - -* `cancellation_fee_begins` (value: `"after_cancellation_fee_begins"`) - -* `reservation_is_made` (value: `"after_reservation_is_made"`) - - - - diff --git a/docs/PropertiesPropertyIdGet200ResponseProperty.md b/docs/PropertiesPropertyIdGet200ResponseProperty.md deleted file mode 100644 index bd84f5a..0000000 --- a/docs/PropertiesPropertyIdGet200ResponseProperty.md +++ /dev/null @@ -1,24 +0,0 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponseProperty - -## 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** | [**[PropertiesPropertyIdGet200ResponsePropertyAwardListInner]**](PropertiesPropertyIdGet200ResponsePropertyAwardListInner.md) | A list of the ratings available for this property. | -**contactList** | [**[PropertiesPropertyIdGet200ResponsePropertyContactListInner]**](PropertiesPropertyIdGet200ResponsePropertyContactListInner.md) | A contact with a profile type and a list of addresses | -**facilityInfo** | [**PropertiesPropertyIdGet200ResponsePropertyFacilityInfo**](PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.md) | | [optional] -**mediaList** | [**[PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner]**](PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.md) | A list of media objects for the property. | -**geo** | [**{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** | [**[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** | [**[PropertiesPropertyIdGet200ResponsePropertyServiceListInner]**](PropertiesPropertyIdGet200ResponsePropertyServiceListInner.md) | A list of objects each describing an available service, its pricing and its availability. | - - diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.md b/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.md deleted file mode 100644 index 4296243..0000000 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.md +++ /dev/null @@ -1,9 +0,0 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfo - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**guestRoomList** | [**[PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner]**](PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.md) | An array of objects representing a room in the property. | - - diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md deleted file mode 100644 index 9121da9..0000000 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.md +++ /dev/null @@ -1,93 +0,0 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**languageCode** | **String** | 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 - - -* `af` (value: `"af"`) - -* `ar` (value: `"ar"`) - -* `bg` (value: `"bg"`) - -* `ca` (value: `"ca"`) - -* `cs` (value: `"cs"`) - -* `da` (value: `"da"`) - -* `de` (value: `"de"`) - -* `el` (value: `"el"`) - -* `en` (value: `"en"`) - -* `es` (value: `"es"`) - -* `et` (value: `"et"`) - -* `fi` (value: `"fi"`) - -* `fr` (value: `"fr"`) - -* `he` (value: `"he"`) - -* `hi` (value: `"hi"`) - -* `hr` (value: `"hr"`) - -* `hu` (value: `"hu"`) - -* `id` (value: `"id"`) - -* `is` (value: `"is"`) - -* `it` (value: `"it"`) - -* `ja` (value: `"ja"`) - -* `ko` (value: `"ko"`) - -* `lt` (value: `"lt"`) - -* `lv` (value: `"lv"`) - -* `nl` (value: `"nl"`) - -* `no` (value: `"no"`) - -* `pl` (value: `"pl"`) - -* `pt` (value: `"pt"`) - -* `ro` (value: `"ro"`) - -* `ru` (value: `"ru"`) - -* `sk` (value: `"sk"`) - -* `sl` (value: `"sl"`) - -* `sr` (value: `"sr"`) - -* `sv` (value: `"sv"`) - -* `th` (value: `"th"`) - -* `tr` (value: `"tr"`) - -* `vi` (value: `"vi"`) - -* `zh` (value: `"zh"`) - - - - diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.md deleted file mode 100644 index 279a7dd..0000000 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.md +++ /dev/null @@ -1,31 +0,0 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**checkInTime** | **Number** | Check-in time (unix timestamp in ms). | -**checkOutTime** | **Number** | Check-out time (unix timestamp in ms). | -**totalGuestCount** | **Number** | The maximum number of guests allowed. | [optional] -**cancellationPolicyList** | [**[PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner]**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.md) | List of cancellation policies. | -**advanceBookingMin** | **Number** | The minimum number of days in advance a booking must be made | -**advanceBookingMax** | **Number** | The maximum number of days in advance a booking can be made | -**petsPolicy** | [**PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.md) | | [optional] -**prepaymentPolicy** | **String** | The type of the prepayment policy. | [optional] -**guaranteePolicy** | [**PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.md) | | [optional] -**taxPolicyList** | [**[PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner]**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.md) | A list of taxes and their policies. | -**feePolicyList** | [**[PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner]**](PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.md) | A list of fees and their policies. | -**name** | **String** | The name of this policy. | [optional] - - - -## Enum: PrepaymentPolicyEnum - - -* `cancellation_fee_begins` (value: `"after_cancellation_fee_begins"`) - -* `reservation_is_made` (value: `"after_reservation_is_made"`) - - - - diff --git a/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.md b/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.md deleted file mode 100644 index 2e39a43..0000000 --- a/docs/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.md +++ /dev/null @@ -1,93 +0,0 @@ -# LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**languageCode** | **String** | 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 - - -* `af` (value: `"af"`) - -* `ar` (value: `"ar"`) - -* `bg` (value: `"bg"`) - -* `ca` (value: `"ca"`) - -* `cs` (value: `"cs"`) - -* `da` (value: `"da"`) - -* `de` (value: `"de"`) - -* `el` (value: `"el"`) - -* `en` (value: `"en"`) - -* `es` (value: `"es"`) - -* `et` (value: `"et"`) - -* `fi` (value: `"fi"`) - -* `fr` (value: `"fr"`) - -* `he` (value: `"he"`) - -* `hi` (value: `"hi"`) - -* `hr` (value: `"hr"`) - -* `hu` (value: `"hu"`) - -* `id` (value: `"id"`) - -* `is` (value: `"is"`) - -* `it` (value: `"it"`) - -* `ja` (value: `"ja"`) - -* `ko` (value: `"ko"`) - -* `lt` (value: `"lt"`) - -* `lv` (value: `"lv"`) - -* `nl` (value: `"nl"`) - -* `no` (value: `"no"`) - -* `pl` (value: `"pl"`) - -* `pt` (value: `"pt"`) - -* `ro` (value: `"ro"`) - -* `ru` (value: `"ru"`) - -* `sk` (value: `"sk"`) - -* `sl` (value: `"sl"`) - -* `sr` (value: `"sr"`) - -* `sv` (value: `"sv"`) - -* `th` (value: `"th"`) - -* `tr` (value: `"tr"`) - -* `vi` (value: `"vi"`) - -* `zh` (value: `"zh"`) - - - - diff --git a/openapitools.json b/openapitools.json index 6755cd2..9cbc6d5 100644 --- a/openapitools.json +++ b/openapitools.json @@ -2,6 +2,6 @@ "$schema": "./node_modules/@openapitools/openapi-generator-cli/config.schema.json", "spaces": 2, "generator-cli": { - "version": "6.3.0" + "version": "5.4.0" } } diff --git a/package.json b/package.json index a275c2b..31f593b 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "@lodgea/lodgea-js", - "version": "1.1.5", - "description": "LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information.", + "version": "1.2.0", + "description": "LODGEA_SDK_for_javascript__Check_out_https__docs_lodgea_io_for_more_information_", "license": "Unlicense", "main": "dist/com.lodgea/index.js", "scripts": { diff --git a/src/com.lodgea/ApiClient.js b/src/com.lodgea/ApiClient.js index 7d641b9..aa814e2 100644 --- a/src/com.lodgea/ApiClient.js +++ b/src/com.lodgea/ApiClient.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -17,7 +17,7 @@ import querystring from "querystring"; /** * @module com.lodgea/ApiClient -* @version 1.1.5 +* @version 1.2.0 */ /** @@ -55,7 +55,7 @@ class ApiClient { * @default {} */ this.defaultHeaders = { - 'User-Agent': 'OpenAPI-Generator/1.1.5/Javascript' + 'User-Agent': 'OpenAPI-Generator/1.2.0/Javascript' }; /** @@ -472,7 +472,7 @@ class ApiClient { if (returnType === 'Blob') { request.responseType('blob'); } else if (returnType === 'String') { - request.responseType('text'); + request.responseType('string'); } // Attach previously saved cookies, if enabled diff --git a/src/com.lodgea/com.lodgea.controllers/DefaultApi.js b/src/com.lodgea/com.lodgea.controllers/DefaultApi.js index fddb718..3048288 100644 --- a/src/com.lodgea/com.lodgea.controllers/DefaultApi.js +++ b/src/com.lodgea/com.lodgea.controllers/DefaultApi.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,19 +13,20 @@ import ApiClient from "../ApiClient"; -import AvailabilitySearchPost200Response from '../com.lodgea.model/AvailabilitySearchPost200Response'; -import AvailabilitySearchPostRequest from '../com.lodgea.model/AvailabilitySearchPostRequest'; -import LocationSearchPost200Response from '../com.lodgea.model/LocationSearchPost200Response'; -import LocationSearchPost400Response from '../com.lodgea.model/LocationSearchPost400Response'; -import LocationSearchPostRequest from '../com.lodgea.model/LocationSearchPostRequest'; -import PropertiesGet200Response from '../com.lodgea.model/PropertiesGet200Response'; -import PropertiesPropertyIdAvailabilityGet200Response from '../com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response'; -import PropertiesPropertyIdGet200Response from '../com.lodgea.model/PropertiesPropertyIdGet200Response'; +import InlineObject from '../com.lodgea.model/InlineObject'; +import InlineObject1 from '../com.lodgea.model/InlineObject1'; +import InlineResponse200 from '../com.lodgea.model/InlineResponse200'; +import InlineResponse2001 from '../com.lodgea.model/InlineResponse2001'; +import InlineResponse2002 from '../com.lodgea.model/InlineResponse2002'; +import InlineResponse2003 from '../com.lodgea.model/InlineResponse2003'; +import InlineResponse2004 from '../com.lodgea.model/InlineResponse2004'; +import InlineResponse400 from '../com.lodgea.model/InlineResponse400'; +import InlineResponse4001 from '../com.lodgea.model/InlineResponse4001'; /** * Default service. * @module com.lodgea/com.lodgea.controllers/DefaultApi -* @version 1.1.5 +* @version 1.2.0 */ export default class DefaultApi { @@ -45,7 +46,7 @@ export default class DefaultApi { * Callback function to receive the result of the availabilitySearchPost operation. * @callback module:com.lodgea/com.lodgea.controllers/DefaultApi~availabilitySearchPostCallback * @param {String} error Error message, if any. - * @param {module:com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response} data The data returned by the service call. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2001} data The data returned by the service call. * @param {String} response The complete HTTP response. */ @@ -53,13 +54,13 @@ export default class DefaultApi { * Search for availability * Get availability information based on search criteria. * @param {Object} opts Optional parameters - * @param {module:com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest} opts.availabilitySearchPostRequest + * @param {module:com.lodgea/com.lodgea.model/InlineObject1} opts.inlineObject1 * @param {module:com.lodgea/com.lodgea.controllers/DefaultApi~availabilitySearchPostCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response} + * data is of type: {@link module:com.lodgea/com.lodgea.model/InlineResponse2001} */ availabilitySearchPost(opts, callback) { opts = opts || {}; - let postBody = opts['availabilitySearchPostRequest']; + let postBody = opts['inlineObject1']; let pathParams = { }; @@ -73,7 +74,7 @@ export default class DefaultApi { let authNames = ['ApiKeyAuth']; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = AvailabilitySearchPost200Response; + let returnType = InlineResponse2001; return this.apiClient.callApi( '/availability/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -85,7 +86,7 @@ export default class DefaultApi { * Callback function to receive the result of the locationSearchPost operation. * @callback module:com.lodgea/com.lodgea.controllers/DefaultApi~locationSearchPostCallback * @param {String} error Error message, if any. - * @param {module:com.lodgea/com.lodgea.model/LocationSearchPost200Response} data The data returned by the service call. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse200} data The data returned by the service call. * @param {String} response The complete HTTP response. */ @@ -93,13 +94,13 @@ export default class DefaultApi { * Search for location * Get a list of locations and their lowest available rate related to a given keyword. * @param {Object} opts Optional parameters - * @param {module:com.lodgea/com.lodgea.model/LocationSearchPostRequest} opts.locationSearchPostRequest + * @param {module:com.lodgea/com.lodgea.model/InlineObject} opts.inlineObject * @param {module:com.lodgea/com.lodgea.controllers/DefaultApi~locationSearchPostCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:com.lodgea/com.lodgea.model/LocationSearchPost200Response} + * data is of type: {@link module:com.lodgea/com.lodgea.model/InlineResponse200} */ locationSearchPost(opts, callback) { opts = opts || {}; - let postBody = opts['locationSearchPostRequest']; + let postBody = opts['inlineObject']; let pathParams = { }; @@ -113,7 +114,7 @@ export default class DefaultApi { let authNames = ['ApiKeyAuth']; let contentTypes = ['application/json']; let accepts = ['application/json']; - let returnType = LocationSearchPost200Response; + let returnType = InlineResponse200; return this.apiClient.callApi( '/location/search', 'POST', pathParams, queryParams, headerParams, formParams, postBody, @@ -125,7 +126,7 @@ export default class DefaultApi { * Callback function to receive the result of the propertiesGet operation. * @callback module:com.lodgea/com.lodgea.controllers/DefaultApi~propertiesGetCallback * @param {String} error Error message, if any. - * @param {module:com.lodgea/com.lodgea.model/PropertiesGet200Response} data The data returned by the service call. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2002} data The data returned by the service call. * @param {String} response The complete HTTP response. */ @@ -136,7 +137,7 @@ export default class DefaultApi { * @param {String} opts.keyword * @param {String} opts.pageToken * @param {module:com.lodgea/com.lodgea.controllers/DefaultApi~propertiesGetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:com.lodgea/com.lodgea.model/PropertiesGet200Response} + * data is of type: {@link module:com.lodgea/com.lodgea.model/InlineResponse2002} */ propertiesGet(opts, callback) { opts = opts || {}; @@ -156,7 +157,7 @@ export default class DefaultApi { let authNames = ['ApiKeyAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = PropertiesGet200Response; + let returnType = InlineResponse2002; return this.apiClient.callApi( '/properties', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -168,7 +169,7 @@ export default class DefaultApi { * Callback function to receive the result of the propertiesPropertyIdAvailabilityGet operation. * @callback module:com.lodgea/com.lodgea.controllers/DefaultApi~propertiesPropertyIdAvailabilityGetCallback * @param {String} error Error message, if any. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response} data The data returned by the service call. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2004} data The data returned by the service call. * @param {String} response The complete HTTP response. */ @@ -176,9 +177,9 @@ export default class DefaultApi { * Get a properties availability * Get detailed availability information for a specific property. * @param {String} propertyId - * @param {module:com.lodgea/com.lodgea.model/String} currencyCode + * @param {String} currencyCode * @param {module:com.lodgea/com.lodgea.controllers/DefaultApi~propertiesPropertyIdAvailabilityGetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response} + * data is of type: {@link module:com.lodgea/com.lodgea.model/InlineResponse2004} */ propertiesPropertyIdAvailabilityGet(propertyId, currencyCode, callback) { let postBody = null; @@ -205,7 +206,7 @@ export default class DefaultApi { let authNames = ['ApiKeyAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = PropertiesPropertyIdAvailabilityGet200Response; + let returnType = InlineResponse2004; return this.apiClient.callApi( '/properties/{propertyId}/availability', 'GET', pathParams, queryParams, headerParams, formParams, postBody, @@ -217,7 +218,7 @@ export default class DefaultApi { * Callback function to receive the result of the propertiesPropertyIdGet operation. * @callback module:com.lodgea/com.lodgea.controllers/DefaultApi~propertiesPropertyIdGetCallback * @param {String} error Error message, if any. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200Response} data The data returned by the service call. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003} data The data returned by the service call. * @param {String} response The complete HTTP response. */ @@ -226,7 +227,7 @@ export default class DefaultApi { * Get all information about a specific property by its ID. * @param {String} propertyId * @param {module:com.lodgea/com.lodgea.controllers/DefaultApi~propertiesPropertyIdGetCallback} callback The callback function, accepting three arguments: error, data, response - * data is of type: {@link module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200Response} + * data is of type: {@link module:com.lodgea/com.lodgea.model/InlineResponse2003} */ propertiesPropertyIdGet(propertyId, callback) { let postBody = null; @@ -248,7 +249,7 @@ export default class DefaultApi { let authNames = ['ApiKeyAuth']; let contentTypes = []; let accepts = ['application/json']; - let returnType = PropertiesPropertyIdGet200Response; + let returnType = InlineResponse2003; return this.apiClient.callApi( '/properties/{propertyId}', 'GET', pathParams, queryParams, headerParams, formParams, postBody, diff --git a/src/com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response.js b/src/com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response.js deleted file mode 100644 index 6740979..0000000 --- a/src/com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response.js +++ /dev/null @@ -1,355 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import AvailablePropertiesInner1 from './AvailablePropertiesInner1'; - -/** - * The AvailabilitySearchPost200Response model module. - * @module com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response - * @version 1.1.5 - */ -class AvailabilitySearchPost200Response { - /** - * Constructs a new AvailabilitySearchPost200Response. - * @alias module:com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response - * @param languageCode {module:com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response.LanguageCodeEnum} 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.

- * @param list {Array.} A list of available properties matching the given criteria. - */ - constructor(languageCode, list) { - - AvailabilitySearchPost200Response.initialize(this, languageCode, list); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, languageCode, list) { - obj['languageCode'] = languageCode; - obj['list'] = list; - } - - /** - * Constructs a AvailabilitySearchPost200Response from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response} The populated AvailabilitySearchPost200Response instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AvailabilitySearchPost200Response(); - - if (data.hasOwnProperty('languageCode')) { - obj['languageCode'] = ApiClient.convertToType(data['languageCode'], 'String'); - } - if (data.hasOwnProperty('list')) { - obj['list'] = ApiClient.convertToType(data['list'], [AvailablePropertiesInner1]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to AvailabilitySearchPost200Response. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to AvailabilitySearchPost200Response. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of AvailabilitySearchPost200Response.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['languageCode'] && !(typeof data['languageCode'] === 'string' || data['languageCode'] instanceof String)) { - throw new Error("Expected the field `languageCode` to be a primitive type in the JSON string but got " + data['languageCode']); - } - if (data['list']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['list'])) { - throw new Error("Expected the field `list` to be an array in the JSON data but got " + data['list']); - } - // validate the optional field `list` (array) - for (const item of data['list']) { - AvailablePropertiesInner1.validateJsonObject(item); - }; - } - - return true; - } - - -} - -AvailabilitySearchPost200Response.RequiredProperties = ["languageCode", "list"]; - -/** - * 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.

- * @member {module:com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response.LanguageCodeEnum} languageCode - */ -AvailabilitySearchPost200Response.prototype['languageCode'] = undefined; - -/** - * A list of available properties matching the given criteria. - * @member {Array.} list - */ -AvailabilitySearchPost200Response.prototype['list'] = undefined; - - - - - -/** - * Allowed values for the languageCode property. - * @enum {String} - * @readonly - */ -AvailabilitySearchPost200Response['LanguageCodeEnum'] = { - - /** - * value: "af" - * @const - */ - "af": "af", - - /** - * value: "ar" - * @const - */ - "ar": "ar", - - /** - * value: "bg" - * @const - */ - "bg": "bg", - - /** - * value: "ca" - * @const - */ - "ca": "ca", - - /** - * value: "cs" - * @const - */ - "cs": "cs", - - /** - * value: "da" - * @const - */ - "da": "da", - - /** - * value: "de" - * @const - */ - "de": "de", - - /** - * value: "el" - * @const - */ - "el": "el", - - /** - * value: "en" - * @const - */ - "en": "en", - - /** - * value: "es" - * @const - */ - "es": "es", - - /** - * value: "et" - * @const - */ - "et": "et", - - /** - * value: "fi" - * @const - */ - "fi": "fi", - - /** - * value: "fr" - * @const - */ - "fr": "fr", - - /** - * value: "he" - * @const - */ - "he": "he", - - /** - * value: "hi" - * @const - */ - "hi": "hi", - - /** - * value: "hr" - * @const - */ - "hr": "hr", - - /** - * value: "hu" - * @const - */ - "hu": "hu", - - /** - * value: "id" - * @const - */ - "id": "id", - - /** - * value: "is" - * @const - */ - "is": "is", - - /** - * value: "it" - * @const - */ - "it": "it", - - /** - * value: "ja" - * @const - */ - "ja": "ja", - - /** - * value: "ko" - * @const - */ - "ko": "ko", - - /** - * value: "lt" - * @const - */ - "lt": "lt", - - /** - * value: "lv" - * @const - */ - "lv": "lv", - - /** - * value: "nl" - * @const - */ - "nl": "nl", - - /** - * value: "no" - * @const - */ - "no": "no", - - /** - * value: "pl" - * @const - */ - "pl": "pl", - - /** - * value: "pt" - * @const - */ - "pt": "pt", - - /** - * value: "ro" - * @const - */ - "ro": "ro", - - /** - * value: "ru" - * @const - */ - "ru": "ru", - - /** - * value: "sk" - * @const - */ - "sk": "sk", - - /** - * value: "sl" - * @const - */ - "sl": "sl", - - /** - * value: "sr" - * @const - */ - "sr": "sr", - - /** - * value: "sv" - * @const - */ - "sv": "sv", - - /** - * value: "th" - * @const - */ - "th": "th", - - /** - * value: "tr" - * @const - */ - "tr": "tr", - - /** - * value: "vi" - * @const - */ - "vi": "vi", - - /** - * value: "zh" - * @const - */ - "zh": "zh" -}; - - - -export default AvailabilitySearchPost200Response; - diff --git a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner.js b/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner.js deleted file mode 100644 index b78b482..0000000 --- a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner.js +++ /dev/null @@ -1,587 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AvailablePropertiesInner model module. - * @module com.lodgea/com.lodgea.model/AvailablePropertiesInner - * @version 1.1.5 - */ -class AvailablePropertiesInner { - /** - * Constructs a new AvailablePropertiesInner. - * @alias module:com.lodgea/com.lodgea.model/AvailablePropertiesInner - * @param name {String} The name of the location. - * @param currencyCode {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner.CurrencyCodeEnum} The currency code of the currency of the lowest price. - * @param lowestPrice {Number} The lowest price available for this location. - * @param type {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner.TypeEnum} The type of the found location.

See also in the appendix.

- */ - constructor(name, currencyCode, lowestPrice, type) { - - AvailablePropertiesInner.initialize(this, name, currencyCode, lowestPrice, type); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, name, currencyCode, lowestPrice, type) { - obj['name'] = name; - obj['currencyCode'] = currencyCode; - obj['lowestPrice'] = lowestPrice; - obj['type'] = type; - } - - /** - * Constructs a AvailablePropertiesInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner} The populated AvailablePropertiesInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AvailablePropertiesInner(); - - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('currencyCode')) { - obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); - } - if (data.hasOwnProperty('lowestPrice')) { - obj['lowestPrice'] = ApiClient.convertToType(data['lowestPrice'], 'Number'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to AvailablePropertiesInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to AvailablePropertiesInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of AvailablePropertiesInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { - throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); - } - // ensure the json data is a string - if (data['currencyCode'] && !(typeof data['currencyCode'] === 'string' || data['currencyCode'] instanceof String)) { - throw new Error("Expected the field `currencyCode` to be a primitive type in the JSON string but got " + data['currencyCode']); - } - // ensure the json data is a string - if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) { - throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']); - } - - return true; - } - - -} - -AvailablePropertiesInner.RequiredProperties = ["name", "currencyCode", "lowestPrice", "type"]; - -/** - * The name of the location. - * @member {String} name - */ -AvailablePropertiesInner.prototype['name'] = undefined; - -/** - * The currency code of the currency of the lowest price. - * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner.CurrencyCodeEnum} currencyCode - */ -AvailablePropertiesInner.prototype['currencyCode'] = undefined; - -/** - * The lowest price available for this location. - * @member {Number} lowestPrice - */ -AvailablePropertiesInner.prototype['lowestPrice'] = undefined; - -/** - * The type of the found location.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner.TypeEnum} type - */ -AvailablePropertiesInner.prototype['type'] = undefined; - - - - - -/** - * Allowed values for the currencyCode property. - * @enum {String} - * @readonly - */ -AvailablePropertiesInner['CurrencyCodeEnum'] = { - - /** - * value: "AED" - * @const - */ - "AED": "AED", - - /** - * value: "ARS" - * @const - */ - "ARS": "ARS", - - /** - * value: "AUD" - * @const - */ - "AUD": "AUD", - - /** - * value: "AZN" - * @const - */ - "AZN": "AZN", - - /** - * value: "BGN" - * @const - */ - "BGN": "BGN", - - /** - * value: "BHD" - * @const - */ - "BHD": "BHD", - - /** - * value: "BRL" - * @const - */ - "BRL": "BRL", - - /** - * value: "CAD" - * @const - */ - "CAD": "CAD", - - /** - * value: "CHF" - * @const - */ - "CHF": "CHF", - - /** - * value: "CLP" - * @const - */ - "CLP": "CLP", - - /** - * value: "CNY" - * @const - */ - "CNY": "CNY", - - /** - * value: "COP" - * @const - */ - "COP": "COP", - - /** - * value: "CZK" - * @const - */ - "CZK": "CZK", - - /** - * value: "DKK" - * @const - */ - "DKK": "DKK", - - /** - * value: "EGP" - * @const - */ - "EGP": "EGP", - - /** - * value: "EUR" - * @const - */ - "EUR": "EUR", - - /** - * value: "FJD" - * @const - */ - "FJD": "FJD", - - /** - * value: "GBP" - * @const - */ - "GBP": "GBP", - - /** - * value: "GEL" - * @const - */ - "GEL": "GEL", - - /** - * value: "HKD" - * @const - */ - "HKD": "HKD", - - /** - * value: "HUF" - * @const - */ - "HUF": "HUF", - - /** - * value: "IDR" - * @const - */ - "IDR": "IDR", - - /** - * value: "ILS" - * @const - */ - "ILS": "ILS", - - /** - * value: "INR" - * @const - */ - "INR": "INR", - - /** - * value: "JOD" - * @const - */ - "JOD": "JOD", - - /** - * value: "JPY" - * @const - */ - "JPY": "JPY", - - /** - * value: "KRW" - * @const - */ - "KRW": "KRW", - - /** - * value: "KWD" - * @const - */ - "KWD": "KWD", - - /** - * value: "KZT" - * @const - */ - "KZT": "KZT", - - /** - * value: "MDL" - * @const - */ - "MDL": "MDL", - - /** - * value: "MXN" - * @const - */ - "MXN": "MXN", - - /** - * value: "MYR" - * @const - */ - "MYR": "MYR", - - /** - * value: "NAD" - * @const - */ - "NAD": "NAD", - - /** - * value: "NOK" - * @const - */ - "NOK": "NOK", - - /** - * value: "NZD" - * @const - */ - "NZD": "NZD", - - /** - * value: "OMR" - * @const - */ - "OMR": "OMR", - - /** - * value: "PLN" - * @const - */ - "PLN": "PLN", - - /** - * value: "QAR" - * @const - */ - "QAR": "QAR", - - /** - * value: "RON" - * @const - */ - "RON": "RON", - - /** - * value: "RUB" - * @const - */ - "RUB": "RUB", - - /** - * value: "SAR" - * @const - */ - "SAR": "SAR", - - /** - * value: "SEK" - * @const - */ - "SEK": "SEK", - - /** - * value: "SGD" - * @const - */ - "SGD": "SGD", - - /** - * value: "THB" - * @const - */ - "THB": "THB", - - /** - * value: "TRY" - * @const - */ - "TRY": "TRY", - - /** - * value: "TWD" - * @const - */ - "TWD": "TWD", - - /** - * value: "UAH" - * @const - */ - "UAH": "UAH", - - /** - * value: "USD" - * @const - */ - "USD": "USD", - - /** - * value: "XOF" - * @const - */ - "XOF": "XOF", - - /** - * value: "ZAR" - * @const - */ - "ZAR": "ZAR" -}; - - -/** - * Allowed values for the type property. - * @enum {String} - * @readonly - */ -AvailablePropertiesInner['TypeEnum'] = { - - /** - * value: "formatted_address" - * @const - */ - "formatted_address": "formatted_address", - - /** - * value: "place_id" - * @const - */ - "place_id": "place_id", - - /** - * value: "locality" - * @const - */ - "locality": "locality", - - /** - * value: "administrative_area_level_1" - * @const - */ - "administrative_area_level_1": "administrative_area_level_1", - - /** - * value: "administrative_area_level_2" - * @const - */ - "administrative_area_level_2": "administrative_area_level_2", - - /** - * value: "administrative_area_level_3" - * @const - */ - "administrative_area_level_3": "administrative_area_level_3", - - /** - * value: "administrative_area_level_4" - * @const - */ - "administrative_area_level_4": "administrative_area_level_4", - - /** - * value: "administrative_area_level_5" - * @const - */ - "administrative_area_level_5": "administrative_area_level_5", - - /** - * value: "state_code" - * @const - */ - "state_code": "state_code", - - /** - * value: "country" - * @const - */ - "country": "country", - - /** - * value: "country_code" - * @const - */ - "country_code": "country_code", - - /** - * value: "postal_code" - * @const - */ - "postal_code": "postal_code", - - /** - * value: "language" - * @const - */ - "language": "language", - - /** - * value: "natural_feature" - * @const - */ - "natural_feature": "natural_feature", - - /** - * value: "establishment" - * @const - */ - "establishment": "establishment", - - /** - * value: "sublocality" - * @const - */ - "sublocality": "sublocality", - - /** - * value: "sublocality_level_1" - * @const - */ - "sublocality_level_1": "sublocality_level_1", - - /** - * value: "sublocality_level_2" - * @const - */ - "sublocality_level_2": "sublocality_level_2", - - /** - * value: "sublocality_level_3" - * @const - */ - "sublocality_level_3": "sublocality_level_3", - - /** - * value: "sublocality_level_4" - * @const - */ - "sublocality_level_4": "sublocality_level_4", - - /** - * value: "sublocality_level_5" - * @const - */ - "sublocality_level_5": "sublocality_level_5", - - /** - * value: "streetNumber" - * @const - */ - "streetNumber": "streetNumber" -}; - - - -export default AvailablePropertiesInner; - diff --git a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance.js b/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance.js deleted file mode 100644 index 76bb93b..0000000 --- a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance.js +++ /dev/null @@ -1,129 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AvailablePropertiesInner1AttractionListInnerDistance model module. - * @module com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance - * @version 1.1.5 - */ -class AvailablePropertiesInner1AttractionListInnerDistance { - /** - * Constructs a new 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. - * @alias module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance - * @param value {Number} The numeric value of the distance. - * @param unit {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance.UnitEnum} The unit of the value of the distance. - */ - constructor(value, unit) { - - AvailablePropertiesInner1AttractionListInnerDistance.initialize(this, value, unit); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, value, unit) { - obj['value'] = value; - obj['unit'] = unit; - } - - /** - * Constructs a AvailablePropertiesInner1AttractionListInnerDistance from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance} The populated AvailablePropertiesInner1AttractionListInnerDistance instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AvailablePropertiesInner1AttractionListInnerDistance(); - - if (data.hasOwnProperty('value')) { - obj['value'] = ApiClient.convertToType(data['value'], 'Number'); - } - if (data.hasOwnProperty('unit')) { - obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to AvailablePropertiesInner1AttractionListInnerDistance. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to AvailablePropertiesInner1AttractionListInnerDistance. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of AvailablePropertiesInner1AttractionListInnerDistance.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['unit'] && !(typeof data['unit'] === 'string' || data['unit'] instanceof String)) { - throw new Error("Expected the field `unit` to be a primitive type in the JSON string but got " + data['unit']); - } - - return true; - } - - -} - -AvailablePropertiesInner1AttractionListInnerDistance.RequiredProperties = ["value", "unit"]; - -/** - * The numeric value of the distance. - * @member {Number} value - */ -AvailablePropertiesInner1AttractionListInnerDistance.prototype['value'] = undefined; - -/** - * The unit of the value of the distance. - * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance.UnitEnum} unit - */ -AvailablePropertiesInner1AttractionListInnerDistance.prototype['unit'] = undefined; - - - - - -/** - * Allowed values for the unit property. - * @enum {String} - * @readonly - */ -AvailablePropertiesInner1AttractionListInnerDistance['UnitEnum'] = { - - /** - * value: "m" - * @const - */ - "m": "m", - - /** - * value: "ft" - * @const - */ - "ft": "ft" -}; - - - -export default AvailablePropertiesInner1AttractionListInnerDistance; - diff --git a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1Geo.js b/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1Geo.js deleted file mode 100644 index 633da10..0000000 --- a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1Geo.js +++ /dev/null @@ -1,613 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import AvailablePropertiesInner1GeoLocation from './AvailablePropertiesInner1GeoLocation'; - -/** - * The AvailablePropertiesInner1Geo model module. - * @module com.lodgea/com.lodgea.model/AvailablePropertiesInner1Geo - * @version 1.1.5 - */ -class AvailablePropertiesInner1Geo { - /** - * Constructs a new AvailablePropertiesInner1Geo. - * A geographical information set describing the location of this property.<br><br>See also <a href=\"#locationtypes\">in the appendix</a>. - * @alias module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1Geo - * @param language {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1Geo.LanguageEnum} 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.

- * @param formattedAddress {String} The formatted address in the local format of the properties location. - * @param location {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1GeoLocation} - * @param placeId {String} Uniquely identifies a place in our database. - */ - constructor(language, formattedAddress, location, placeId) { - - AvailablePropertiesInner1Geo.initialize(this, language, formattedAddress, location, placeId); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, language, formattedAddress, location, placeId) { - obj['language'] = language; - obj['formatted_address'] = formattedAddress; - obj['location'] = location; - obj['place_id'] = placeId; - } - - /** - * Constructs a AvailablePropertiesInner1Geo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1Geo} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1Geo} The populated AvailablePropertiesInner1Geo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AvailablePropertiesInner1Geo(); - - if (data.hasOwnProperty('language')) { - obj['language'] = ApiClient.convertToType(data['language'], 'String'); - } - if (data.hasOwnProperty('formatted_address')) { - obj['formatted_address'] = ApiClient.convertToType(data['formatted_address'], 'String'); - } - if (data.hasOwnProperty('route')) { - obj['route'] = ApiClient.convertToType(data['route'], 'String'); - } - if (data.hasOwnProperty('street_number')) { - obj['street_number'] = ApiClient.convertToType(data['street_number'], 'String'); - } - if (data.hasOwnProperty('postal_code')) { - obj['postal_code'] = ApiClient.convertToType(data['postal_code'], 'String'); - } - if (data.hasOwnProperty('locality')) { - obj['locality'] = ApiClient.convertToType(data['locality'], 'String'); - } - if (data.hasOwnProperty('sublocality')) { - obj['sublocality'] = ApiClient.convertToType(data['sublocality'], 'String'); - } - if (data.hasOwnProperty('sublocality_level_1')) { - obj['sublocality_level_1'] = ApiClient.convertToType(data['sublocality_level_1'], 'String'); - } - if (data.hasOwnProperty('sublocality_level_2')) { - obj['sublocality_level_2'] = ApiClient.convertToType(data['sublocality_level_2'], 'String'); - } - if (data.hasOwnProperty('sublocality_level_3')) { - obj['sublocality_level_3'] = ApiClient.convertToType(data['sublocality_level_3'], 'String'); - } - if (data.hasOwnProperty('sublocality_level_4')) { - obj['sublocality_level_4'] = ApiClient.convertToType(data['sublocality_level_4'], 'String'); - } - if (data.hasOwnProperty('sublocality_level_5')) { - obj['sublocality_level_5'] = ApiClient.convertToType(data['sublocality_level_5'], 'String'); - } - if (data.hasOwnProperty('administrative_area_level_1')) { - obj['administrative_area_level_1'] = ApiClient.convertToType(data['administrative_area_level_1'], 'String'); - } - if (data.hasOwnProperty('administrative_area_level_2')) { - obj['administrative_area_level_2'] = ApiClient.convertToType(data['administrative_area_level_2'], 'String'); - } - if (data.hasOwnProperty('administrative_area_level_3')) { - obj['administrative_area_level_3'] = ApiClient.convertToType(data['administrative_area_level_3'], 'String'); - } - if (data.hasOwnProperty('administrative_area_level_4')) { - obj['administrative_area_level_4'] = ApiClient.convertToType(data['administrative_area_level_4'], 'String'); - } - if (data.hasOwnProperty('administrative_area_level_5')) { - obj['administrative_area_level_5'] = ApiClient.convertToType(data['administrative_area_level_5'], 'String'); - } - if (data.hasOwnProperty('state_code')) { - obj['state_code'] = ApiClient.convertToType(data['state_code'], 'String'); - } - if (data.hasOwnProperty('country')) { - obj['country'] = ApiClient.convertToType(data['country'], 'String'); - } - if (data.hasOwnProperty('country_code')) { - obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String'); - } - if (data.hasOwnProperty('location')) { - obj['location'] = AvailablePropertiesInner1GeoLocation.constructFromObject(data['location']); - } - if (data.hasOwnProperty('place_id')) { - obj['place_id'] = ApiClient.convertToType(data['place_id'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to AvailablePropertiesInner1Geo. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to AvailablePropertiesInner1Geo. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of AvailablePropertiesInner1Geo.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['language'] && !(typeof data['language'] === 'string' || data['language'] instanceof String)) { - throw new Error("Expected the field `language` to be a primitive type in the JSON string but got " + data['language']); - } - // ensure the json data is a string - if (data['formatted_address'] && !(typeof data['formatted_address'] === 'string' || data['formatted_address'] instanceof String)) { - throw new Error("Expected the field `formatted_address` to be a primitive type in the JSON string but got " + data['formatted_address']); - } - // ensure the json data is a string - if (data['route'] && !(typeof data['route'] === 'string' || data['route'] instanceof String)) { - throw new Error("Expected the field `route` to be a primitive type in the JSON string but got " + data['route']); - } - // ensure the json data is a string - if (data['street_number'] && !(typeof data['street_number'] === 'string' || data['street_number'] instanceof String)) { - throw new Error("Expected the field `street_number` to be a primitive type in the JSON string but got " + data['street_number']); - } - // ensure the json data is a string - if (data['postal_code'] && !(typeof data['postal_code'] === 'string' || data['postal_code'] instanceof String)) { - throw new Error("Expected the field `postal_code` to be a primitive type in the JSON string but got " + data['postal_code']); - } - // ensure the json data is a string - if (data['locality'] && !(typeof data['locality'] === 'string' || data['locality'] instanceof String)) { - throw new Error("Expected the field `locality` to be a primitive type in the JSON string but got " + data['locality']); - } - // ensure the json data is a string - if (data['sublocality'] && !(typeof data['sublocality'] === 'string' || data['sublocality'] instanceof String)) { - throw new Error("Expected the field `sublocality` to be a primitive type in the JSON string but got " + data['sublocality']); - } - // ensure the json data is a string - if (data['sublocality_level_1'] && !(typeof data['sublocality_level_1'] === 'string' || data['sublocality_level_1'] instanceof String)) { - throw new Error("Expected the field `sublocality_level_1` to be a primitive type in the JSON string but got " + data['sublocality_level_1']); - } - // ensure the json data is a string - if (data['sublocality_level_2'] && !(typeof data['sublocality_level_2'] === 'string' || data['sublocality_level_2'] instanceof String)) { - throw new Error("Expected the field `sublocality_level_2` to be a primitive type in the JSON string but got " + data['sublocality_level_2']); - } - // ensure the json data is a string - if (data['sublocality_level_3'] && !(typeof data['sublocality_level_3'] === 'string' || data['sublocality_level_3'] instanceof String)) { - throw new Error("Expected the field `sublocality_level_3` to be a primitive type in the JSON string but got " + data['sublocality_level_3']); - } - // ensure the json data is a string - if (data['sublocality_level_4'] && !(typeof data['sublocality_level_4'] === 'string' || data['sublocality_level_4'] instanceof String)) { - throw new Error("Expected the field `sublocality_level_4` to be a primitive type in the JSON string but got " + data['sublocality_level_4']); - } - // ensure the json data is a string - if (data['sublocality_level_5'] && !(typeof data['sublocality_level_5'] === 'string' || data['sublocality_level_5'] instanceof String)) { - throw new Error("Expected the field `sublocality_level_5` to be a primitive type in the JSON string but got " + data['sublocality_level_5']); - } - // ensure the json data is a string - if (data['administrative_area_level_1'] && !(typeof data['administrative_area_level_1'] === 'string' || data['administrative_area_level_1'] instanceof String)) { - throw new Error("Expected the field `administrative_area_level_1` to be a primitive type in the JSON string but got " + data['administrative_area_level_1']); - } - // ensure the json data is a string - if (data['administrative_area_level_2'] && !(typeof data['administrative_area_level_2'] === 'string' || data['administrative_area_level_2'] instanceof String)) { - throw new Error("Expected the field `administrative_area_level_2` to be a primitive type in the JSON string but got " + data['administrative_area_level_2']); - } - // ensure the json data is a string - if (data['administrative_area_level_3'] && !(typeof data['administrative_area_level_3'] === 'string' || data['administrative_area_level_3'] instanceof String)) { - throw new Error("Expected the field `administrative_area_level_3` to be a primitive type in the JSON string but got " + data['administrative_area_level_3']); - } - // ensure the json data is a string - if (data['administrative_area_level_4'] && !(typeof data['administrative_area_level_4'] === 'string' || data['administrative_area_level_4'] instanceof String)) { - throw new Error("Expected the field `administrative_area_level_4` to be a primitive type in the JSON string but got " + data['administrative_area_level_4']); - } - // ensure the json data is a string - if (data['administrative_area_level_5'] && !(typeof data['administrative_area_level_5'] === 'string' || data['administrative_area_level_5'] instanceof String)) { - throw new Error("Expected the field `administrative_area_level_5` to be a primitive type in the JSON string but got " + data['administrative_area_level_5']); - } - // ensure the json data is a string - if (data['state_code'] && !(typeof data['state_code'] === 'string' || data['state_code'] instanceof String)) { - throw new Error("Expected the field `state_code` to be a primitive type in the JSON string but got " + data['state_code']); - } - // ensure the json data is a string - if (data['country'] && !(typeof data['country'] === 'string' || data['country'] instanceof String)) { - throw new Error("Expected the field `country` to be a primitive type in the JSON string but got " + data['country']); - } - // ensure the json data is a string - if (data['country_code'] && !(typeof data['country_code'] === 'string' || data['country_code'] instanceof String)) { - throw new Error("Expected the field `country_code` to be a primitive type in the JSON string but got " + data['country_code']); - } - // validate the optional field `location` - if (data['location']) { // data not null - AvailablePropertiesInner1GeoLocation.validateJSON(data['location']); - } - // ensure the json data is a string - if (data['place_id'] && !(typeof data['place_id'] === 'string' || data['place_id'] instanceof String)) { - throw new Error("Expected the field `place_id` to be a primitive type in the JSON string but got " + data['place_id']); - } - - return true; - } - - -} - -AvailablePropertiesInner1Geo.RequiredProperties = ["language", "formatted_address", "location", "place_id"]; - -/** - * 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.

- * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1Geo.LanguageEnum} language - */ -AvailablePropertiesInner1Geo.prototype['language'] = undefined; - -/** - * The formatted address in the local format of the properties location. - * @member {String} formatted_address - */ -AvailablePropertiesInner1Geo.prototype['formatted_address'] = undefined; - -/** - * The name of the route or street. - * @member {String} route - */ -AvailablePropertiesInner1Geo.prototype['route'] = undefined; - -/** - * The number of the street. - * @member {String} street_number - */ -AvailablePropertiesInner1Geo.prototype['street_number'] = undefined; - -/** - * The postal code of the location. - * @member {String} postal_code - */ -AvailablePropertiesInner1Geo.prototype['postal_code'] = undefined; - -/** - * A city or town. - * @member {String} locality - */ -AvailablePropertiesInner1Geo.prototype['locality'] = undefined; - -/** - * A smaller area within a locality. - * @member {String} sublocality - */ -AvailablePropertiesInner1Geo.prototype['sublocality'] = undefined; - -/** - * A smaller area within a locality at level 1. - * @member {String} sublocality_level_1 - */ -AvailablePropertiesInner1Geo.prototype['sublocality_level_1'] = undefined; - -/** - * A smaller area within a locality at level 2. - * @member {String} sublocality_level_2 - */ -AvailablePropertiesInner1Geo.prototype['sublocality_level_2'] = undefined; - -/** - * A smaller area within a locality at level 3. - * @member {String} sublocality_level_3 - */ -AvailablePropertiesInner1Geo.prototype['sublocality_level_3'] = undefined; - -/** - * A smaller area within a locality at level 4. - * @member {String} sublocality_level_4 - */ -AvailablePropertiesInner1Geo.prototype['sublocality_level_4'] = undefined; - -/** - * A smaller area within a locality at level 5. - * @member {String} sublocality_level_5 - */ -AvailablePropertiesInner1Geo.prototype['sublocality_level_5'] = undefined; - -/** - * A level 1 administrative area, such as a state or province. - * @member {String} administrative_area_level_1 - */ -AvailablePropertiesInner1Geo.prototype['administrative_area_level_1'] = undefined; - -/** - * A level 2 administrative area. - * @member {String} administrative_area_level_2 - */ -AvailablePropertiesInner1Geo.prototype['administrative_area_level_2'] = undefined; - -/** - * A level 3 administrative area - * @member {String} administrative_area_level_3 - */ -AvailablePropertiesInner1Geo.prototype['administrative_area_level_3'] = undefined; - -/** - * A level 4 administrative area. - * @member {String} administrative_area_level_4 - */ -AvailablePropertiesInner1Geo.prototype['administrative_area_level_4'] = undefined; - -/** - * A level 5 administrative area - * @member {String} administrative_area_level_5 - */ -AvailablePropertiesInner1Geo.prototype['administrative_area_level_5'] = undefined; - -/** - * The state or province code for the administrative area. - * @member {String} state_code - */ -AvailablePropertiesInner1Geo.prototype['state_code'] = undefined; - -/** - * The country of this geographical information set. - * @member {String} country - */ -AvailablePropertiesInner1Geo.prototype['country'] = undefined; - -/** - * The country code for the country. - * @member {String} country_code - */ -AvailablePropertiesInner1Geo.prototype['country_code'] = undefined; - -/** - * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1GeoLocation} location - */ -AvailablePropertiesInner1Geo.prototype['location'] = undefined; - -/** - * Uniquely identifies a place in our database. - * @member {String} place_id - */ -AvailablePropertiesInner1Geo.prototype['place_id'] = undefined; - - - - - -/** - * Allowed values for the language property. - * @enum {String} - * @readonly - */ -AvailablePropertiesInner1Geo['LanguageEnum'] = { - - /** - * value: "af" - * @const - */ - "af": "af", - - /** - * value: "ar" - * @const - */ - "ar": "ar", - - /** - * value: "bg" - * @const - */ - "bg": "bg", - - /** - * value: "ca" - * @const - */ - "ca": "ca", - - /** - * value: "cs" - * @const - */ - "cs": "cs", - - /** - * value: "da" - * @const - */ - "da": "da", - - /** - * value: "de" - * @const - */ - "de": "de", - - /** - * value: "el" - * @const - */ - "el": "el", - - /** - * value: "en" - * @const - */ - "en": "en", - - /** - * value: "es" - * @const - */ - "es": "es", - - /** - * value: "et" - * @const - */ - "et": "et", - - /** - * value: "fi" - * @const - */ - "fi": "fi", - - /** - * value: "fr" - * @const - */ - "fr": "fr", - - /** - * value: "he" - * @const - */ - "he": "he", - - /** - * value: "hi" - * @const - */ - "hi": "hi", - - /** - * value: "hr" - * @const - */ - "hr": "hr", - - /** - * value: "hu" - * @const - */ - "hu": "hu", - - /** - * value: "id" - * @const - */ - "id": "id", - - /** - * value: "is" - * @const - */ - "is": "is", - - /** - * value: "it" - * @const - */ - "it": "it", - - /** - * value: "ja" - * @const - */ - "ja": "ja", - - /** - * value: "ko" - * @const - */ - "ko": "ko", - - /** - * value: "lt" - * @const - */ - "lt": "lt", - - /** - * value: "lv" - * @const - */ - "lv": "lv", - - /** - * value: "nl" - * @const - */ - "nl": "nl", - - /** - * value: "no" - * @const - */ - "no": "no", - - /** - * value: "pl" - * @const - */ - "pl": "pl", - - /** - * value: "pt" - * @const - */ - "pt": "pt", - - /** - * value: "ro" - * @const - */ - "ro": "ro", - - /** - * value: "ru" - * @const - */ - "ru": "ru", - - /** - * value: "sk" - * @const - */ - "sk": "sk", - - /** - * value: "sl" - * @const - */ - "sl": "sl", - - /** - * value: "sr" - * @const - */ - "sr": "sr", - - /** - * value: "sv" - * @const - */ - "sv": "sv", - - /** - * value: "th" - * @const - */ - "th": "th", - - /** - * value: "tr" - * @const - */ - "tr": "tr", - - /** - * value: "vi" - * @const - */ - "vi": "vi", - - /** - * value: "zh" - * @const - */ - "zh": "zh" -}; - - - -export default AvailablePropertiesInner1Geo; - diff --git a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1GeoLocation.js b/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1GeoLocation.js deleted file mode 100644 index bbe313a..0000000 --- a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1GeoLocation.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AvailablePropertiesInner1GeoLocation model module. - * @module com.lodgea/com.lodgea.model/AvailablePropertiesInner1GeoLocation - * @version 1.1.5 - */ -class AvailablePropertiesInner1GeoLocation { - /** - * Constructs a new AvailablePropertiesInner1GeoLocation. - * @alias module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1GeoLocation - * @param lng {Number} The longitude coordinate of the location. - * @param lat {Number} The location of the property as coordinates - */ - constructor(lng, lat) { - - AvailablePropertiesInner1GeoLocation.initialize(this, lng, lat); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, lng, lat) { - obj['lng'] = lng; - obj['lat'] = lat; - } - - /** - * Constructs a AvailablePropertiesInner1GeoLocation from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1GeoLocation} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1GeoLocation} The populated AvailablePropertiesInner1GeoLocation instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AvailablePropertiesInner1GeoLocation(); - - if (data.hasOwnProperty('lng')) { - obj['lng'] = ApiClient.convertToType(data['lng'], 'Number'); - } - if (data.hasOwnProperty('lat')) { - obj['lat'] = ApiClient.convertToType(data['lat'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to AvailablePropertiesInner1GeoLocation. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to AvailablePropertiesInner1GeoLocation. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of AvailablePropertiesInner1GeoLocation.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - - return true; - } - - -} - -AvailablePropertiesInner1GeoLocation.RequiredProperties = ["lng", "lat"]; - -/** - * The longitude coordinate of the location. - * @member {Number} lng - */ -AvailablePropertiesInner1GeoLocation.prototype['lng'] = undefined; - -/** - * The location of the property as coordinates - * @member {Number} lat - */ -AvailablePropertiesInner1GeoLocation.prototype['lat'] = undefined; - - - - - - -export default AvailablePropertiesInner1GeoLocation; - diff --git a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice.js b/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice.js deleted file mode 100644 index 2971930..0000000 --- a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice.js +++ /dev/null @@ -1,450 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The AvailablePropertiesInner1LowestPrice model module. - * @module com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice - * @version 1.1.5 - */ -class AvailablePropertiesInner1LowestPrice { - /** - * Constructs a new AvailablePropertiesInner1LowestPrice. - * An object outlining the stay with the lowest available price point for this property. - * @alias module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice - * @param amount {Number} The amount of the lowest price. - * @param currencyCode {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice.CurrencyCodeEnum} The currency code for the given amount.

See also in the appendix.

- * @param arrivalDate {Number} Arrival date for the given price as unix timestamp (seconds). - * @param returnDate {Number} Departure date for the given price as unix timestamp (seconds). - * @param lengthOfStay {Number} The amount of nights of stay this price is for - */ - constructor(amount, currencyCode, arrivalDate, returnDate, lengthOfStay) { - - AvailablePropertiesInner1LowestPrice.initialize(this, amount, currencyCode, arrivalDate, returnDate, lengthOfStay); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, amount, currencyCode, arrivalDate, returnDate, lengthOfStay) { - obj['amount'] = amount; - obj['currencyCode'] = currencyCode; - obj['arrivalDate'] = arrivalDate; - obj['returnDate'] = returnDate; - obj['lengthOfStay'] = lengthOfStay; - } - - /** - * Constructs a AvailablePropertiesInner1LowestPrice from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice} The populated AvailablePropertiesInner1LowestPrice instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new AvailablePropertiesInner1LowestPrice(); - - if (data.hasOwnProperty('amount')) { - obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); - } - if (data.hasOwnProperty('currencyCode')) { - obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); - } - if (data.hasOwnProperty('arrivalDate')) { - obj['arrivalDate'] = ApiClient.convertToType(data['arrivalDate'], 'Number'); - } - if (data.hasOwnProperty('returnDate')) { - obj['returnDate'] = ApiClient.convertToType(data['returnDate'], 'Number'); - } - if (data.hasOwnProperty('lengthOfStay')) { - obj['lengthOfStay'] = ApiClient.convertToType(data['lengthOfStay'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to AvailablePropertiesInner1LowestPrice. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to AvailablePropertiesInner1LowestPrice. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of AvailablePropertiesInner1LowestPrice.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['currencyCode'] && !(typeof data['currencyCode'] === 'string' || data['currencyCode'] instanceof String)) { - throw new Error("Expected the field `currencyCode` to be a primitive type in the JSON string but got " + data['currencyCode']); - } - - return true; - } - - -} - -AvailablePropertiesInner1LowestPrice.RequiredProperties = ["amount", "currencyCode", "arrivalDate", "returnDate", "lengthOfStay"]; - -/** - * The amount of the lowest price. - * @member {Number} amount - */ -AvailablePropertiesInner1LowestPrice.prototype['amount'] = undefined; - -/** - * The currency code for the given amount.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice.CurrencyCodeEnum} currencyCode - */ -AvailablePropertiesInner1LowestPrice.prototype['currencyCode'] = undefined; - -/** - * Arrival date for the given price as unix timestamp (seconds). - * @member {Number} arrivalDate - */ -AvailablePropertiesInner1LowestPrice.prototype['arrivalDate'] = undefined; - -/** - * Departure date for the given price as unix timestamp (seconds). - * @member {Number} returnDate - */ -AvailablePropertiesInner1LowestPrice.prototype['returnDate'] = undefined; - -/** - * The amount of nights of stay this price is for - * @member {Number} lengthOfStay - */ -AvailablePropertiesInner1LowestPrice.prototype['lengthOfStay'] = undefined; - - - - - -/** - * Allowed values for the currencyCode property. - * @enum {String} - * @readonly - */ -AvailablePropertiesInner1LowestPrice['CurrencyCodeEnum'] = { - - /** - * value: "AED" - * @const - */ - "AED": "AED", - - /** - * value: "ARS" - * @const - */ - "ARS": "ARS", - - /** - * value: "AUD" - * @const - */ - "AUD": "AUD", - - /** - * value: "AZN" - * @const - */ - "AZN": "AZN", - - /** - * value: "BGN" - * @const - */ - "BGN": "BGN", - - /** - * value: "BHD" - * @const - */ - "BHD": "BHD", - - /** - * value: "BRL" - * @const - */ - "BRL": "BRL", - - /** - * value: "CAD" - * @const - */ - "CAD": "CAD", - - /** - * value: "CHF" - * @const - */ - "CHF": "CHF", - - /** - * value: "CLP" - * @const - */ - "CLP": "CLP", - - /** - * value: "CNY" - * @const - */ - "CNY": "CNY", - - /** - * value: "COP" - * @const - */ - "COP": "COP", - - /** - * value: "CZK" - * @const - */ - "CZK": "CZK", - - /** - * value: "DKK" - * @const - */ - "DKK": "DKK", - - /** - * value: "EGP" - * @const - */ - "EGP": "EGP", - - /** - * value: "EUR" - * @const - */ - "EUR": "EUR", - - /** - * value: "FJD" - * @const - */ - "FJD": "FJD", - - /** - * value: "GBP" - * @const - */ - "GBP": "GBP", - - /** - * value: "GEL" - * @const - */ - "GEL": "GEL", - - /** - * value: "HKD" - * @const - */ - "HKD": "HKD", - - /** - * value: "HUF" - * @const - */ - "HUF": "HUF", - - /** - * value: "IDR" - * @const - */ - "IDR": "IDR", - - /** - * value: "ILS" - * @const - */ - "ILS": "ILS", - - /** - * value: "INR" - * @const - */ - "INR": "INR", - - /** - * value: "JOD" - * @const - */ - "JOD": "JOD", - - /** - * value: "JPY" - * @const - */ - "JPY": "JPY", - - /** - * value: "KRW" - * @const - */ - "KRW": "KRW", - - /** - * value: "KWD" - * @const - */ - "KWD": "KWD", - - /** - * value: "KZT" - * @const - */ - "KZT": "KZT", - - /** - * value: "MDL" - * @const - */ - "MDL": "MDL", - - /** - * value: "MXN" - * @const - */ - "MXN": "MXN", - - /** - * value: "MYR" - * @const - */ - "MYR": "MYR", - - /** - * value: "NAD" - * @const - */ - "NAD": "NAD", - - /** - * value: "NOK" - * @const - */ - "NOK": "NOK", - - /** - * value: "NZD" - * @const - */ - "NZD": "NZD", - - /** - * value: "OMR" - * @const - */ - "OMR": "OMR", - - /** - * value: "PLN" - * @const - */ - "PLN": "PLN", - - /** - * value: "QAR" - * @const - */ - "QAR": "QAR", - - /** - * value: "RON" - * @const - */ - "RON": "RON", - - /** - * value: "RUB" - * @const - */ - "RUB": "RUB", - - /** - * value: "SAR" - * @const - */ - "SAR": "SAR", - - /** - * value: "SEK" - * @const - */ - "SEK": "SEK", - - /** - * value: "SGD" - * @const - */ - "SGD": "SGD", - - /** - * value: "THB" - * @const - */ - "THB": "THB", - - /** - * value: "TRY" - * @const - */ - "TRY": "TRY", - - /** - * value: "TWD" - * @const - */ - "TWD": "TWD", - - /** - * value: "UAH" - * @const - */ - "UAH": "UAH", - - /** - * value: "USD" - * @const - */ - "USD": "USD", - - /** - * value: "XOF" - * @const - */ - "XOF": "XOF", - - /** - * value: "ZAR" - * @const - */ - "ZAR": "ZAR" -}; - - - -export default AvailablePropertiesInner1LowestPrice; - diff --git a/src/com.lodgea/com.lodgea.model/LocationSearchPostRequest.js b/src/com.lodgea/com.lodgea.model/InlineObject.js similarity index 68% rename from src/com.lodgea/com.lodgea.model/LocationSearchPostRequest.js rename to src/com.lodgea/com.lodgea.model/InlineObject.js index 2070207..23acf4b 100644 --- a/src/com.lodgea/com.lodgea.model/LocationSearchPostRequest.js +++ b/src/com.lodgea/com.lodgea.model/InlineObject.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,21 +14,21 @@ import ApiClient from '../ApiClient'; /** - * The LocationSearchPostRequest model module. - * @module com.lodgea/com.lodgea.model/LocationSearchPostRequest - * @version 1.1.5 + * The InlineObject model module. + * @module com.lodgea/com.lodgea.model/InlineObject + * @version 1.2.0 */ -class LocationSearchPostRequest { +class InlineObject { /** - * Constructs a new LocationSearchPostRequest. - * @alias module:com.lodgea/com.lodgea.model/LocationSearchPostRequest + * Constructs a new InlineObject. + * @alias module:com.lodgea/com.lodgea.model/InlineObject * @param searchText {String} A search text in free form to search locations by. - * @param currencyCode {module:com.lodgea/com.lodgea.model/LocationSearchPostRequest.CurrencyCodeEnum} The currency code of the currency in which the lowest price for each found location should be returned.

See also in the appendix.

- * @param languageCode {module:com.lodgea/com.lodgea.model/LocationSearchPostRequest.LanguageCodeEnum} 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.

+ * @param currencyCode {module:com.lodgea/com.lodgea.model/InlineObject.CurrencyCodeEnum} The currency code of the currency in which the lowest price for each found location should be returned.

See also in the appendix.

+ * @param languageCode {module:com.lodgea/com.lodgea.model/InlineObject.LanguageCodeEnum} 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.

*/ constructor(searchText, currencyCode, languageCode) { - LocationSearchPostRequest.initialize(this, searchText, currencyCode, languageCode); + InlineObject.initialize(this, searchText, currencyCode, languageCode); } /** @@ -43,15 +43,15 @@ class LocationSearchPostRequest { } /** - * Constructs a LocationSearchPostRequest from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineObject from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/LocationSearchPostRequest} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/LocationSearchPostRequest} The populated LocationSearchPostRequest instance. + * @param {module:com.lodgea/com.lodgea.model/InlineObject} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineObject} The populated InlineObject instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new LocationSearchPostRequest(); + obj = obj || new InlineObject(); if (data.hasOwnProperty('searchText')) { obj['searchText'] = ApiClient.convertToType(data['searchText'], 'String'); @@ -66,56 +66,26 @@ class LocationSearchPostRequest { return obj; } - /** - * Validates the JSON data with respect to LocationSearchPostRequest. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to LocationSearchPostRequest. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of LocationSearchPostRequest.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['searchText'] && !(typeof data['searchText'] === 'string' || data['searchText'] instanceof String)) { - throw new Error("Expected the field `searchText` to be a primitive type in the JSON string but got " + data['searchText']); - } - // ensure the json data is a string - if (data['currencyCode'] && !(typeof data['currencyCode'] === 'string' || data['currencyCode'] instanceof String)) { - throw new Error("Expected the field `currencyCode` to be a primitive type in the JSON string but got " + data['currencyCode']); - } - // ensure the json data is a string - if (data['languageCode'] && !(typeof data['languageCode'] === 'string' || data['languageCode'] instanceof String)) { - throw new Error("Expected the field `languageCode` to be a primitive type in the JSON string but got " + data['languageCode']); - } - - return true; - } - } -LocationSearchPostRequest.RequiredProperties = ["searchText", "currencyCode", "languageCode"]; - /** * A search text in free form to search locations by. * @member {String} searchText */ -LocationSearchPostRequest.prototype['searchText'] = undefined; +InlineObject.prototype['searchText'] = undefined; /** * The currency code of the currency in which the lowest price for each found location should be returned.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/LocationSearchPostRequest.CurrencyCodeEnum} currencyCode + * @member {module:com.lodgea/com.lodgea.model/InlineObject.CurrencyCodeEnum} currencyCode */ -LocationSearchPostRequest.prototype['currencyCode'] = undefined; +InlineObject.prototype['currencyCode'] = undefined; /** * 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.

- * @member {module:com.lodgea/com.lodgea.model/LocationSearchPostRequest.LanguageCodeEnum} languageCode + * @member {module:com.lodgea/com.lodgea.model/InlineObject.LanguageCodeEnum} languageCode */ -LocationSearchPostRequest.prototype['languageCode'] = undefined; +InlineObject.prototype['languageCode'] = undefined; @@ -126,7 +96,7 @@ LocationSearchPostRequest.prototype['languageCode'] = undefined; * @enum {String} * @readonly */ -LocationSearchPostRequest['CurrencyCodeEnum'] = { +InlineObject['CurrencyCodeEnum'] = { /** * value: "AED" @@ -435,7 +405,7 @@ LocationSearchPostRequest['CurrencyCodeEnum'] = { * @enum {String} * @readonly */ -LocationSearchPostRequest['LanguageCodeEnum'] = { +InlineObject['LanguageCodeEnum'] = { /** * value: "af" @@ -668,5 +638,5 @@ LocationSearchPostRequest['LanguageCodeEnum'] = { -export default LocationSearchPostRequest; +export default InlineObject; diff --git a/src/com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest.js b/src/com.lodgea/com.lodgea.model/InlineObject1.js similarity index 81% rename from src/com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest.js rename to src/com.lodgea/com.lodgea.model/InlineObject1.js index aad9ea5..bca0555 100644 --- a/src/com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest.js +++ b/src/com.lodgea/com.lodgea.model/InlineObject1.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,20 +14,20 @@ import ApiClient from '../ApiClient'; /** - * The AvailabilitySearchPostRequest model module. - * @module com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest - * @version 1.1.5 + * The InlineObject1 model module. + * @module com.lodgea/com.lodgea.model/InlineObject1 + * @version 1.2.0 */ -class AvailabilitySearchPostRequest { +class InlineObject1 { /** - * Constructs a new AvailabilitySearchPostRequest. - * @alias module:com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest - * @param currencyCode {module:com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest.CurrencyCodeEnum} The currency code of the currency in which the lowest price for each found location should be returned.

See also in the appendix.

- * @param languageCode {module:com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest.LanguageCodeEnum} 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.

+ * Constructs a new InlineObject1. + * @alias module:com.lodgea/com.lodgea.model/InlineObject1 + * @param currencyCode {String} The currency code of the currency in which the lowest price for each found location should be returned.

See also in the appendix.

+ * @param languageCode {String} 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.

*/ constructor(currencyCode, languageCode) { - AvailabilitySearchPostRequest.initialize(this, currencyCode, languageCode); + InlineObject1.initialize(this, currencyCode, languageCode); } /** @@ -41,15 +41,15 @@ class AvailabilitySearchPostRequest { } /** - * Constructs a AvailabilitySearchPostRequest from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineObject1 from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest} The populated AvailabilitySearchPostRequest instance. + * @param {module:com.lodgea/com.lodgea.model/InlineObject1} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineObject1} The populated InlineObject1 instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new AvailabilitySearchPostRequest(); + obj = obj || new InlineObject1(); if (data.hasOwnProperty('adultCount')) { obj['adultCount'] = ApiClient.convertToType(data['adultCount'], 'Number'); @@ -109,741 +109,121 @@ class AvailabilitySearchPostRequest { return obj; } - /** - * Validates the JSON data with respect to AvailabilitySearchPostRequest. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to AvailabilitySearchPostRequest. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of AvailabilitySearchPostRequest.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is an array - if (!Array.isArray(data['childAgeList'])) { - throw new Error("Expected the field `childAgeList` to be an array in the JSON data but got " + data['childAgeList']); - } - // ensure the json data is a string - if (data['currencyCode'] && !(typeof data['currencyCode'] === 'string' || data['currencyCode'] instanceof String)) { - throw new Error("Expected the field `currencyCode` to be a primitive type in the JSON string but got " + data['currencyCode']); - } - // ensure the json data is a string - if (data['languageCode'] && !(typeof data['languageCode'] === 'string' || data['languageCode'] instanceof String)) { - throw new Error("Expected the field `languageCode` to be a primitive type in the JSON string but got " + data['languageCode']); - } - // ensure the json data is a string - if (data['unitSystem'] && !(typeof data['unitSystem'] === 'string' || data['unitSystem'] instanceof String)) { - throw new Error("Expected the field `unitSystem` to be a primitive type in the JSON string but got " + data['unitSystem']); - } - // ensure the json data is a string - if (data['locationName'] && !(typeof data['locationName'] === 'string' || data['locationName'] instanceof String)) { - throw new Error("Expected the field `locationName` to be a primitive type in the JSON string but got " + data['locationName']); - } - // ensure the json data is a string - if (data['locationType'] && !(typeof data['locationType'] === 'string' || data['locationType'] instanceof String)) { - throw new Error("Expected the field `locationType` to be a primitive type in the JSON string but got " + data['locationType']); - } - // ensure the json data is a string - if (data['earliestArrival'] && !(typeof data['earliestArrival'] === 'string' || data['earliestArrival'] instanceof String)) { - throw new Error("Expected the field `earliestArrival` to be a primitive type in the JSON string but got " + data['earliestArrival']); - } - // ensure the json data is a string - if (data['latestReturn'] && !(typeof data['latestReturn'] === 'string' || data['latestReturn'] instanceof String)) { - throw new Error("Expected the field `latestReturn` to be a primitive type in the JSON string but got " + data['latestReturn']); - } - // ensure the json data is a string - if (data['sort'] && !(typeof data['sort'] === 'string' || data['sort'] instanceof String)) { - throw new Error("Expected the field `sort` to be a primitive type in the JSON string but got " + data['sort']); - } - // ensure the json data is an array - if (!Array.isArray(data['serviceList'])) { - throw new Error("Expected the field `serviceList` to be an array in the JSON data but got " + data['serviceList']); - } - // ensure the json data is an array - if (!Array.isArray(data['typeList'])) { - throw new Error("Expected the field `typeList` to be an array in the JSON data but got " + data['typeList']); - } - // ensure the json data is an array - if (!Array.isArray(data['unitTypeList'])) { - throw new Error("Expected the field `unitTypeList` to be an array in the JSON data but got " + data['unitTypeList']); - } - // ensure the json data is an array - if (!Array.isArray(data['unitAmenityList'])) { - throw new Error("Expected the field `unitAmenityList` to be an array in the JSON data but got " + data['unitAmenityList']); - } - // ensure the json data is an array - if (!Array.isArray(data['mealPlanList'])) { - throw new Error("Expected the field `mealPlanList` to be an array in the JSON data but got " + data['mealPlanList']); - } - - return true; - } - } -AvailabilitySearchPostRequest.RequiredProperties = ["currencyCode", "languageCode"]; - /** * The amount of adults that will stay at the property. * @member {Number} adultCount * @default 2 */ -AvailabilitySearchPostRequest.prototype['adultCount'] = 2; +InlineObject1.prototype['adultCount'] = 2; /** * The amount of children that will stay at the property. * @member {Number} childCount */ -AvailabilitySearchPostRequest.prototype['childCount'] = undefined; +InlineObject1.prototype['childCount'] = undefined; /** * 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. * @member {Array.} childAgeList */ -AvailabilitySearchPostRequest.prototype['childAgeList'] = undefined; +InlineObject1.prototype['childAgeList'] = undefined; /** * The currency code of the currency in which the lowest price for each found location should be returned.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest.CurrencyCodeEnum} currencyCode + * @member {String} currencyCode */ -AvailabilitySearchPostRequest.prototype['currencyCode'] = undefined; +InlineObject1.prototype['currencyCode'] = undefined; /** * 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.

- * @member {module:com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest.LanguageCodeEnum} languageCode + * @member {String} languageCode */ -AvailabilitySearchPostRequest.prototype['languageCode'] = undefined; +InlineObject1.prototype['languageCode'] = undefined; /** * The unit system to use in the result. - * @member {module:com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest.UnitSystemEnum} unitSystem + * @member {module:com.lodgea/com.lodgea.model/InlineObject1.UnitSystemEnum} unitSystem * @default 'metric' */ -AvailabilitySearchPostRequest.prototype['unitSystem'] = 'metric'; +InlineObject1.prototype['unitSystem'] = 'metric'; /** * The desired minimum length of stay in nights. * @member {Number} minLengthOfStay */ -AvailabilitySearchPostRequest.prototype['minLengthOfStay'] = undefined; +InlineObject1.prototype['minLengthOfStay'] = undefined; /** * The desired maximum length of stay in nights. * @member {Number} maxLengthOfStay */ -AvailabilitySearchPostRequest.prototype['maxLengthOfStay'] = undefined; +InlineObject1.prototype['maxLengthOfStay'] = undefined; /** * The name of a location the properties should be located in.If locationType is set, locationName has to bet set as well. * @member {String} locationName */ -AvailabilitySearchPostRequest.prototype['locationName'] = undefined; +InlineObject1.prototype['locationName'] = undefined; /** * Defines the type oflocationName. If locationType is set, locationName has to bet set as well.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest.LocationTypeEnum} locationType + * @member {String} locationType */ -AvailabilitySearchPostRequest.prototype['locationType'] = undefined; +InlineObject1.prototype['locationType'] = undefined; /** * The earliest possible arrival date. Expects exactly the format of \"YYYY-MM-DD\". * @member {String} earliestArrival */ -AvailabilitySearchPostRequest.prototype['earliestArrival'] = undefined; +InlineObject1.prototype['earliestArrival'] = undefined; /** * The latest possible departure date. Expects exactly the format of \"YYYY-MM-DD\". * @member {String} latestReturn */ -AvailabilitySearchPostRequest.prototype['latestReturn'] = undefined; +InlineObject1.prototype['latestReturn'] = undefined; /** * 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.', )} - * @member {module:com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest.SortEnum} sort + * @member {module:com.lodgea/com.lodgea.model/InlineObject1.SortEnum} sort */ -AvailabilitySearchPostRequest.prototype['sort'] = undefined; +InlineObject1.prototype['sort'] = undefined; /** * 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.

- * @member {Array.} serviceList + * @member {Array.} serviceList */ -AvailabilitySearchPostRequest.prototype['serviceList'] = undefined; +InlineObject1.prototype['serviceList'] = undefined; /** * A list of property class type codes specifying the desired property classes. The codes are OR chained.

See also in the appendix.

- * @member {Array.} typeList + * @member {Array.} typeList */ -AvailabilitySearchPostRequest.prototype['typeList'] = undefined; +InlineObject1.prototype['typeList'] = undefined; /** * A list of unit and room type codes indicating which kinds of unit/room type is desired.

See also in the appendix.

- * @member {Array.} unitTypeList + * @member {Array.} unitTypeList */ -AvailabilitySearchPostRequest.prototype['unitTypeList'] = undefined; +InlineObject1.prototype['unitTypeList'] = undefined; /** * A list of room amenity type codes indicating which room level amenities are desired. The codes are AND chained.

See also in the appendix.

- * @member {Array.} unitAmenityList + * @member {Array.} unitAmenityList */ -AvailabilitySearchPostRequest.prototype['unitAmenityList'] = undefined; +InlineObject1.prototype['unitAmenityList'] = undefined; /** * A list of meal plan type codes indicating which kinds of meal plan type is desired.

See also in the appendix.

- * @member {Array.} mealPlanList - */ -AvailabilitySearchPostRequest.prototype['mealPlanList'] = undefined; - - - - - -/** - * Allowed values for the currencyCode property. - * @enum {String} - * @readonly - */ -AvailabilitySearchPostRequest['CurrencyCodeEnum'] = { - - /** - * value: "AED" - * @const - */ - "AED": "AED", - - /** - * value: "ARS" - * @const - */ - "ARS": "ARS", - - /** - * value: "AUD" - * @const - */ - "AUD": "AUD", - - /** - * value: "AZN" - * @const - */ - "AZN": "AZN", - - /** - * value: "BGN" - * @const - */ - "BGN": "BGN", - - /** - * value: "BHD" - * @const - */ - "BHD": "BHD", - - /** - * value: "BRL" - * @const - */ - "BRL": "BRL", - - /** - * value: "CAD" - * @const - */ - "CAD": "CAD", - - /** - * value: "CHF" - * @const - */ - "CHF": "CHF", - - /** - * value: "CLP" - * @const - */ - "CLP": "CLP", - - /** - * value: "CNY" - * @const - */ - "CNY": "CNY", - - /** - * value: "COP" - * @const - */ - "COP": "COP", - - /** - * value: "CZK" - * @const - */ - "CZK": "CZK", - - /** - * value: "DKK" - * @const - */ - "DKK": "DKK", - - /** - * value: "EGP" - * @const - */ - "EGP": "EGP", - - /** - * value: "EUR" - * @const - */ - "EUR": "EUR", - - /** - * value: "FJD" - * @const - */ - "FJD": "FJD", - - /** - * value: "GBP" - * @const - */ - "GBP": "GBP", - - /** - * value: "GEL" - * @const - */ - "GEL": "GEL", - - /** - * value: "HKD" - * @const - */ - "HKD": "HKD", - - /** - * value: "HUF" - * @const - */ - "HUF": "HUF", - - /** - * value: "IDR" - * @const - */ - "IDR": "IDR", - - /** - * value: "ILS" - * @const - */ - "ILS": "ILS", - - /** - * value: "INR" - * @const - */ - "INR": "INR", - - /** - * value: "JOD" - * @const - */ - "JOD": "JOD", - - /** - * value: "JPY" - * @const - */ - "JPY": "JPY", - - /** - * value: "KRW" - * @const - */ - "KRW": "KRW", - - /** - * value: "KWD" - * @const - */ - "KWD": "KWD", - - /** - * value: "KZT" - * @const - */ - "KZT": "KZT", - - /** - * value: "MDL" - * @const - */ - "MDL": "MDL", - - /** - * value: "MXN" - * @const - */ - "MXN": "MXN", - - /** - * value: "MYR" - * @const - */ - "MYR": "MYR", - - /** - * value: "NAD" - * @const - */ - "NAD": "NAD", - - /** - * value: "NOK" - * @const - */ - "NOK": "NOK", - - /** - * value: "NZD" - * @const - */ - "NZD": "NZD", - - /** - * value: "OMR" - * @const - */ - "OMR": "OMR", - - /** - * value: "PLN" - * @const - */ - "PLN": "PLN", - - /** - * value: "QAR" - * @const - */ - "QAR": "QAR", - - /** - * value: "RON" - * @const - */ - "RON": "RON", - - /** - * value: "RUB" - * @const - */ - "RUB": "RUB", - - /** - * value: "SAR" - * @const - */ - "SAR": "SAR", - - /** - * value: "SEK" - * @const - */ - "SEK": "SEK", - - /** - * value: "SGD" - * @const - */ - "SGD": "SGD", - - /** - * value: "THB" - * @const - */ - "THB": "THB", - - /** - * value: "TRY" - * @const - */ - "TRY": "TRY", - - /** - * value: "TWD" - * @const - */ - "TWD": "TWD", - - /** - * value: "UAH" - * @const - */ - "UAH": "UAH", - - /** - * value: "USD" - * @const - */ - "USD": "USD", - - /** - * value: "XOF" - * @const - */ - "XOF": "XOF", - - /** - * value: "ZAR" - * @const - */ - "ZAR": "ZAR" -}; - - -/** - * Allowed values for the languageCode property. - * @enum {String} - * @readonly + * @member {Array.} mealPlanList */ -AvailabilitySearchPostRequest['LanguageCodeEnum'] = { - - /** - * value: "af" - * @const - */ - "af": "af", - - /** - * value: "ar" - * @const - */ - "ar": "ar", - - /** - * value: "bg" - * @const - */ - "bg": "bg", - - /** - * value: "ca" - * @const - */ - "ca": "ca", - - /** - * value: "cs" - * @const - */ - "cs": "cs", - - /** - * value: "da" - * @const - */ - "da": "da", - - /** - * value: "de" - * @const - */ - "de": "de", - - /** - * value: "el" - * @const - */ - "el": "el", - - /** - * value: "en" - * @const - */ - "en": "en", - - /** - * value: "es" - * @const - */ - "es": "es", - - /** - * value: "et" - * @const - */ - "et": "et", - - /** - * value: "fi" - * @const - */ - "fi": "fi", - - /** - * value: "fr" - * @const - */ - "fr": "fr", - - /** - * value: "he" - * @const - */ - "he": "he", - - /** - * value: "hi" - * @const - */ - "hi": "hi", - - /** - * value: "hr" - * @const - */ - "hr": "hr", - - /** - * value: "hu" - * @const - */ - "hu": "hu", - - /** - * value: "id" - * @const - */ - "id": "id", - - /** - * value: "is" - * @const - */ - "is": "is", - - /** - * value: "it" - * @const - */ - "it": "it", - - /** - * value: "ja" - * @const - */ - "ja": "ja", - - /** - * value: "ko" - * @const - */ - "ko": "ko", - - /** - * value: "lt" - * @const - */ - "lt": "lt", - - /** - * value: "lv" - * @const - */ - "lv": "lv", - - /** - * value: "nl" - * @const - */ - "nl": "nl", - - /** - * value: "no" - * @const - */ - "no": "no", - - /** - * value: "pl" - * @const - */ - "pl": "pl", - - /** - * value: "pt" - * @const - */ - "pt": "pt", - - /** - * value: "ro" - * @const - */ - "ro": "ro", - - /** - * value: "ru" - * @const - */ - "ru": "ru", - - /** - * value: "sk" - * @const - */ - "sk": "sk", +InlineObject1.prototype['mealPlanList'] = undefined; - /** - * value: "sl" - * @const - */ - "sl": "sl", - - /** - * value: "sr" - * @const - */ - "sr": "sr", - /** - * value: "sv" - * @const - */ - "sv": "sv", - /** - * value: "th" - * @const - */ - "th": "th", - - /** - * value: "tr" - * @const - */ - "tr": "tr", - - /** - * value: "vi" - * @const - */ - "vi": "vi", - - /** - * value: "zh" - * @const - */ - "zh": "zh" -}; /** @@ -851,7 +231,7 @@ AvailabilitySearchPostRequest['LanguageCodeEnum'] = { * @enum {String} * @readonly */ -AvailabilitySearchPostRequest['UnitSystemEnum'] = { +InlineObject1['UnitSystemEnum'] = { /** * value: "metric" @@ -867,153 +247,12 @@ AvailabilitySearchPostRequest['UnitSystemEnum'] = { }; -/** - * Allowed values for the locationType property. - * @enum {String} - * @readonly - */ -AvailabilitySearchPostRequest['LocationTypeEnum'] = { - - /** - * value: "formatted_address" - * @const - */ - "formatted_address": "formatted_address", - - /** - * value: "place_id" - * @const - */ - "place_id": "place_id", - - /** - * value: "locality" - * @const - */ - "locality": "locality", - - /** - * value: "administrative_area_level_1" - * @const - */ - "administrative_area_level_1": "administrative_area_level_1", - - /** - * value: "administrative_area_level_2" - * @const - */ - "administrative_area_level_2": "administrative_area_level_2", - - /** - * value: "administrative_area_level_3" - * @const - */ - "administrative_area_level_3": "administrative_area_level_3", - - /** - * value: "administrative_area_level_4" - * @const - */ - "administrative_area_level_4": "administrative_area_level_4", - - /** - * value: "administrative_area_level_5" - * @const - */ - "administrative_area_level_5": "administrative_area_level_5", - - /** - * value: "state_code" - * @const - */ - "state_code": "state_code", - - /** - * value: "country" - * @const - */ - "country": "country", - - /** - * value: "country_code" - * @const - */ - "country_code": "country_code", - - /** - * value: "postal_code" - * @const - */ - "postal_code": "postal_code", - - /** - * value: "language" - * @const - */ - "language": "language", - - /** - * value: "natural_feature" - * @const - */ - "natural_feature": "natural_feature", - - /** - * value: "establishment" - * @const - */ - "establishment": "establishment", - - /** - * value: "sublocality" - * @const - */ - "sublocality": "sublocality", - - /** - * value: "sublocality_level_1" - * @const - */ - "sublocality_level_1": "sublocality_level_1", - - /** - * value: "sublocality_level_2" - * @const - */ - "sublocality_level_2": "sublocality_level_2", - - /** - * value: "sublocality_level_3" - * @const - */ - "sublocality_level_3": "sublocality_level_3", - - /** - * value: "sublocality_level_4" - * @const - */ - "sublocality_level_4": "sublocality_level_4", - - /** - * value: "sublocality_level_5" - * @const - */ - "sublocality_level_5": "sublocality_level_5", - - /** - * value: "streetNumber" - * @const - */ - "streetNumber": "streetNumber" -}; - - /** * Allowed values for the sort property. * @enum {String} * @readonly */ -AvailabilitySearchPostRequest['SortEnum'] = { +InlineObject1['SortEnum'] = { /** * value: "quality" @@ -1034,7 +273,7 @@ AvailabilitySearchPostRequest['SortEnum'] = { * @enum {Number} * @readonly */ -AvailabilitySearchPostRequest['ServiceListEnum'] = { +InlineObject1['ServiceListEnum'] = { /** * value: 1 @@ -4205,7 +3444,7 @@ AvailabilitySearchPostRequest['ServiceListEnum'] = { * @enum {Number} * @readonly */ -AvailabilitySearchPostRequest['TypeListEnum'] = { +InlineObject1['TypeListEnum'] = { /** * value: 1 @@ -4646,7 +3885,7 @@ AvailabilitySearchPostRequest['TypeListEnum'] = { * @enum {Number} * @readonly */ -AvailabilitySearchPostRequest['UnitTypeListEnum'] = { +InlineObject1['UnitTypeListEnum'] = { /** * value: 1 @@ -4763,7 +4002,7 @@ AvailabilitySearchPostRequest['UnitTypeListEnum'] = { * @enum {Number} * @readonly */ -AvailabilitySearchPostRequest['UnitAmenityListEnum'] = { +InlineObject1['UnitAmenityListEnum'] = { /** * value: 1 @@ -7604,7 +6843,7 @@ AvailabilitySearchPostRequest['UnitAmenityListEnum'] = { * @enum {Number} * @readonly */ -AvailabilitySearchPostRequest['MealPlanListEnum'] = { +InlineObject1['MealPlanListEnum'] = { /** * value: 0 @@ -7759,5 +6998,5 @@ AvailabilitySearchPostRequest['MealPlanListEnum'] = { -export default AvailabilitySearchPostRequest; +export default InlineObject1; diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse200.js b/src/com.lodgea/com.lodgea.model/InlineResponse200.js new file mode 100644 index 0000000..2598abd --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse200.js @@ -0,0 +1,86 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse200List from './InlineResponse200List'; + +/** + * The InlineResponse200 model module. + * @module com.lodgea/com.lodgea.model/InlineResponse200 + * @version 1.2.0 + */ +class InlineResponse200 { + /** + * Constructs a new InlineResponse200. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse200 + * @param languageCode {String} 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.

+ * @param list {Array.} A list of available properties matching the given criteria. + */ + constructor(languageCode, list) { + + InlineResponse200.initialize(this, languageCode, list); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, languageCode, list) { + obj['languageCode'] = languageCode; + obj['list'] = list; + } + + /** + * Constructs a InlineResponse200 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse200} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse200} The populated InlineResponse200 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse200(); + + if (data.hasOwnProperty('languageCode')) { + obj['languageCode'] = ApiClient.convertToType(data['languageCode'], 'String'); + } + if (data.hasOwnProperty('list')) { + obj['list'] = ApiClient.convertToType(data['list'], [InlineResponse200List]); + } + } + return obj; + } + + +} + +/** + * 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.

+ * @member {String} languageCode + */ +InlineResponse200.prototype['languageCode'] = undefined; + +/** + * A list of available properties matching the given criteria. + * @member {Array.} list + */ +InlineResponse200.prototype['list'] = undefined; + + + + + + +export default InlineResponse200; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2001.js b/src/com.lodgea/com.lodgea.model/InlineResponse2001.js new file mode 100644 index 0000000..7247694 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2001.js @@ -0,0 +1,86 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2001List from './InlineResponse2001List'; + +/** + * The InlineResponse2001 model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2001 + * @version 1.2.0 + */ +class InlineResponse2001 { + /** + * Constructs a new InlineResponse2001. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2001 + * @param languageCode {String} 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.

+ * @param list {Array.} A list of available properties matching the given criteria. + */ + constructor(languageCode, list) { + + InlineResponse2001.initialize(this, languageCode, list); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, languageCode, list) { + obj['languageCode'] = languageCode; + obj['list'] = list; + } + + /** + * Constructs a InlineResponse2001 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2001} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2001} The populated InlineResponse2001 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2001(); + + if (data.hasOwnProperty('languageCode')) { + obj['languageCode'] = ApiClient.convertToType(data['languageCode'], 'String'); + } + if (data.hasOwnProperty('list')) { + obj['list'] = ApiClient.convertToType(data['list'], [InlineResponse2001List]); + } + } + return obj; + } + + +} + +/** + * 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.

+ * @member {String} languageCode + */ +InlineResponse2001.prototype['languageCode'] = undefined; + +/** + * A list of available properties matching the given criteria. + * @member {Array.} list + */ +InlineResponse2001.prototype['list'] = undefined; + + + + + + +export default InlineResponse2001; + diff --git a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInner.js b/src/com.lodgea/com.lodgea.model/InlineResponse2001AttractionList.js similarity index 72% rename from src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInner.js rename to src/com.lodgea/com.lodgea.model/InlineResponse2001AttractionList.js index 6e9cd5b..c232355 100644 --- a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInner.js +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2001AttractionList.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,24 +12,24 @@ */ import ApiClient from '../ApiClient'; -import AvailablePropertiesInner1AttractionListInnerDistance from './AvailablePropertiesInner1AttractionListInnerDistance'; +import InlineResponse2001Distance from './InlineResponse2001Distance'; /** - * The AvailablePropertiesInner1AttractionListInner model module. - * @module com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInner - * @version 1.1.5 + * The InlineResponse2001AttractionList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2001AttractionList + * @version 1.2.0 */ -class AvailablePropertiesInner1AttractionListInner { +class InlineResponse2001AttractionList { /** - * Constructs a new AvailablePropertiesInner1AttractionListInner. - * @alias module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInner - * @param typeCode {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInner.TypeCodeEnum} The code for this attraction type.

See also in the appendix.

+ * Constructs a new InlineResponse2001AttractionList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2001AttractionList + * @param typeCode {module:com.lodgea/com.lodgea.model/InlineResponse2001AttractionList.TypeCodeEnum} The code for this attraction type.

See also in the appendix.

* @param name {String} The name of the attraction. Names are proper nouns and therefore not affected by the given language code. - * @param distance {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance} + * @param distance {module:com.lodgea/com.lodgea.model/InlineResponse2001Distance} */ constructor(typeCode, name, distance) { - AvailablePropertiesInner1AttractionListInner.initialize(this, typeCode, name, distance); + InlineResponse2001AttractionList.initialize(this, typeCode, name, distance); } /** @@ -44,15 +44,15 @@ class AvailablePropertiesInner1AttractionListInner { } /** - * Constructs a AvailablePropertiesInner1AttractionListInner from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineResponse2001AttractionList from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInner} The populated AvailablePropertiesInner1AttractionListInner instance. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2001AttractionList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2001AttractionList} The populated InlineResponse2001AttractionList instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new AvailablePropertiesInner1AttractionListInner(); + obj = obj || new InlineResponse2001AttractionList(); if (data.hasOwnProperty('typeCode')) { obj['typeCode'] = ApiClient.convertToType(data['typeCode'], 'Number'); @@ -61,57 +61,31 @@ class AvailablePropertiesInner1AttractionListInner { obj['name'] = ApiClient.convertToType(data['name'], 'String'); } if (data.hasOwnProperty('distance')) { - obj['distance'] = AvailablePropertiesInner1AttractionListInnerDistance.constructFromObject(data['distance']); + obj['distance'] = InlineResponse2001Distance.constructFromObject(data['distance']); } } return obj; } - /** - * Validates the JSON data with respect to AvailablePropertiesInner1AttractionListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to AvailablePropertiesInner1AttractionListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of AvailablePropertiesInner1AttractionListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { - throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); - } - // validate the optional field `distance` - if (data['distance']) { // data not null - AvailablePropertiesInner1AttractionListInnerDistance.validateJSON(data['distance']); - } - - return true; - } - } -AvailablePropertiesInner1AttractionListInner.RequiredProperties = ["typeCode", "name", "distance"]; - /** * The code for this attraction type.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInner.TypeCodeEnum} typeCode + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2001AttractionList.TypeCodeEnum} typeCode */ -AvailablePropertiesInner1AttractionListInner.prototype['typeCode'] = undefined; +InlineResponse2001AttractionList.prototype['typeCode'] = undefined; /** * The name of the attraction. Names are proper nouns and therefore not affected by the given language code. * @member {String} name */ -AvailablePropertiesInner1AttractionListInner.prototype['name'] = undefined; +InlineResponse2001AttractionList.prototype['name'] = undefined; /** - * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance} distance + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2001Distance} distance */ -AvailablePropertiesInner1AttractionListInner.prototype['distance'] = undefined; +InlineResponse2001AttractionList.prototype['distance'] = undefined; @@ -122,7 +96,7 @@ AvailablePropertiesInner1AttractionListInner.prototype['distance'] = undefined; * @enum {Number} * @readonly */ -AvailablePropertiesInner1AttractionListInner['TypeCodeEnum'] = { +InlineResponse2001AttractionList['TypeCodeEnum'] = { /** * value: 1 @@ -847,5 +821,5 @@ AvailablePropertiesInner1AttractionListInner['TypeCodeEnum'] = { -export default AvailablePropertiesInner1AttractionListInner; +export default InlineResponse2001AttractionList; diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2001Distance.js b/src/com.lodgea/com.lodgea.model/InlineResponse2001Distance.js new file mode 100644 index 0000000..b683398 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2001Distance.js @@ -0,0 +1,107 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2001Distance model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2001Distance + * @version 1.2.0 + */ +class InlineResponse2001Distance { + /** + * Constructs a new InlineResponse2001Distance. + * 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. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2001Distance + * @param value {Number} The numeric value of the distance. + * @param unit {module:com.lodgea/com.lodgea.model/InlineResponse2001Distance.UnitEnum} The unit of the value of the distance. + */ + constructor(value, unit) { + + InlineResponse2001Distance.initialize(this, value, unit); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, value, unit) { + obj['value'] = value; + obj['unit'] = unit; + } + + /** + * Constructs a InlineResponse2001Distance from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2001Distance} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2001Distance} The populated InlineResponse2001Distance instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2001Distance(); + + if (data.hasOwnProperty('value')) { + obj['value'] = ApiClient.convertToType(data['value'], 'Number'); + } + if (data.hasOwnProperty('unit')) { + obj['unit'] = ApiClient.convertToType(data['unit'], 'String'); + } + } + return obj; + } + + +} + +/** + * The numeric value of the distance. + * @member {Number} value + */ +InlineResponse2001Distance.prototype['value'] = undefined; + +/** + * The unit of the value of the distance. + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2001Distance.UnitEnum} unit + */ +InlineResponse2001Distance.prototype['unit'] = undefined; + + + + + +/** + * Allowed values for the unit property. + * @enum {String} + * @readonly + */ +InlineResponse2001Distance['UnitEnum'] = { + + /** + * value: "m" + * @const + */ + "m": "m", + + /** + * value: "ft" + * @const + */ + "ft": "ft" +}; + + + +export default InlineResponse2001Distance; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2001Geo.js b/src/com.lodgea/com.lodgea.model/InlineResponse2001Geo.js new file mode 100644 index 0000000..ad0d568 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2001Geo.js @@ -0,0 +1,270 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2001GeoLocation from './InlineResponse2001GeoLocation'; + +/** + * The InlineResponse2001Geo model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2001Geo + * @version 1.2.0 + */ +class InlineResponse2001Geo { + /** + * Constructs a new InlineResponse2001Geo. + * A geographical information set describing the location of this property.<br><br>See also <a href=\"#locationtypes\">in the appendix</a>. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2001Geo + * @param language {String} 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.

+ * @param formattedAddress {String} The formatted address in the local format of the properties location. + * @param location {module:com.lodgea/com.lodgea.model/InlineResponse2001GeoLocation} + * @param placeId {String} Uniquely identifies a place in our database. + */ + constructor(language, formattedAddress, location, placeId) { + + InlineResponse2001Geo.initialize(this, language, formattedAddress, location, placeId); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, language, formattedAddress, location, placeId) { + obj['language'] = language; + obj['formatted_address'] = formattedAddress; + obj['location'] = location; + obj['place_id'] = placeId; + } + + /** + * Constructs a InlineResponse2001Geo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2001Geo} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2001Geo} The populated InlineResponse2001Geo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2001Geo(); + + if (data.hasOwnProperty('language')) { + obj['language'] = ApiClient.convertToType(data['language'], 'String'); + } + if (data.hasOwnProperty('formatted_address')) { + obj['formatted_address'] = ApiClient.convertToType(data['formatted_address'], 'String'); + } + if (data.hasOwnProperty('route')) { + obj['route'] = ApiClient.convertToType(data['route'], 'String'); + } + if (data.hasOwnProperty('street_number')) { + obj['street_number'] = ApiClient.convertToType(data['street_number'], 'String'); + } + if (data.hasOwnProperty('postal_code')) { + obj['postal_code'] = ApiClient.convertToType(data['postal_code'], 'String'); + } + if (data.hasOwnProperty('locality')) { + obj['locality'] = ApiClient.convertToType(data['locality'], 'String'); + } + if (data.hasOwnProperty('sublocality')) { + obj['sublocality'] = ApiClient.convertToType(data['sublocality'], 'String'); + } + if (data.hasOwnProperty('sublocality_level_1')) { + obj['sublocality_level_1'] = ApiClient.convertToType(data['sublocality_level_1'], 'String'); + } + if (data.hasOwnProperty('sublocality_level_2')) { + obj['sublocality_level_2'] = ApiClient.convertToType(data['sublocality_level_2'], 'String'); + } + if (data.hasOwnProperty('sublocality_level_3')) { + obj['sublocality_level_3'] = ApiClient.convertToType(data['sublocality_level_3'], 'String'); + } + if (data.hasOwnProperty('sublocality_level_4')) { + obj['sublocality_level_4'] = ApiClient.convertToType(data['sublocality_level_4'], 'String'); + } + if (data.hasOwnProperty('sublocality_level_5')) { + obj['sublocality_level_5'] = ApiClient.convertToType(data['sublocality_level_5'], 'String'); + } + if (data.hasOwnProperty('administrative_area_level_1')) { + obj['administrative_area_level_1'] = ApiClient.convertToType(data['administrative_area_level_1'], 'String'); + } + if (data.hasOwnProperty('administrative_area_level_2')) { + obj['administrative_area_level_2'] = ApiClient.convertToType(data['administrative_area_level_2'], 'String'); + } + if (data.hasOwnProperty('administrative_area_level_3')) { + obj['administrative_area_level_3'] = ApiClient.convertToType(data['administrative_area_level_3'], 'String'); + } + if (data.hasOwnProperty('administrative_area_level_4')) { + obj['administrative_area_level_4'] = ApiClient.convertToType(data['administrative_area_level_4'], 'String'); + } + if (data.hasOwnProperty('administrative_area_level_5')) { + obj['administrative_area_level_5'] = ApiClient.convertToType(data['administrative_area_level_5'], 'String'); + } + if (data.hasOwnProperty('state_code')) { + obj['state_code'] = ApiClient.convertToType(data['state_code'], 'String'); + } + if (data.hasOwnProperty('country')) { + obj['country'] = ApiClient.convertToType(data['country'], 'String'); + } + if (data.hasOwnProperty('country_code')) { + obj['country_code'] = ApiClient.convertToType(data['country_code'], 'String'); + } + if (data.hasOwnProperty('location')) { + obj['location'] = InlineResponse2001GeoLocation.constructFromObject(data['location']); + } + if (data.hasOwnProperty('place_id')) { + obj['place_id'] = ApiClient.convertToType(data['place_id'], 'String'); + } + } + return obj; + } + + +} + +/** + * 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.

+ * @member {String} language + */ +InlineResponse2001Geo.prototype['language'] = undefined; + +/** + * The formatted address in the local format of the properties location. + * @member {String} formatted_address + */ +InlineResponse2001Geo.prototype['formatted_address'] = undefined; + +/** + * The name of the route or street. + * @member {String} route + */ +InlineResponse2001Geo.prototype['route'] = undefined; + +/** + * The number of the street. + * @member {String} street_number + */ +InlineResponse2001Geo.prototype['street_number'] = undefined; + +/** + * The postal code of the location. + * @member {String} postal_code + */ +InlineResponse2001Geo.prototype['postal_code'] = undefined; + +/** + * A city or town. + * @member {String} locality + */ +InlineResponse2001Geo.prototype['locality'] = undefined; + +/** + * A smaller area within a locality. + * @member {String} sublocality + */ +InlineResponse2001Geo.prototype['sublocality'] = undefined; + +/** + * A smaller area within a locality at level 1. + * @member {String} sublocality_level_1 + */ +InlineResponse2001Geo.prototype['sublocality_level_1'] = undefined; + +/** + * A smaller area within a locality at level 2. + * @member {String} sublocality_level_2 + */ +InlineResponse2001Geo.prototype['sublocality_level_2'] = undefined; + +/** + * A smaller area within a locality at level 3. + * @member {String} sublocality_level_3 + */ +InlineResponse2001Geo.prototype['sublocality_level_3'] = undefined; + +/** + * A smaller area within a locality at level 4. + * @member {String} sublocality_level_4 + */ +InlineResponse2001Geo.prototype['sublocality_level_4'] = undefined; + +/** + * A smaller area within a locality at level 5. + * @member {String} sublocality_level_5 + */ +InlineResponse2001Geo.prototype['sublocality_level_5'] = undefined; + +/** + * A level 1 administrative area, such as a state or province. + * @member {String} administrative_area_level_1 + */ +InlineResponse2001Geo.prototype['administrative_area_level_1'] = undefined; + +/** + * A level 2 administrative area. + * @member {String} administrative_area_level_2 + */ +InlineResponse2001Geo.prototype['administrative_area_level_2'] = undefined; + +/** + * A level 3 administrative area + * @member {String} administrative_area_level_3 + */ +InlineResponse2001Geo.prototype['administrative_area_level_3'] = undefined; + +/** + * A level 4 administrative area. + * @member {String} administrative_area_level_4 + */ +InlineResponse2001Geo.prototype['administrative_area_level_4'] = undefined; + +/** + * A level 5 administrative area + * @member {String} administrative_area_level_5 + */ +InlineResponse2001Geo.prototype['administrative_area_level_5'] = undefined; + +/** + * The state or province code for the administrative area. + * @member {String} state_code + */ +InlineResponse2001Geo.prototype['state_code'] = undefined; + +/** + * The country of this geographical information set. + * @member {String} country + */ +InlineResponse2001Geo.prototype['country'] = undefined; + +/** + * The country code for the country. + * @member {String} country_code + */ +InlineResponse2001Geo.prototype['country_code'] = undefined; + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2001GeoLocation} location + */ +InlineResponse2001Geo.prototype['location'] = undefined; + +/** + * Uniquely identifies a place in our database. + * @member {String} place_id + */ +InlineResponse2001Geo.prototype['place_id'] = undefined; + + + + + + +export default InlineResponse2001Geo; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2001GeoLocation.js b/src/com.lodgea/com.lodgea.model/InlineResponse2001GeoLocation.js new file mode 100644 index 0000000..7338812 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2001GeoLocation.js @@ -0,0 +1,85 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2001GeoLocation model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2001GeoLocation + * @version 1.2.0 + */ +class InlineResponse2001GeoLocation { + /** + * Constructs a new InlineResponse2001GeoLocation. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2001GeoLocation + * @param lng {Number} The longitude coordinate of the location. + * @param lat {Number} The location of the property as coordinates + */ + constructor(lng, lat) { + + InlineResponse2001GeoLocation.initialize(this, lng, lat); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, lng, lat) { + obj['lng'] = lng; + obj['lat'] = lat; + } + + /** + * Constructs a InlineResponse2001GeoLocation from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2001GeoLocation} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2001GeoLocation} The populated InlineResponse2001GeoLocation instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2001GeoLocation(); + + if (data.hasOwnProperty('lng')) { + obj['lng'] = ApiClient.convertToType(data['lng'], 'Number'); + } + if (data.hasOwnProperty('lat')) { + obj['lat'] = ApiClient.convertToType(data['lat'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The longitude coordinate of the location. + * @member {Number} lng + */ +InlineResponse2001GeoLocation.prototype['lng'] = undefined; + +/** + * The location of the property as coordinates + * @member {Number} lat + */ +InlineResponse2001GeoLocation.prototype['lat'] = undefined; + + + + + + +export default InlineResponse2001GeoLocation; + diff --git a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1.js b/src/com.lodgea/com.lodgea.model/InlineResponse2001List.js similarity index 72% rename from src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1.js rename to src/com.lodgea/com.lodgea.model/InlineResponse2001List.js index b726750..29cf4a9 100644 --- a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1.js +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2001List.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,37 +12,37 @@ */ import ApiClient from '../ApiClient'; -import AvailablePropertiesInner1AttractionListInner from './AvailablePropertiesInner1AttractionListInner'; -import AvailablePropertiesInner1Geo from './AvailablePropertiesInner1Geo'; -import AvailablePropertiesInner1LowestPrice from './AvailablePropertiesInner1LowestPrice'; -import AvailablePropertiesInner1MediaListInner from './AvailablePropertiesInner1MediaListInner'; +import InlineResponse2001AttractionList from './InlineResponse2001AttractionList'; +import InlineResponse2001Geo from './InlineResponse2001Geo'; +import InlineResponse2001LowestPrice from './InlineResponse2001LowestPrice'; +import InlineResponse2001MediaList from './InlineResponse2001MediaList'; /** - * The AvailablePropertiesInner1 model module. - * @module com.lodgea/com.lodgea.model/AvailablePropertiesInner1 - * @version 1.1.5 + * The InlineResponse2001List model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2001List + * @version 1.2.0 */ -class AvailablePropertiesInner1 { +class InlineResponse2001List { /** - * Constructs a new AvailablePropertiesInner1. - * @alias module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1 + * Constructs a new InlineResponse2001List. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2001List * @param code {String} The properties unique code/ID. - * @param languageCode {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1.LanguageCodeEnum} 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.

- * @param currencyCode {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1.CurrencyCodeEnum} The currency code for the currency in which prices are returned.

See also in the appendix.

- * @param unitSystem {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1.UnitSystemEnum} The unit system (either \"metric\" or \"imperial\") used for measurements. + * @param languageCode {String} 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.

+ * @param currencyCode {String} The currency code for the currency in which prices are returned.

See also in the appendix.

+ * @param unitSystem {module:com.lodgea/com.lodgea.model/InlineResponse2001List.UnitSystemEnum} The unit system (either \"metric\" or \"imperial\") used for measurements. * @param name {String} The name of the property. * @param uri {String} A URI for the property. - * @param serviceList {Array.} A list of service codes indicating the services and amenities the property has.

See also in the appendix.

- * @param categoryList {Array.} A list of property class type codes indicating the types of the property.

See also in the appendix.

+ * @param serviceList {Array.} A list of service codes indicating the services and amenities the property has.

See also in the appendix.

+ * @param categoryList {Array.} A list of property class type codes indicating the types of the property.

See also in the appendix.

* @param uriPath {String} A URI path for the property. * @param text {String} A description of the property. - * @param mediaList {Array.} A list of media objects for the property. - * @param attractionList {Array.} A list of objects describing the attractions available at the property. - * @param lowestPrice {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice} + * @param mediaList {Array.} A list of media objects for the property. + * @param attractionList {Array.} A list of objects describing the attractions available at the property. + * @param lowestPrice {module:com.lodgea/com.lodgea.model/InlineResponse2001LowestPrice} */ constructor(code, languageCode, currencyCode, unitSystem, name, uri, serviceList, categoryList, uriPath, text, mediaList, attractionList, lowestPrice) { - AvailablePropertiesInner1.initialize(this, code, languageCode, currencyCode, unitSystem, name, uri, serviceList, categoryList, uriPath, text, mediaList, attractionList, lowestPrice); + InlineResponse2001List.initialize(this, code, languageCode, currencyCode, unitSystem, name, uri, serviceList, categoryList, uriPath, text, mediaList, attractionList, lowestPrice); } /** @@ -67,15 +67,15 @@ class AvailablePropertiesInner1 { } /** - * Constructs a AvailablePropertiesInner1 from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineResponse2001List from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1} The populated AvailablePropertiesInner1 instance. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2001List} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2001List} The populated InlineResponse2001List instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new AvailablePropertiesInner1(); + obj = obj || new InlineResponse2001List(); if (data.hasOwnProperty('code')) { obj['code'] = ApiClient.convertToType(data['code'], 'String'); @@ -108,740 +108,108 @@ class AvailablePropertiesInner1 { obj['text'] = ApiClient.convertToType(data['text'], 'String'); } if (data.hasOwnProperty('geo')) { - obj['geo'] = AvailablePropertiesInner1Geo.constructFromObject(data['geo']); + obj['geo'] = InlineResponse2001Geo.constructFromObject(data['geo']); } if (data.hasOwnProperty('mediaList')) { - obj['mediaList'] = ApiClient.convertToType(data['mediaList'], [AvailablePropertiesInner1MediaListInner]); + obj['mediaList'] = ApiClient.convertToType(data['mediaList'], [InlineResponse2001MediaList]); } if (data.hasOwnProperty('attractionList')) { - obj['attractionList'] = ApiClient.convertToType(data['attractionList'], [AvailablePropertiesInner1AttractionListInner]); + obj['attractionList'] = ApiClient.convertToType(data['attractionList'], [InlineResponse2001AttractionList]); } if (data.hasOwnProperty('lowestPrice')) { - obj['lowestPrice'] = AvailablePropertiesInner1LowestPrice.constructFromObject(data['lowestPrice']); + obj['lowestPrice'] = InlineResponse2001LowestPrice.constructFromObject(data['lowestPrice']); } } return obj; } - /** - * Validates the JSON data with respect to AvailablePropertiesInner1. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to AvailablePropertiesInner1. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of AvailablePropertiesInner1.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) { - throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']); - } - // ensure the json data is a string - if (data['languageCode'] && !(typeof data['languageCode'] === 'string' || data['languageCode'] instanceof String)) { - throw new Error("Expected the field `languageCode` to be a primitive type in the JSON string but got " + data['languageCode']); - } - // ensure the json data is a string - if (data['currencyCode'] && !(typeof data['currencyCode'] === 'string' || data['currencyCode'] instanceof String)) { - throw new Error("Expected the field `currencyCode` to be a primitive type in the JSON string but got " + data['currencyCode']); - } - // ensure the json data is a string - if (data['unitSystem'] && !(typeof data['unitSystem'] === 'string' || data['unitSystem'] instanceof String)) { - throw new Error("Expected the field `unitSystem` to be a primitive type in the JSON string but got " + data['unitSystem']); - } - // ensure the json data is a string - if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { - throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); - } - // ensure the json data is a string - if (data['uri'] && !(typeof data['uri'] === 'string' || data['uri'] instanceof String)) { - throw new Error("Expected the field `uri` to be a primitive type in the JSON string but got " + data['uri']); - } - // ensure the json data is an array - if (!Array.isArray(data['serviceList'])) { - throw new Error("Expected the field `serviceList` to be an array in the JSON data but got " + data['serviceList']); - } - // ensure the json data is an array - if (!Array.isArray(data['categoryList'])) { - throw new Error("Expected the field `categoryList` to be an array in the JSON data but got " + data['categoryList']); - } - // ensure the json data is a string - if (data['uriPath'] && !(typeof data['uriPath'] === 'string' || data['uriPath'] instanceof String)) { - throw new Error("Expected the field `uriPath` to be a primitive type in the JSON string but got " + data['uriPath']); - } - // ensure the json data is a string - if (data['text'] && !(typeof data['text'] === 'string' || data['text'] instanceof String)) { - throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data['text']); - } - // validate the optional field `geo` - if (data['geo']) { // data not null - AvailablePropertiesInner1Geo.validateJSON(data['geo']); - } - if (data['mediaList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['mediaList'])) { - throw new Error("Expected the field `mediaList` to be an array in the JSON data but got " + data['mediaList']); - } - // validate the optional field `mediaList` (array) - for (const item of data['mediaList']) { - AvailablePropertiesInner1MediaListInner.validateJsonObject(item); - }; - } - if (data['attractionList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['attractionList'])) { - throw new Error("Expected the field `attractionList` to be an array in the JSON data but got " + data['attractionList']); - } - // validate the optional field `attractionList` (array) - for (const item of data['attractionList']) { - AvailablePropertiesInner1AttractionListInner.validateJsonObject(item); - }; - } - // validate the optional field `lowestPrice` - if (data['lowestPrice']) { // data not null - AvailablePropertiesInner1LowestPrice.validateJSON(data['lowestPrice']); - } - - return true; - } - } -AvailablePropertiesInner1.RequiredProperties = ["code", "languageCode", "currencyCode", "unitSystem", "name", "uri", "serviceList", "categoryList", "uriPath", "text", "mediaList", "attractionList", "lowestPrice"]; - /** * The properties unique code/ID. * @member {String} code */ -AvailablePropertiesInner1.prototype['code'] = undefined; +InlineResponse2001List.prototype['code'] = undefined; /** * 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.

- * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1.LanguageCodeEnum} languageCode + * @member {String} languageCode */ -AvailablePropertiesInner1.prototype['languageCode'] = undefined; +InlineResponse2001List.prototype['languageCode'] = undefined; /** * The currency code for the currency in which prices are returned.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1.CurrencyCodeEnum} currencyCode + * @member {String} currencyCode */ -AvailablePropertiesInner1.prototype['currencyCode'] = undefined; +InlineResponse2001List.prototype['currencyCode'] = undefined; /** * The unit system (either \"metric\" or \"imperial\") used for measurements. - * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1.UnitSystemEnum} unitSystem + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2001List.UnitSystemEnum} unitSystem */ -AvailablePropertiesInner1.prototype['unitSystem'] = undefined; +InlineResponse2001List.prototype['unitSystem'] = undefined; /** * The name of the property. * @member {String} name */ -AvailablePropertiesInner1.prototype['name'] = undefined; +InlineResponse2001List.prototype['name'] = undefined; /** * A URI for the property. * @member {String} uri */ -AvailablePropertiesInner1.prototype['uri'] = undefined; +InlineResponse2001List.prototype['uri'] = undefined; /** * A list of service codes indicating the services and amenities the property has.

See also in the appendix.

- * @member {Array.} serviceList + * @member {Array.} serviceList */ -AvailablePropertiesInner1.prototype['serviceList'] = undefined; +InlineResponse2001List.prototype['serviceList'] = undefined; /** * A list of property class type codes indicating the types of the property.

See also in the appendix.

- * @member {Array.} categoryList + * @member {Array.} categoryList */ -AvailablePropertiesInner1.prototype['categoryList'] = undefined; +InlineResponse2001List.prototype['categoryList'] = undefined; /** * A URI path for the property. * @member {String} uriPath */ -AvailablePropertiesInner1.prototype['uriPath'] = undefined; +InlineResponse2001List.prototype['uriPath'] = undefined; /** * A description of the property. * @member {String} text */ -AvailablePropertiesInner1.prototype['text'] = undefined; +InlineResponse2001List.prototype['text'] = undefined; /** - * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1Geo} geo + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2001Geo} geo */ -AvailablePropertiesInner1.prototype['geo'] = undefined; +InlineResponse2001List.prototype['geo'] = undefined; /** * A list of media objects for the property. - * @member {Array.} mediaList + * @member {Array.} mediaList */ -AvailablePropertiesInner1.prototype['mediaList'] = undefined; +InlineResponse2001List.prototype['mediaList'] = undefined; /** * A list of objects describing the attractions available at the property. - * @member {Array.} attractionList + * @member {Array.} attractionList */ -AvailablePropertiesInner1.prototype['attractionList'] = undefined; +InlineResponse2001List.prototype['attractionList'] = undefined; /** - * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice} lowestPrice + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2001LowestPrice} lowestPrice */ -AvailablePropertiesInner1.prototype['lowestPrice'] = undefined; - - - - - -/** - * Allowed values for the languageCode property. - * @enum {String} - * @readonly - */ -AvailablePropertiesInner1['LanguageCodeEnum'] = { - - /** - * value: "af" - * @const - */ - "af": "af", - - /** - * value: "ar" - * @const - */ - "ar": "ar", - - /** - * value: "bg" - * @const - */ - "bg": "bg", - - /** - * value: "ca" - * @const - */ - "ca": "ca", - - /** - * value: "cs" - * @const - */ - "cs": "cs", - - /** - * value: "da" - * @const - */ - "da": "da", - - /** - * value: "de" - * @const - */ - "de": "de", - - /** - * value: "el" - * @const - */ - "el": "el", - - /** - * value: "en" - * @const - */ - "en": "en", - - /** - * value: "es" - * @const - */ - "es": "es", - - /** - * value: "et" - * @const - */ - "et": "et", - - /** - * value: "fi" - * @const - */ - "fi": "fi", - - /** - * value: "fr" - * @const - */ - "fr": "fr", - - /** - * value: "he" - * @const - */ - "he": "he", - - /** - * value: "hi" - * @const - */ - "hi": "hi", - - /** - * value: "hr" - * @const - */ - "hr": "hr", +InlineResponse2001List.prototype['lowestPrice'] = undefined; - /** - * value: "hu" - * @const - */ - "hu": "hu", - - /** - * value: "id" - * @const - */ - "id": "id", - - /** - * value: "is" - * @const - */ - "is": "is", - - /** - * value: "it" - * @const - */ - "it": "it", - - /** - * value: "ja" - * @const - */ - "ja": "ja", - - /** - * value: "ko" - * @const - */ - "ko": "ko", - - /** - * value: "lt" - * @const - */ - "lt": "lt", - - /** - * value: "lv" - * @const - */ - "lv": "lv", - - /** - * value: "nl" - * @const - */ - "nl": "nl", - - /** - * value: "no" - * @const - */ - "no": "no", - - /** - * value: "pl" - * @const - */ - "pl": "pl", - - /** - * value: "pt" - * @const - */ - "pt": "pt", - - /** - * value: "ro" - * @const - */ - "ro": "ro", - /** - * value: "ru" - * @const - */ - "ru": "ru", - - /** - * value: "sk" - * @const - */ - "sk": "sk", - - /** - * value: "sl" - * @const - */ - "sl": "sl", - - /** - * value: "sr" - * @const - */ - "sr": "sr", - - /** - * value: "sv" - * @const - */ - "sv": "sv", - - /** - * value: "th" - * @const - */ - "th": "th", - /** - * value: "tr" - * @const - */ - "tr": "tr", - - /** - * value: "vi" - * @const - */ - "vi": "vi", - - /** - * value: "zh" - * @const - */ - "zh": "zh" -}; - - -/** - * Allowed values for the currencyCode property. - * @enum {String} - * @readonly - */ -AvailablePropertiesInner1['CurrencyCodeEnum'] = { - - /** - * value: "AED" - * @const - */ - "AED": "AED", - - /** - * value: "ARS" - * @const - */ - "ARS": "ARS", - - /** - * value: "AUD" - * @const - */ - "AUD": "AUD", - - /** - * value: "AZN" - * @const - */ - "AZN": "AZN", - - /** - * value: "BGN" - * @const - */ - "BGN": "BGN", - - /** - * value: "BHD" - * @const - */ - "BHD": "BHD", - - /** - * value: "BRL" - * @const - */ - "BRL": "BRL", - - /** - * value: "CAD" - * @const - */ - "CAD": "CAD", - - /** - * value: "CHF" - * @const - */ - "CHF": "CHF", - - /** - * value: "CLP" - * @const - */ - "CLP": "CLP", - - /** - * value: "CNY" - * @const - */ - "CNY": "CNY", - - /** - * value: "COP" - * @const - */ - "COP": "COP", - - /** - * value: "CZK" - * @const - */ - "CZK": "CZK", - - /** - * value: "DKK" - * @const - */ - "DKK": "DKK", - - /** - * value: "EGP" - * @const - */ - "EGP": "EGP", - - /** - * value: "EUR" - * @const - */ - "EUR": "EUR", - - /** - * value: "FJD" - * @const - */ - "FJD": "FJD", - - /** - * value: "GBP" - * @const - */ - "GBP": "GBP", - - /** - * value: "GEL" - * @const - */ - "GEL": "GEL", - - /** - * value: "HKD" - * @const - */ - "HKD": "HKD", - - /** - * value: "HUF" - * @const - */ - "HUF": "HUF", - - /** - * value: "IDR" - * @const - */ - "IDR": "IDR", - - /** - * value: "ILS" - * @const - */ - "ILS": "ILS", - - /** - * value: "INR" - * @const - */ - "INR": "INR", - - /** - * value: "JOD" - * @const - */ - "JOD": "JOD", - - /** - * value: "JPY" - * @const - */ - "JPY": "JPY", - - /** - * value: "KRW" - * @const - */ - "KRW": "KRW", - - /** - * value: "KWD" - * @const - */ - "KWD": "KWD", - - /** - * value: "KZT" - * @const - */ - "KZT": "KZT", - - /** - * value: "MDL" - * @const - */ - "MDL": "MDL", - - /** - * value: "MXN" - * @const - */ - "MXN": "MXN", - - /** - * value: "MYR" - * @const - */ - "MYR": "MYR", - - /** - * value: "NAD" - * @const - */ - "NAD": "NAD", - - /** - * value: "NOK" - * @const - */ - "NOK": "NOK", - - /** - * value: "NZD" - * @const - */ - "NZD": "NZD", - - /** - * value: "OMR" - * @const - */ - "OMR": "OMR", - - /** - * value: "PLN" - * @const - */ - "PLN": "PLN", - - /** - * value: "QAR" - * @const - */ - "QAR": "QAR", - - /** - * value: "RON" - * @const - */ - "RON": "RON", - - /** - * value: "RUB" - * @const - */ - "RUB": "RUB", - - /** - * value: "SAR" - * @const - */ - "SAR": "SAR", - - /** - * value: "SEK" - * @const - */ - "SEK": "SEK", - - /** - * value: "SGD" - * @const - */ - "SGD": "SGD", - - /** - * value: "THB" - * @const - */ - "THB": "THB", - - /** - * value: "TRY" - * @const - */ - "TRY": "TRY", - - /** - * value: "TWD" - * @const - */ - "TWD": "TWD", - - /** - * value: "UAH" - * @const - */ - "UAH": "UAH", - - /** - * value: "USD" - * @const - */ - "USD": "USD", - - /** - * value: "XOF" - * @const - */ - "XOF": "XOF", - - /** - * value: "ZAR" - * @const - */ - "ZAR": "ZAR" -}; /** @@ -849,7 +217,7 @@ AvailablePropertiesInner1['CurrencyCodeEnum'] = { * @enum {String} * @readonly */ -AvailablePropertiesInner1['UnitSystemEnum'] = { +InlineResponse2001List['UnitSystemEnum'] = { /** * value: "metric" @@ -870,7 +238,7 @@ AvailablePropertiesInner1['UnitSystemEnum'] = { * @enum {Number} * @readonly */ -AvailablePropertiesInner1['ServiceListEnum'] = { +InlineResponse2001List['ServiceListEnum'] = { /** * value: 1 @@ -4041,7 +3409,7 @@ AvailablePropertiesInner1['ServiceListEnum'] = { * @enum {Number} * @readonly */ -AvailablePropertiesInner1['CategoryListEnum'] = { +InlineResponse2001List['CategoryListEnum'] = { /** * value: 1 @@ -4478,5 +3846,5 @@ AvailablePropertiesInner1['CategoryListEnum'] = { -export default AvailablePropertiesInner1; +export default InlineResponse2001List; diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2001LowestPrice.js b/src/com.lodgea/com.lodgea.model/InlineResponse2001LowestPrice.js new file mode 100644 index 0000000..6808bad --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2001LowestPrice.js @@ -0,0 +1,119 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2001LowestPrice model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2001LowestPrice + * @version 1.2.0 + */ +class InlineResponse2001LowestPrice { + /** + * Constructs a new InlineResponse2001LowestPrice. + * An object outlining the stay with the lowest available price point for this property. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2001LowestPrice + * @param amount {Number} The amount of the lowest price. + * @param currencyCode {String} The currency code for the given amount.

See also in the appendix.

+ * @param arrivalDate {Number} Arrival date for the given price as unix timestamp (seconds). + * @param returnDate {Number} Departure date for the given price as unix timestamp (seconds). + * @param lengthOfStay {Number} The amount of nights of stay this price is for + */ + constructor(amount, currencyCode, arrivalDate, returnDate, lengthOfStay) { + + InlineResponse2001LowestPrice.initialize(this, amount, currencyCode, arrivalDate, returnDate, lengthOfStay); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, amount, currencyCode, arrivalDate, returnDate, lengthOfStay) { + obj['amount'] = amount; + obj['currencyCode'] = currencyCode; + obj['arrivalDate'] = arrivalDate; + obj['returnDate'] = returnDate; + obj['lengthOfStay'] = lengthOfStay; + } + + /** + * Constructs a InlineResponse2001LowestPrice from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2001LowestPrice} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2001LowestPrice} The populated InlineResponse2001LowestPrice instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2001LowestPrice(); + + if (data.hasOwnProperty('amount')) { + obj['amount'] = ApiClient.convertToType(data['amount'], 'Number'); + } + if (data.hasOwnProperty('currencyCode')) { + obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); + } + if (data.hasOwnProperty('arrivalDate')) { + obj['arrivalDate'] = ApiClient.convertToType(data['arrivalDate'], 'Number'); + } + if (data.hasOwnProperty('returnDate')) { + obj['returnDate'] = ApiClient.convertToType(data['returnDate'], 'Number'); + } + if (data.hasOwnProperty('lengthOfStay')) { + obj['lengthOfStay'] = ApiClient.convertToType(data['lengthOfStay'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The amount of the lowest price. + * @member {Number} amount + */ +InlineResponse2001LowestPrice.prototype['amount'] = undefined; + +/** + * The currency code for the given amount.

See also in the appendix.

+ * @member {String} currencyCode + */ +InlineResponse2001LowestPrice.prototype['currencyCode'] = undefined; + +/** + * Arrival date for the given price as unix timestamp (seconds). + * @member {Number} arrivalDate + */ +InlineResponse2001LowestPrice.prototype['arrivalDate'] = undefined; + +/** + * Departure date for the given price as unix timestamp (seconds). + * @member {Number} returnDate + */ +InlineResponse2001LowestPrice.prototype['returnDate'] = undefined; + +/** + * The amount of nights of stay this price is for + * @member {Number} lengthOfStay + */ +InlineResponse2001LowestPrice.prototype['lengthOfStay'] = undefined; + + + + + + +export default InlineResponse2001LowestPrice; + diff --git a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1MediaListInner.js b/src/com.lodgea/com.lodgea.model/InlineResponse2001MediaList.js similarity index 78% rename from src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1MediaListInner.js rename to src/com.lodgea/com.lodgea.model/InlineResponse2001MediaList.js index 0759852..57b739f 100644 --- a/src/com.lodgea/com.lodgea.model/AvailablePropertiesInner1MediaListInner.js +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2001MediaList.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,22 +14,22 @@ import ApiClient from '../ApiClient'; /** - * The AvailablePropertiesInner1MediaListInner model module. - * @module com.lodgea/com.lodgea.model/AvailablePropertiesInner1MediaListInner - * @version 1.1.5 + * The InlineResponse2001MediaList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2001MediaList + * @version 1.2.0 */ -class AvailablePropertiesInner1MediaListInner { +class InlineResponse2001MediaList { /** - * Constructs a new AvailablePropertiesInner1MediaListInner. - * @alias module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1MediaListInner - * @param tagList {Array.} A list of tag codes for the media.

See also in the appendix.

+ * Constructs a new InlineResponse2001MediaList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2001MediaList + * @param tagList {Array.} A list of tag codes for the media.

See also in the appendix.

* @param isMainImage {Boolean} Whether the media is the main image for the property. * @param url {String} The URL for the media. * @param sortOrder {Number} The sort order for the media. */ constructor(tagList, isMainImage, url, sortOrder) { - AvailablePropertiesInner1MediaListInner.initialize(this, tagList, isMainImage, url, sortOrder); + InlineResponse2001MediaList.initialize(this, tagList, isMainImage, url, sortOrder); } /** @@ -45,15 +45,15 @@ class AvailablePropertiesInner1MediaListInner { } /** - * Constructs a AvailablePropertiesInner1MediaListInner from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineResponse2001MediaList from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1MediaListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1MediaListInner} The populated AvailablePropertiesInner1MediaListInner instance. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2001MediaList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2001MediaList} The populated InlineResponse2001MediaList instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new AvailablePropertiesInner1MediaListInner(); + obj = obj || new InlineResponse2001MediaList(); if (data.hasOwnProperty('tagList')) { obj['tagList'] = ApiClient.convertToType(data['tagList'], ['Number']); @@ -71,58 +71,32 @@ class AvailablePropertiesInner1MediaListInner { return obj; } - /** - * Validates the JSON data with respect to AvailablePropertiesInner1MediaListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to AvailablePropertiesInner1MediaListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of AvailablePropertiesInner1MediaListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is an array - if (!Array.isArray(data['tagList'])) { - throw new Error("Expected the field `tagList` to be an array in the JSON data but got " + data['tagList']); - } - // ensure the json data is a string - if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) { - throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']); - } - - return true; - } - } -AvailablePropertiesInner1MediaListInner.RequiredProperties = ["tagList", "isMainImage", "url", "sortOrder"]; - /** * A list of tag codes for the media.

See also in the appendix.

- * @member {Array.} tagList + * @member {Array.} tagList */ -AvailablePropertiesInner1MediaListInner.prototype['tagList'] = undefined; +InlineResponse2001MediaList.prototype['tagList'] = undefined; /** * Whether the media is the main image for the property. * @member {Boolean} isMainImage */ -AvailablePropertiesInner1MediaListInner.prototype['isMainImage'] = undefined; +InlineResponse2001MediaList.prototype['isMainImage'] = undefined; /** * The URL for the media. * @member {String} url */ -AvailablePropertiesInner1MediaListInner.prototype['url'] = undefined; +InlineResponse2001MediaList.prototype['url'] = undefined; /** * The sort order for the media. * @member {Number} sortOrder */ -AvailablePropertiesInner1MediaListInner.prototype['sortOrder'] = undefined; +InlineResponse2001MediaList.prototype['sortOrder'] = undefined; @@ -133,7 +107,7 @@ AvailablePropertiesInner1MediaListInner.prototype['sortOrder'] = undefined; * @enum {Number} * @readonly */ -AvailablePropertiesInner1MediaListInner['TagListEnum'] = { +InlineResponse2001MediaList['TagListEnum'] = { /** * value: 1 @@ -936,5 +910,5 @@ AvailablePropertiesInner1MediaListInner['TagListEnum'] = { -export default AvailablePropertiesInner1MediaListInner; +export default InlineResponse2001MediaList; diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2002.js b/src/com.lodgea/com.lodgea.model/InlineResponse2002.js new file mode 100644 index 0000000..21fb291 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2002.js @@ -0,0 +1,83 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2002List from './InlineResponse2002List'; + +/** + * The InlineResponse2002 model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2002 + * @version 1.2.0 + */ +class InlineResponse2002 { + /** + * Constructs a new InlineResponse2002. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2002 + * @param list {Array.} + */ + constructor(list) { + + InlineResponse2002.initialize(this, list); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, list) { + obj['list'] = list; + } + + /** + * Constructs a InlineResponse2002 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2002} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2002} The populated InlineResponse2002 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2002(); + + if (data.hasOwnProperty('list')) { + obj['list'] = ApiClient.convertToType(data['list'], [InlineResponse2002List]); + } + if (data.hasOwnProperty('pageToken')) { + obj['pageToken'] = ApiClient.convertToType(data['pageToken'], 'String'); + } + } + return obj; + } + + +} + +/** + * @member {Array.} list + */ +InlineResponse2002.prototype['list'] = undefined; + +/** + * The page token to pass in the subsequent call to retrieve more results, only returned if more results are available. + * @member {String} pageToken + */ +InlineResponse2002.prototype['pageToken'] = undefined; + + + + + + +export default InlineResponse2002; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2002List.js b/src/com.lodgea/com.lodgea.model/InlineResponse2002List.js new file mode 100644 index 0000000..4b3f16f --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2002List.js @@ -0,0 +1,129 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2002List model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2002List + * @version 1.2.0 + */ +class InlineResponse2002List { + /** + * Constructs a new InlineResponse2002List. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2002List + * @param published {Boolean} Whether the property is in published state. + * @param name {String} The name of the property. + * @param propertyId {String} The unique identifier for the property. + * @param image {String} The file name of the image for the property. + * @param address {String} The address of the property. + * @param lastUpdated {Number} The timestamp of the last update to the property (Unix in ms). + */ + constructor(published, name, propertyId, image, address, lastUpdated) { + + InlineResponse2002List.initialize(this, published, name, propertyId, image, address, lastUpdated); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, published, name, propertyId, image, address, lastUpdated) { + obj['published'] = published; + obj['name'] = name; + obj['propertyId'] = propertyId; + obj['image'] = image; + obj['address'] = address; + obj['lastUpdated'] = lastUpdated; + } + + /** + * Constructs a InlineResponse2002List from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2002List} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2002List} The populated InlineResponse2002List instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2002List(); + + if (data.hasOwnProperty('published')) { + obj['published'] = ApiClient.convertToType(data['published'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('propertyId')) { + obj['propertyId'] = ApiClient.convertToType(data['propertyId'], 'String'); + } + if (data.hasOwnProperty('image')) { + obj['image'] = ApiClient.convertToType(data['image'], 'String'); + } + if (data.hasOwnProperty('address')) { + obj['address'] = ApiClient.convertToType(data['address'], 'String'); + } + if (data.hasOwnProperty('lastUpdated')) { + obj['lastUpdated'] = ApiClient.convertToType(data['lastUpdated'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Whether the property is in published state. + * @member {Boolean} published + */ +InlineResponse2002List.prototype['published'] = undefined; + +/** + * The name of the property. + * @member {String} name + */ +InlineResponse2002List.prototype['name'] = undefined; + +/** + * The unique identifier for the property. + * @member {String} propertyId + */ +InlineResponse2002List.prototype['propertyId'] = undefined; + +/** + * The file name of the image for the property. + * @member {String} image + */ +InlineResponse2002List.prototype['image'] = undefined; + +/** + * The address of the property. + * @member {String} address + */ +InlineResponse2002List.prototype['address'] = undefined; + +/** + * The timestamp of the last update to the property (Unix in ms). + * @member {Number} lastUpdated + */ +InlineResponse2002List.prototype['lastUpdated'] = undefined; + + + + + + +export default InlineResponse2002List; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003.js new file mode 100644 index 0000000..b1a4838 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003.js @@ -0,0 +1,85 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2003ProductList from './InlineResponse2003ProductList'; +import InlineResponse2003Property from './InlineResponse2003Property'; + +/** + * The InlineResponse2003 model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003 + * @version 1.2.0 + */ +class InlineResponse2003 { + /** + * Constructs a new InlineResponse2003. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003 + * @param property {module:com.lodgea/com.lodgea.model/InlineResponse2003Property} + * @param productList {Array.} + */ + constructor(property, productList) { + + InlineResponse2003.initialize(this, property, productList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, property, productList) { + obj['property'] = property; + obj['productList'] = productList; + } + + /** + * Constructs a InlineResponse2003 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003} The populated InlineResponse2003 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003(); + + if (data.hasOwnProperty('property')) { + obj['property'] = InlineResponse2003Property.constructFromObject(data['property']); + } + if (data.hasOwnProperty('productList')) { + obj['productList'] = ApiClient.convertToType(data['productList'], [InlineResponse2003ProductList]); + } + } + return obj; + } + + +} + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003Property} property + */ +InlineResponse2003.prototype['property'] = undefined; + +/** + * @member {Array.} productList + */ +InlineResponse2003.prototype['productList'] = undefined; + + + + + + +export default InlineResponse2003; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfo.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfo.js new file mode 100644 index 0000000..21da630 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfo.js @@ -0,0 +1,189 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2003PolicyInfoFeePolicyList from './InlineResponse2003PolicyInfoFeePolicyList'; +import InlineResponse2003PolicyInfoTaxPolicyList from './InlineResponse2003PolicyInfoTaxPolicyList'; +import InlineResponse2003PropertyCancellationPolicyList from './InlineResponse2003PropertyCancellationPolicyList'; +import InlineResponse2003PropertyGuaranteePolicy from './InlineResponse2003PropertyGuaranteePolicy'; +import InlineResponse2003PropertyPetsPolicy from './InlineResponse2003PropertyPetsPolicy'; + +/** + * The InlineResponse2003PolicyInfo model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfo + * @version 1.2.0 + */ +class InlineResponse2003PolicyInfo { + /** + * Constructs a new InlineResponse2003PolicyInfo. + * The policy info for this product. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfo + * @param checkInTime {Number} Check-in time (unix timestamp in ms). + * @param checkOutTime {Number} Check-out time (unix timestamp in ms). + * @param cancellationPolicyList {Array.} List of cancellation policies. + * @param advanceBookingMin {Number} The minimum number of days in advance a booking must be made + * @param advanceBookingMax {Number} The maximum number of days in advance a booking can be made + * @param taxPolicyList {Array.} A list of taxes and their policies. + * @param feePolicyList {Array.} A list of fees and their policies. + */ + constructor(checkInTime, checkOutTime, cancellationPolicyList, advanceBookingMin, advanceBookingMax, taxPolicyList, feePolicyList) { + + InlineResponse2003PolicyInfo.initialize(this, checkInTime, checkOutTime, cancellationPolicyList, advanceBookingMin, advanceBookingMax, taxPolicyList, feePolicyList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, checkInTime, checkOutTime, cancellationPolicyList, advanceBookingMin, advanceBookingMax, taxPolicyList, feePolicyList) { + obj['checkInTime'] = checkInTime; + obj['checkOutTime'] = checkOutTime; + obj['cancellationPolicyList'] = cancellationPolicyList; + obj['advanceBookingMin'] = advanceBookingMin; + obj['advanceBookingMax'] = advanceBookingMax; + obj['taxPolicyList'] = taxPolicyList; + obj['feePolicyList'] = feePolicyList; + } + + /** + * Constructs a InlineResponse2003PolicyInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfo} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfo} The populated InlineResponse2003PolicyInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PolicyInfo(); + + if (data.hasOwnProperty('checkInTime')) { + obj['checkInTime'] = ApiClient.convertToType(data['checkInTime'], 'Number'); + } + if (data.hasOwnProperty('checkOutTime')) { + obj['checkOutTime'] = ApiClient.convertToType(data['checkOutTime'], 'Number'); + } + if (data.hasOwnProperty('totalGuestCount')) { + obj['totalGuestCount'] = ApiClient.convertToType(data['totalGuestCount'], 'Number'); + } + if (data.hasOwnProperty('cancellationPolicyList')) { + obj['cancellationPolicyList'] = ApiClient.convertToType(data['cancellationPolicyList'], [InlineResponse2003PropertyCancellationPolicyList]); + } + if (data.hasOwnProperty('advanceBookingMin')) { + obj['advanceBookingMin'] = ApiClient.convertToType(data['advanceBookingMin'], 'Number'); + } + if (data.hasOwnProperty('advanceBookingMax')) { + obj['advanceBookingMax'] = ApiClient.convertToType(data['advanceBookingMax'], 'Number'); + } + if (data.hasOwnProperty('petsPolicy')) { + obj['petsPolicy'] = InlineResponse2003PropertyPetsPolicy.constructFromObject(data['petsPolicy']); + } + if (data.hasOwnProperty('prepaymentPolicy')) { + obj['prepaymentPolicy'] = ApiClient.convertToType(data['prepaymentPolicy'], 'String'); + } + if (data.hasOwnProperty('guaranteePolicy')) { + obj['guaranteePolicy'] = InlineResponse2003PropertyGuaranteePolicy.constructFromObject(data['guaranteePolicy']); + } + if (data.hasOwnProperty('taxPolicyList')) { + obj['taxPolicyList'] = ApiClient.convertToType(data['taxPolicyList'], [InlineResponse2003PolicyInfoTaxPolicyList]); + } + if (data.hasOwnProperty('feePolicyList')) { + obj['feePolicyList'] = ApiClient.convertToType(data['feePolicyList'], [InlineResponse2003PolicyInfoFeePolicyList]); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + } + return obj; + } + + +} + +/** + * Check-in time (unix timestamp in ms). + * @member {Number} checkInTime + */ +InlineResponse2003PolicyInfo.prototype['checkInTime'] = undefined; + +/** + * Check-out time (unix timestamp in ms). + * @member {Number} checkOutTime + */ +InlineResponse2003PolicyInfo.prototype['checkOutTime'] = undefined; + +/** + * The maximum number of guests allowed. + * @member {Number} totalGuestCount + */ +InlineResponse2003PolicyInfo.prototype['totalGuestCount'] = undefined; + +/** + * List of cancellation policies. + * @member {Array.} cancellationPolicyList + */ +InlineResponse2003PolicyInfo.prototype['cancellationPolicyList'] = undefined; + +/** + * The minimum number of days in advance a booking must be made + * @member {Number} advanceBookingMin + */ +InlineResponse2003PolicyInfo.prototype['advanceBookingMin'] = undefined; + +/** + * The maximum number of days in advance a booking can be made + * @member {Number} advanceBookingMax + */ +InlineResponse2003PolicyInfo.prototype['advanceBookingMax'] = undefined; + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPetsPolicy} petsPolicy + */ +InlineResponse2003PolicyInfo.prototype['petsPolicy'] = undefined; + +/** + * The type of the prepayment policy. + * @member {String} prepaymentPolicy + */ +InlineResponse2003PolicyInfo.prototype['prepaymentPolicy'] = undefined; + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuaranteePolicy} guaranteePolicy + */ +InlineResponse2003PolicyInfo.prototype['guaranteePolicy'] = undefined; + +/** + * A list of taxes and their policies. + * @member {Array.} taxPolicyList + */ +InlineResponse2003PolicyInfo.prototype['taxPolicyList'] = undefined; + +/** + * A list of fees and their policies. + * @member {Array.} feePolicyList + */ +InlineResponse2003PolicyInfo.prototype['feePolicyList'] = undefined; + +/** + * The name of this policy. + * @member {String} name + */ +InlineResponse2003PolicyInfo.prototype['name'] = undefined; + + + + + + +export default InlineResponse2003PolicyInfo; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList.js new file mode 100644 index 0000000..0837ffc --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList.js @@ -0,0 +1,649 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PolicyInfoFeePolicyList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList + * @version 1.2.0 + */ +class InlineResponse2003PolicyInfoFeePolicyList { + /** + * Constructs a new InlineResponse2003PolicyInfoFeePolicyList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList + * @param typeCode {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList.TypeCodeEnum} The code that represents the type of fee.

See also in the appendix.

+ * @param chargeType {String} The type of charge. + * @param chargeFrequencyCode {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList.ChargeFrequencyCodeEnum} The code that represents the frequency of charge.

See also in the appendix.

+ * @param currencyCode {String} The currency code of the currency in that the charge is applied.

See also in the appendix.

+ * @param conditionList {Array.} A list of conditions for the tax. Is empty if chargeType is not conditional. + */ + constructor(typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList) { + + InlineResponse2003PolicyInfoFeePolicyList.initialize(this, typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList) { + obj['typeCode'] = typeCode; + obj['chargeType'] = chargeType; + obj['chargeFrequencyCode'] = chargeFrequencyCode; + obj['currencyCode'] = currencyCode; + obj['conditionList'] = conditionList; + } + + /** + * Constructs a InlineResponse2003PolicyInfoFeePolicyList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList} The populated InlineResponse2003PolicyInfoFeePolicyList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PolicyInfoFeePolicyList(); + + if (data.hasOwnProperty('typeCode')) { + obj['typeCode'] = ApiClient.convertToType(data['typeCode'], 'Number'); + } + if (data.hasOwnProperty('percent')) { + obj['percent'] = ApiClient.convertToType(data['percent'], 'Number'); + } + if (data.hasOwnProperty('chargeType')) { + obj['chargeType'] = ApiClient.convertToType(data['chargeType'], 'String'); + } + if (data.hasOwnProperty('chargeFrequencyCode')) { + obj['chargeFrequencyCode'] = ApiClient.convertToType(data['chargeFrequencyCode'], 'Number'); + } + if (data.hasOwnProperty('currencyCode')) { + obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); + } + if (data.hasOwnProperty('conditionList')) { + obj['conditionList'] = ApiClient.convertToType(data['conditionList'], ['String']); + } + } + return obj; + } + + +} + +/** + * The code that represents the type of fee.

See also in the appendix.

+ * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList.TypeCodeEnum} typeCode + */ +InlineResponse2003PolicyInfoFeePolicyList.prototype['typeCode'] = undefined; + +/** + * The charged percentage if applicable. + * @member {Number} percent + */ +InlineResponse2003PolicyInfoFeePolicyList.prototype['percent'] = undefined; + +/** + * The type of charge. + * @member {String} chargeType + */ +InlineResponse2003PolicyInfoFeePolicyList.prototype['chargeType'] = undefined; + +/** + * The code that represents the frequency of charge.

See also in the appendix.

+ * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList.ChargeFrequencyCodeEnum} chargeFrequencyCode + */ +InlineResponse2003PolicyInfoFeePolicyList.prototype['chargeFrequencyCode'] = undefined; + +/** + * The currency code of the currency in that the charge is applied.

See also in the appendix.

+ * @member {String} currencyCode + */ +InlineResponse2003PolicyInfoFeePolicyList.prototype['currencyCode'] = undefined; + +/** + * A list of conditions for the tax. Is empty if chargeType is not conditional. + * @member {Array.} conditionList + */ +InlineResponse2003PolicyInfoFeePolicyList.prototype['conditionList'] = undefined; + + + + + +/** + * Allowed values for the typeCode property. + * @enum {Number} + * @readonly + */ +InlineResponse2003PolicyInfoFeePolicyList['TypeCodeEnum'] = { + + /** + * value: 2 + * @const + */ + "2": 2, + + /** + * value: 9 + * @const + */ + "9": 9, + + /** + * value: 11 + * @const + */ + "11": 11, + + /** + * value: 12 + * @const + */ + "12": 12, + + /** + * value: 14 + * @const + */ + "14": 14, + + /** + * value: 16 + * @const + */ + "16": 16, + + /** + * value: 27 + * @const + */ + "27": 27, + + /** + * value: 29 + * @const + */ + "29": 29, + + /** + * value: 31 + * @const + */ + "31": 31, + + /** + * value: 32 + * @const + */ + "32": 32, + + /** + * value: 33 + * @const + */ + "33": 33, + + /** + * value: 34 + * @const + */ + "34": 34, + + /** + * value: 37 + * @const + */ + "37": 37, + + /** + * value: 38 + * @const + */ + "38": 38, + + /** + * value: 40 + * @const + */ + "40": 40, + + /** + * value: 41 + * @const + */ + "41": 41, + + /** + * value: 42 + * @const + */ + "42": 42, + + /** + * value: 44 + * @const + */ + "44": 44, + + /** + * value: 45 + * @const + */ + "45": 45, + + /** + * value: 47 + * @const + */ + "47": 47, + + /** + * value: 51 + * @const + */ + "51": 51, + + /** + * value: 52 + * @const + */ + "52": 52, + + /** + * value: 53 + * @const + */ + "53": 53, + + /** + * value: 54 + * @const + */ + "54": 54, + + /** + * value: 55 + * @const + */ + "55": 55, + + /** + * value: 56 + * @const + */ + "56": 56, + + /** + * value: 5000 + * @const + */ + "5000": 5000, + + /** + * value: 5003 + * @const + */ + "5003": 5003, + + /** + * value: 5005 + * @const + */ + "5005": 5005, + + /** + * value: 5006 + * @const + */ + "5006": 5006, + + /** + * value: 5009 + * @const + */ + "5009": 5009, + + /** + * value: 5010 + * @const + */ + "5010": 5010, + + /** + * value: 5011 + * @const + */ + "5011": 5011, + + /** + * value: 5012 + * @const + */ + "5012": 5012, + + /** + * value: 5013 + * @const + */ + "5013": 5013, + + /** + * value: 5014 + * @const + */ + "5014": 5014, + + /** + * value: 5015 + * @const + */ + "5015": 5015, + + /** + * value: 5016 + * @const + */ + "5016": 5016, + + /** + * value: 5017 + * @const + */ + "5017": 5017, + + /** + * value: 5018 + * @const + */ + "5018": 5018, + + /** + * value: 5019 + * @const + */ + "5019": 5019, + + /** + * value: 5020 + * @const + */ + "5020": 5020, + + /** + * value: 5021 + * @const + */ + "5021": 5021, + + /** + * value: 5022 + * @const + */ + "5022": 5022, + + /** + * value: 5023 + * @const + */ + "5023": 5023, + + /** + * value: 5024 + * @const + */ + "5024": 5024, + + /** + * value: 5025 + * @const + */ + "5025": 5025, + + /** + * value: 5026 + * @const + */ + "5026": 5026, + + /** + * value: 5027 + * @const + */ + "5027": 5027, + + /** + * value: 5028 + * @const + */ + "5028": 5028, + + /** + * value: 5029 + * @const + */ + "5029": 5029, + + /** + * value: 5030 + * @const + */ + "5030": 5030, + + /** + * value: 5031 + * @const + */ + "5031": 5031, + + /** + * value: 5032 + * @const + */ + "5032": 5032, + + /** + * value: 5033 + * @const + */ + "5033": 5033, + + /** + * value: 5035 + * @const + */ + "5035": 5035, + + /** + * value: 5036 + * @const + */ + "5036": 5036, + + /** + * value: 20001 + * @const + */ + "20001": 20001 +}; + + +/** + * Allowed values for the chargeFrequencyCode property. + * @enum {Number} + * @readonly + */ +InlineResponse2003PolicyInfoFeePolicyList['ChargeFrequencyCodeEnum'] = { + + /** + * value: 1 + * @const + */ + "1": 1, + + /** + * value: 2 + * @const + */ + "2": 2, + + /** + * value: 7 + * @const + */ + "7": 7, + + /** + * value: 10 + * @const + */ + "10": 10, + + /** + * value: 12 + * @const + */ + "12": 12, + + /** + * value: 17 + * @const + */ + "17": 17, + + /** + * value: 19 + * @const + */ + "19": 19, + + /** + * value: 20 + * @const + */ + "20": 20, + + /** + * value: 21 + * @const + */ + "21": 21, + + /** + * value: 25 + * @const + */ + "25": 25, + + /** + * value: 31 + * @const + */ + "31": 31, + + /** + * value: 5000 + * @const + */ + "5000": 5000, + + /** + * value: 5001 + * @const + */ + "5001": 5001, + + /** + * value: 5002 + * @const + */ + "5002": 5002, + + /** + * value: 5010 + * @const + */ + "5010": 5010, + + /** + * value: 5011 + * @const + */ + "5011": 5011, + + /** + * value: 5012 + * @const + */ + "5012": 5012, + + /** + * value: 5013 + * @const + */ + "5013": 5013, + + /** + * value: 5014 + * @const + */ + "5014": 5014, + + /** + * value: 5015 + * @const + */ + "5015": 5015, + + /** + * value: 5016 + * @const + */ + "5016": 5016, + + /** + * value: 5017 + * @const + */ + "5017": 5017, + + /** + * value: 90010 + * @const + */ + "90010": 90010, + + /** + * value: 90011 + * @const + */ + "90011": 90011, + + /** + * value: 90012 + * @const + */ + "90012": 90012, + + /** + * value: 90013 + * @const + */ + "90013": 90013 +}; + + + +export default InlineResponse2003PolicyInfoFeePolicyList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList.js new file mode 100644 index 0000000..ab92821 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList.js @@ -0,0 +1,451 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PolicyInfoTaxPolicyList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList + * @version 1.2.0 + */ +class InlineResponse2003PolicyInfoTaxPolicyList { + /** + * Constructs a new InlineResponse2003PolicyInfoTaxPolicyList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList + * @param typeCode {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList.TypeCodeEnum} The code that represents the type of tax.

See also in the appendix.

+ * @param chargeType {String} The type of charge. + * @param chargeFrequencyCode {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList.ChargeFrequencyCodeEnum} The code that represents the frequency of charge.

See also in the appendix.

+ * @param currencyCode {String} The currency code of the currency in that the charge is applied.

See also in the appendix.

+ * @param conditionList {Array.} A list of conditions for the tax. Is empty if chargeType is not conditional. + */ + constructor(typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList) { + + InlineResponse2003PolicyInfoTaxPolicyList.initialize(this, typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList) { + obj['typeCode'] = typeCode; + obj['chargeType'] = chargeType; + obj['chargeFrequencyCode'] = chargeFrequencyCode; + obj['currencyCode'] = currencyCode; + obj['conditionList'] = conditionList; + } + + /** + * Constructs a InlineResponse2003PolicyInfoTaxPolicyList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList} The populated InlineResponse2003PolicyInfoTaxPolicyList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PolicyInfoTaxPolicyList(); + + if (data.hasOwnProperty('typeCode')) { + obj['typeCode'] = ApiClient.convertToType(data['typeCode'], 'Number'); + } + if (data.hasOwnProperty('percent')) { + obj['percent'] = ApiClient.convertToType(data['percent'], 'Number'); + } + if (data.hasOwnProperty('chargeType')) { + obj['chargeType'] = ApiClient.convertToType(data['chargeType'], 'String'); + } + if (data.hasOwnProperty('chargeFrequencyCode')) { + obj['chargeFrequencyCode'] = ApiClient.convertToType(data['chargeFrequencyCode'], 'Number'); + } + if (data.hasOwnProperty('currencyCode')) { + obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); + } + if (data.hasOwnProperty('conditionList')) { + obj['conditionList'] = ApiClient.convertToType(data['conditionList'], ['String']); + } + } + return obj; + } + + +} + +/** + * The code that represents the type of tax.

See also in the appendix.

+ * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList.TypeCodeEnum} typeCode + */ +InlineResponse2003PolicyInfoTaxPolicyList.prototype['typeCode'] = undefined; + +/** + * The charged percentage if applicable. + * @member {Number} percent + */ +InlineResponse2003PolicyInfoTaxPolicyList.prototype['percent'] = undefined; + +/** + * The type of charge. + * @member {String} chargeType + */ +InlineResponse2003PolicyInfoTaxPolicyList.prototype['chargeType'] = undefined; + +/** + * The code that represents the frequency of charge.

See also in the appendix.

+ * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList.ChargeFrequencyCodeEnum} chargeFrequencyCode + */ +InlineResponse2003PolicyInfoTaxPolicyList.prototype['chargeFrequencyCode'] = undefined; + +/** + * The currency code of the currency in that the charge is applied.

See also in the appendix.

+ * @member {String} currencyCode + */ +InlineResponse2003PolicyInfoTaxPolicyList.prototype['currencyCode'] = undefined; + +/** + * A list of conditions for the tax. Is empty if chargeType is not conditional. + * @member {Array.} conditionList + */ +InlineResponse2003PolicyInfoTaxPolicyList.prototype['conditionList'] = undefined; + + + + + +/** + * Allowed values for the typeCode property. + * @enum {Number} + * @readonly + */ +InlineResponse2003PolicyInfoTaxPolicyList['TypeCodeEnum'] = { + + /** + * value: 1 + * @const + */ + "1": 1, + + /** + * value: 3 + * @const + */ + "3": 3, + + /** + * value: 4 + * @const + */ + "4": 4, + + /** + * value: 5 + * @const + */ + "5": 5, + + /** + * value: 6 + * @const + */ + "6": 6, + + /** + * value: 7 + * @const + */ + "7": 7, + + /** + * value: 8 + * @const + */ + "8": 8, + + /** + * value: 10 + * @const + */ + "10": 10, + + /** + * value: 13 + * @const + */ + "13": 13, + + /** + * value: 15 + * @const + */ + "15": 15, + + /** + * value: 17 + * @const + */ + "17": 17, + + /** + * value: 18 + * @const + */ + "18": 18, + + /** + * value: 19 + * @const + */ + "19": 19, + + /** + * value: 28 + * @const + */ + "28": 28, + + /** + * value: 30 + * @const + */ + "30": 30, + + /** + * value: 35 + * @const + */ + "35": 35, + + /** + * value: 36 + * @const + */ + "36": 36, + + /** + * value: 39 + * @const + */ + "39": 39, + + /** + * value: 43 + * @const + */ + "43": 43, + + /** + * value: 46 + * @const + */ + "46": 46, + + /** + * value: 5001 + * @const + */ + "5001": 5001, + + /** + * value: 5002 + * @const + */ + "5002": 5002, + + /** + * value: 5004 + * @const + */ + "5004": 5004, + + /** + * value: 5007 + * @const + */ + "5007": 5007, + + /** + * value: 5008 + * @const + */ + "5008": 5008 +}; + + +/** + * Allowed values for the chargeFrequencyCode property. + * @enum {Number} + * @readonly + */ +InlineResponse2003PolicyInfoTaxPolicyList['ChargeFrequencyCodeEnum'] = { + + /** + * value: 1 + * @const + */ + "1": 1, + + /** + * value: 2 + * @const + */ + "2": 2, + + /** + * value: 7 + * @const + */ + "7": 7, + + /** + * value: 10 + * @const + */ + "10": 10, + + /** + * value: 12 + * @const + */ + "12": 12, + + /** + * value: 17 + * @const + */ + "17": 17, + + /** + * value: 19 + * @const + */ + "19": 19, + + /** + * value: 20 + * @const + */ + "20": 20, + + /** + * value: 21 + * @const + */ + "21": 21, + + /** + * value: 25 + * @const + */ + "25": 25, + + /** + * value: 31 + * @const + */ + "31": 31, + + /** + * value: 5000 + * @const + */ + "5000": 5000, + + /** + * value: 5001 + * @const + */ + "5001": 5001, + + /** + * value: 5002 + * @const + */ + "5002": 5002, + + /** + * value: 5010 + * @const + */ + "5010": 5010, + + /** + * value: 5011 + * @const + */ + "5011": 5011, + + /** + * value: 5012 + * @const + */ + "5012": 5012, + + /** + * value: 5013 + * @const + */ + "5013": 5013, + + /** + * value: 5014 + * @const + */ + "5014": 5014, + + /** + * value: 5015 + * @const + */ + "5015": 5015, + + /** + * value: 5016 + * @const + */ + "5016": 5016, + + /** + * value: 5017 + * @const + */ + "5017": 5017, + + /** + * value: 90010 + * @const + */ + "90010": 90010, + + /** + * value: 90011 + * @const + */ + "90011": 90011, + + /** + * value: 90012 + * @const + */ + "90012": 90012, + + /** + * value: 90013 + * @const + */ + "90013": 90013 +}; + + + +export default InlineResponse2003PolicyInfoTaxPolicyList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PricingList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PricingList.js new file mode 100644 index 0000000..508275b --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PricingList.js @@ -0,0 +1,107 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PricingList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PricingList + * @version 1.2.0 + */ +class InlineResponse2003PricingList { + /** + * Constructs a new InlineResponse2003PricingList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PricingList + * @param dateTime {Number} The timestamp of the pricing information. + * @param occupancy {Number} The number of occupants for which the pricing applies. + * @param priceList {Object.} A mapping of number of days of stay to prices. + * @param currencyCode {String} The currency code for the prices. + */ + constructor(dateTime, occupancy, priceList, currencyCode) { + + InlineResponse2003PricingList.initialize(this, dateTime, occupancy, priceList, currencyCode); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, dateTime, occupancy, priceList, currencyCode) { + obj['dateTime'] = dateTime; + obj['occupancy'] = occupancy; + obj['priceList'] = priceList; + obj['currencyCode'] = currencyCode; + } + + /** + * Constructs a InlineResponse2003PricingList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PricingList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PricingList} The populated InlineResponse2003PricingList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PricingList(); + + if (data.hasOwnProperty('dateTime')) { + obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Number'); + } + if (data.hasOwnProperty('occupancy')) { + obj['occupancy'] = ApiClient.convertToType(data['occupancy'], 'Number'); + } + if (data.hasOwnProperty('priceList')) { + obj['priceList'] = ApiClient.convertToType(data['priceList'], {'String': 'Number'}); + } + if (data.hasOwnProperty('currencyCode')) { + obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); + } + } + return obj; + } + + +} + +/** + * The timestamp of the pricing information. + * @member {Number} dateTime + */ +InlineResponse2003PricingList.prototype['dateTime'] = undefined; + +/** + * The number of occupants for which the pricing applies. + * @member {Number} occupancy + */ +InlineResponse2003PricingList.prototype['occupancy'] = undefined; + +/** + * A mapping of number of days of stay to prices. + * @member {Object.} priceList + */ +InlineResponse2003PricingList.prototype['priceList'] = undefined; + +/** + * The currency code for the prices. + * @member {String} currencyCode + */ +InlineResponse2003PricingList.prototype['currencyCode'] = undefined; + + + + + + +export default InlineResponse2003PricingList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003ProductList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003ProductList.js new file mode 100644 index 0000000..6bc1f71 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003ProductList.js @@ -0,0 +1,306 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2003PolicyInfo from './InlineResponse2003PolicyInfo'; +import InlineResponse2003RatePlanList from './InlineResponse2003RatePlanList'; + +/** + * The InlineResponse2003ProductList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003ProductList + * @version 1.2.0 + */ +class InlineResponse2003ProductList { + /** + * Constructs a new InlineResponse2003ProductList. + * A list of available products for this property. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003ProductList + * @param propertyId {String} The ID of the property. + * @param name {String} The name of the product. + * @param mealPlanList {Array.} A list of meal type codes included in this product. + * @param roomTypeList {Array.} An array of strings describing the room types included in this product. + * @param ratePlanList {Array.} The rate plans for this product. + */ + constructor(propertyId, name, mealPlanList, roomTypeList, ratePlanList) { + + InlineResponse2003ProductList.initialize(this, propertyId, name, mealPlanList, roomTypeList, ratePlanList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, propertyId, name, mealPlanList, roomTypeList, ratePlanList) { + obj['propertyId'] = propertyId; + obj['name'] = name; + obj['mealPlanList'] = mealPlanList; + obj['roomTypeList'] = roomTypeList; + obj['ratePlanList'] = ratePlanList; + } + + /** + * Constructs a InlineResponse2003ProductList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003ProductList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003ProductList} The populated InlineResponse2003ProductList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003ProductList(); + + if (data.hasOwnProperty('propertyId')) { + obj['propertyId'] = ApiClient.convertToType(data['propertyId'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('mealPlanList')) { + obj['mealPlanList'] = ApiClient.convertToType(data['mealPlanList'], ['Number']); + } + if (data.hasOwnProperty('roomTypeList')) { + obj['roomTypeList'] = ApiClient.convertToType(data['roomTypeList'], ['String']); + } + if (data.hasOwnProperty('isLOSPricing')) { + obj['isLOSPricing'] = ApiClient.convertToType(data['isLOSPricing'], 'Boolean'); + } + if (data.hasOwnProperty('isOBPPricing')) { + obj['isOBPPricing'] = ApiClient.convertToType(data['isOBPPricing'], 'Boolean'); + } + if (data.hasOwnProperty('ratePlanList')) { + obj['ratePlanList'] = ApiClient.convertToType(data['ratePlanList'], [InlineResponse2003RatePlanList]); + } + if (data.hasOwnProperty('policyInfo')) { + obj['policyInfo'] = InlineResponse2003PolicyInfo.constructFromObject(data['policyInfo']); + } + } + return obj; + } + + +} + +/** + * The ID of the property. + * @member {String} propertyId + */ +InlineResponse2003ProductList.prototype['propertyId'] = undefined; + +/** + * The name of the product. + * @member {String} name + */ +InlineResponse2003ProductList.prototype['name'] = undefined; + +/** + * A list of meal type codes included in this product. + * @member {Array.} mealPlanList + */ +InlineResponse2003ProductList.prototype['mealPlanList'] = undefined; + +/** + * An array of strings describing the room types included in this product. + * @member {Array.} roomTypeList + */ +InlineResponse2003ProductList.prototype['roomTypeList'] = undefined; + +/** + * Whether this product is length of stay pricing. + * @member {Boolean} isLOSPricing + */ +InlineResponse2003ProductList.prototype['isLOSPricing'] = undefined; + +/** + * Whether this product is occupancy based pricing. + * @member {Boolean} isOBPPricing + */ +InlineResponse2003ProductList.prototype['isOBPPricing'] = undefined; + +/** + * The rate plans for this product. + * @member {Array.} ratePlanList + */ +InlineResponse2003ProductList.prototype['ratePlanList'] = undefined; + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfo} policyInfo + */ +InlineResponse2003ProductList.prototype['policyInfo'] = undefined; + + + + + +/** + * Allowed values for the mealPlanList property. + * @enum {Number} + * @readonly + */ +InlineResponse2003ProductList['MealPlanListEnum'] = { + + /** + * value: 0 + * @const + */ + "0": 0, + + /** + * value: 1 + * @const + */ + "1": 1, + + /** + * value: 2 + * @const + */ + "2": 2, + + /** + * value: 3 + * @const + */ + "3": 3, + + /** + * value: 4 + * @const + */ + "4": 4, + + /** + * value: 5 + * @const + */ + "5": 5, + + /** + * value: 6 + * @const + */ + "6": 6, + + /** + * value: 7 + * @const + */ + "7": 7, + + /** + * value: 8 + * @const + */ + "8": 8, + + /** + * value: 9 + * @const + */ + "9": 9, + + /** + * value: 10 + * @const + */ + "10": 10, + + /** + * value: 11 + * @const + */ + "11": 11, + + /** + * value: 12 + * @const + */ + "12": 12, + + /** + * value: 14 + * @const + */ + "14": 14, + + /** + * value: 15 + * @const + */ + "15": 15, + + /** + * value: 16 + * @const + */ + "16": 16, + + /** + * value: 17 + * @const + */ + "17": 17, + + /** + * value: 18 + * @const + */ + "18": 18, + + /** + * value: 19 + * @const + */ + "19": 19, + + /** + * value: 20 + * @const + */ + "20": 20, + + /** + * value: 21 + * @const + */ + "21": 21, + + /** + * value: 22 + * @const + */ + "22": 22, + + /** + * value: 23 + * @const + */ + "23": 23, + + /** + * value: 24 + * @const + */ + "24": 24, + + /** + * value: 90001 + * @const + */ + "90001": 90001 +}; + + + +export default InlineResponse2003ProductList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003Property.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003Property.js new file mode 100644 index 0000000..009ea61 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003Property.js @@ -0,0 +1,236 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2001Geo from './InlineResponse2001Geo'; +import InlineResponse2003PropertyAwardList from './InlineResponse2003PropertyAwardList'; +import InlineResponse2003PropertyCancellationGracePeriod from './InlineResponse2003PropertyCancellationGracePeriod'; +import InlineResponse2003PropertyContactList from './InlineResponse2003PropertyContactList'; +import InlineResponse2003PropertyFacilityInfo from './InlineResponse2003PropertyFacilityInfo'; +import InlineResponse2003PropertyGuestInfo from './InlineResponse2003PropertyGuestInfo'; +import InlineResponse2003PropertyMediaList from './InlineResponse2003PropertyMediaList'; +import InlineResponse2003PropertyPolicyList from './InlineResponse2003PropertyPolicyList'; +import InlineResponse2003PropertyPropertyInfo from './InlineResponse2003PropertyPropertyInfo'; +import InlineResponse2003PropertyRecordCreated from './InlineResponse2003PropertyRecordCreated'; +import InlineResponse2003PropertyRecordModified from './InlineResponse2003PropertyRecordModified'; +import InlineResponse2003PropertyServiceList from './InlineResponse2003PropertyServiceList'; + +/** + * The InlineResponse2003Property model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003Property + * @version 1.2.0 + */ +class InlineResponse2003Property { + /** + * Constructs a new InlineResponse2003Property. + * An object containing all available base data for the requested property. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003Property + * @param code {String} The properties unique identifier. + * @param name {String} The properties name. + * @param recordCreated {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordCreated} + * @param recordModified {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordModified} + * @param propertyInfo {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfo} + * @param awardList {Array.} A list of the ratings available for this property. + * @param contactList {Array.} A contact with a profile type and a list of addresses + * @param mediaList {Array.} A list of media objects for the property. + * @param published {Boolean} Indicates whether the policy has been published or not. + * @param policyList {Array.} A list of policies associated with the property. + * @param serviceList {Array.} A list of objects each describing an available service, its pricing and its availability. + */ + constructor(code, name, recordCreated, recordModified, propertyInfo, awardList, contactList, mediaList, published, policyList, serviceList) { + + InlineResponse2003Property.initialize(this, code, name, recordCreated, recordModified, propertyInfo, awardList, contactList, mediaList, published, policyList, serviceList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, code, name, recordCreated, recordModified, propertyInfo, awardList, contactList, mediaList, published, policyList, serviceList) { + obj['code'] = code; + obj['name'] = name; + obj['recordCreated'] = recordCreated; + obj['recordModified'] = recordModified; + obj['propertyInfo'] = propertyInfo; + obj['awardList'] = awardList; + obj['contactList'] = contactList; + obj['mediaList'] = mediaList; + obj['published'] = published; + obj['policyList'] = policyList; + obj['serviceList'] = serviceList; + } + + /** + * Constructs a InlineResponse2003Property from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003Property} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003Property} The populated InlineResponse2003Property instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003Property(); + + if (data.hasOwnProperty('code')) { + obj['code'] = ApiClient.convertToType(data['code'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('recordCreated')) { + obj['recordCreated'] = InlineResponse2003PropertyRecordCreated.constructFromObject(data['recordCreated']); + } + if (data.hasOwnProperty('recordModified')) { + obj['recordModified'] = InlineResponse2003PropertyRecordModified.constructFromObject(data['recordModified']); + } + if (data.hasOwnProperty('propertyInfo')) { + obj['propertyInfo'] = InlineResponse2003PropertyPropertyInfo.constructFromObject(data['propertyInfo']); + } + if (data.hasOwnProperty('guestInfo')) { + obj['guestInfo'] = InlineResponse2003PropertyGuestInfo.constructFromObject(data['guestInfo']); + } + if (data.hasOwnProperty('awardList')) { + obj['awardList'] = ApiClient.convertToType(data['awardList'], [InlineResponse2003PropertyAwardList]); + } + if (data.hasOwnProperty('contactList')) { + obj['contactList'] = ApiClient.convertToType(data['contactList'], [InlineResponse2003PropertyContactList]); + } + if (data.hasOwnProperty('facilityInfo')) { + obj['facilityInfo'] = InlineResponse2003PropertyFacilityInfo.constructFromObject(data['facilityInfo']); + } + if (data.hasOwnProperty('mediaList')) { + obj['mediaList'] = ApiClient.convertToType(data['mediaList'], [InlineResponse2003PropertyMediaList]); + } + if (data.hasOwnProperty('geo')) { + obj['geo'] = ApiClient.convertToType(data['geo'], {'String': InlineResponse2001Geo}); + } + if (data.hasOwnProperty('published')) { + obj['published'] = ApiClient.convertToType(data['published'], 'Boolean'); + } + if (data.hasOwnProperty('policyList')) { + obj['policyList'] = ApiClient.convertToType(data['policyList'], [InlineResponse2003PropertyPolicyList]); + } + if (data.hasOwnProperty('uri')) { + obj['uri'] = ApiClient.convertToType(data['uri'], 'String'); + } + if (data.hasOwnProperty('cancellationGracePeriod')) { + obj['cancellationGracePeriod'] = InlineResponse2003PropertyCancellationGracePeriod.constructFromObject(data['cancellationGracePeriod']); + } + if (data.hasOwnProperty('serviceList')) { + obj['serviceList'] = ApiClient.convertToType(data['serviceList'], [InlineResponse2003PropertyServiceList]); + } + } + return obj; + } + + +} + +/** + * The properties unique identifier. + * @member {String} code + */ +InlineResponse2003Property.prototype['code'] = undefined; + +/** + * The properties name. + * @member {String} name + */ +InlineResponse2003Property.prototype['name'] = undefined; + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordCreated} recordCreated + */ +InlineResponse2003Property.prototype['recordCreated'] = undefined; + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordModified} recordModified + */ +InlineResponse2003Property.prototype['recordModified'] = undefined; + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfo} propertyInfo + */ +InlineResponse2003Property.prototype['propertyInfo'] = undefined; + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuestInfo} guestInfo + */ +InlineResponse2003Property.prototype['guestInfo'] = undefined; + +/** + * A list of the ratings available for this property. + * @member {Array.} awardList + */ +InlineResponse2003Property.prototype['awardList'] = undefined; + +/** + * A contact with a profile type and a list of addresses + * @member {Array.} contactList + */ +InlineResponse2003Property.prototype['contactList'] = undefined; + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfo} facilityInfo + */ +InlineResponse2003Property.prototype['facilityInfo'] = undefined; + +/** + * A list of media objects for the property. + * @member {Array.} mediaList + */ +InlineResponse2003Property.prototype['mediaList'] = undefined; + +/** + * An object containing language codes as keys and objects describing the properties geographical location as values. + * @member {Object.} geo + */ +InlineResponse2003Property.prototype['geo'] = undefined; + +/** + * Indicates whether the policy has been published or not. + * @member {Boolean} published + */ +InlineResponse2003Property.prototype['published'] = undefined; + +/** + * A list of policies associated with the property. + * @member {Array.} policyList + */ +InlineResponse2003Property.prototype['policyList'] = undefined; + +/** + * A unique identifier for the accommodation. + * @member {String} uri + */ +InlineResponse2003Property.prototype['uri'] = undefined; + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationGracePeriod} cancellationGracePeriod + */ +InlineResponse2003Property.prototype['cancellationGracePeriod'] = undefined; + +/** + * A list of objects each describing an available service, its pricing and its availability. + * @member {Array.} serviceList + */ +InlineResponse2003Property.prototype['serviceList'] = undefined; + + + + + + +export default InlineResponse2003Property; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyAddressList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyAddressList.js new file mode 100644 index 0000000..d5654e3 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyAddressList.js @@ -0,0 +1,123 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyAddressList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyAddressList + * @version 1.2.0 + */ +class InlineResponse2003PropertyAddressList { + /** + * Constructs a new InlineResponse2003PropertyAddressList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyAddressList + * @param addressLine {String} The first line of the address for this contact + * @param cityName {String} The city of this contact + * @param postalCode {String} The postal code of this contact + */ + constructor(addressLine, cityName, postalCode) { + + InlineResponse2003PropertyAddressList.initialize(this, addressLine, cityName, postalCode); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, addressLine, cityName, postalCode) { + obj['addressLine'] = addressLine; + obj['cityName'] = cityName; + obj['postalCode'] = postalCode; + } + + /** + * Constructs a InlineResponse2003PropertyAddressList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyAddressList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyAddressList} The populated InlineResponse2003PropertyAddressList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyAddressList(); + + if (data.hasOwnProperty('addressLine')) { + obj['addressLine'] = ApiClient.convertToType(data['addressLine'], 'String'); + } + if (data.hasOwnProperty('propertyName')) { + obj['propertyName'] = ApiClient.convertToType(data['propertyName'], 'String'); + } + if (data.hasOwnProperty('cityName')) { + obj['cityName'] = ApiClient.convertToType(data['cityName'], 'String'); + } + if (data.hasOwnProperty('postalCode')) { + obj['postalCode'] = ApiClient.convertToType(data['postalCode'], 'String'); + } + if (data.hasOwnProperty('state')) { + obj['state'] = ApiClient.convertToType(data['state'], 'String'); + } + if (data.hasOwnProperty('countryCode')) { + obj['countryCode'] = ApiClient.convertToType(data['countryCode'], 'String'); + } + } + return obj; + } + + +} + +/** + * The first line of the address for this contact + * @member {String} addressLine + */ +InlineResponse2003PropertyAddressList.prototype['addressLine'] = undefined; + +/** + * The name of the property for this contact + * @member {String} propertyName + */ +InlineResponse2003PropertyAddressList.prototype['propertyName'] = undefined; + +/** + * The city of this contact + * @member {String} cityName + */ +InlineResponse2003PropertyAddressList.prototype['cityName'] = undefined; + +/** + * The postal code of this contact + * @member {String} postalCode + */ +InlineResponse2003PropertyAddressList.prototype['postalCode'] = undefined; + +/** + * The state/region of this contact + * @member {String} state + */ +InlineResponse2003PropertyAddressList.prototype['state'] = undefined; + +/** + * The country code of this contact + * @member {String} countryCode + */ +InlineResponse2003PropertyAddressList.prototype['countryCode'] = undefined; + + + + + + +export default InlineResponse2003PropertyAddressList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyAwardList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyAwardList.js new file mode 100644 index 0000000..bbc8a48 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyAwardList.js @@ -0,0 +1,100 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyAwardList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyAwardList + * @version 1.2.0 + */ +class InlineResponse2003PropertyAwardList { + /** + * Constructs a new InlineResponse2003PropertyAwardList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyAwardList + * @param provider {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyAwardList.ProviderEnum} The source of this rating. Currently only star-rating is possible. + * @param rating {Number} The value of this rating + */ + constructor(provider, rating) { + + InlineResponse2003PropertyAwardList.initialize(this, provider, rating); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, provider, rating) { + obj['provider'] = provider; + obj['rating'] = rating; + } + + /** + * Constructs a InlineResponse2003PropertyAwardList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyAwardList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyAwardList} The populated InlineResponse2003PropertyAwardList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyAwardList(); + + if (data.hasOwnProperty('provider')) { + obj['provider'] = ApiClient.convertToType(data['provider'], 'String'); + } + if (data.hasOwnProperty('rating')) { + obj['rating'] = ApiClient.convertToType(data['rating'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The source of this rating. Currently only star-rating is possible. + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyAwardList.ProviderEnum} provider + */ +InlineResponse2003PropertyAwardList.prototype['provider'] = undefined; + +/** + * The value of this rating + * @member {Number} rating + */ +InlineResponse2003PropertyAwardList.prototype['rating'] = undefined; + + + + + +/** + * Allowed values for the provider property. + * @enum {String} + * @readonly + */ +InlineResponse2003PropertyAwardList['ProviderEnum'] = { + + /** + * value: "star-rating" + * @const + */ + "star-rating": "star-rating" +}; + + + +export default InlineResponse2003PropertyAwardList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationGracePeriod.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationGracePeriod.js new file mode 100644 index 0000000..e945909 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationGracePeriod.js @@ -0,0 +1,86 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyCancellationGracePeriod model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationGracePeriod + * @version 1.2.0 + */ +class InlineResponse2003PropertyCancellationGracePeriod { + /** + * Constructs a new InlineResponse2003PropertyCancellationGracePeriod. + * An object describing the cancellation grace periods. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationGracePeriod + * @param hoursAfterBooking {Number} The number of hours after booking that the cancellation grace period starts. + * @param weeksBeforeCheckIn {Number} The number of weeks before check-in that the cancellation grace period starts. + */ + constructor(hoursAfterBooking, weeksBeforeCheckIn) { + + InlineResponse2003PropertyCancellationGracePeriod.initialize(this, hoursAfterBooking, weeksBeforeCheckIn); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, hoursAfterBooking, weeksBeforeCheckIn) { + obj['hoursAfterBooking'] = hoursAfterBooking; + obj['weeksBeforeCheckIn'] = weeksBeforeCheckIn; + } + + /** + * Constructs a InlineResponse2003PropertyCancellationGracePeriod from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationGracePeriod} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationGracePeriod} The populated InlineResponse2003PropertyCancellationGracePeriod instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyCancellationGracePeriod(); + + if (data.hasOwnProperty('hoursAfterBooking')) { + obj['hoursAfterBooking'] = ApiClient.convertToType(data['hoursAfterBooking'], 'Number'); + } + if (data.hasOwnProperty('weeksBeforeCheckIn')) { + obj['weeksBeforeCheckIn'] = ApiClient.convertToType(data['weeksBeforeCheckIn'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The number of hours after booking that the cancellation grace period starts. + * @member {Number} hoursAfterBooking + */ +InlineResponse2003PropertyCancellationGracePeriod.prototype['hoursAfterBooking'] = undefined; + +/** + * The number of weeks before check-in that the cancellation grace period starts. + * @member {Number} weeksBeforeCheckIn + */ +InlineResponse2003PropertyCancellationGracePeriod.prototype['weeksBeforeCheckIn'] = undefined; + + + + + + +export default InlineResponse2003PropertyCancellationGracePeriod; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationPolicyList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationPolicyList.js new file mode 100644 index 0000000..51b0f23 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationPolicyList.js @@ -0,0 +1,140 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyCancellationPolicyList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationPolicyList + * @version 1.2.0 + */ +class InlineResponse2003PropertyCancellationPolicyList { + /** + * Constructs a new InlineResponse2003PropertyCancellationPolicyList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationPolicyList + * @param percentAfterReservation {Number} Percentage of refund after reservation. + * @param nightsAfterReservation {Number} Number of nights after reservation. + * @param deadlineDays {Number} Deadline in days. + * @param deadlineHours {Number} Deadline in hours. + * @param percentAfterDeadline {Number} Percentage of refund after deadline. + * @param nightsAfterDeadline {Number} Number of nights after deadline. + * @param noShowPolicy {String} No-show policy + */ + constructor(percentAfterReservation, nightsAfterReservation, deadlineDays, deadlineHours, percentAfterDeadline, nightsAfterDeadline, noShowPolicy) { + + InlineResponse2003PropertyCancellationPolicyList.initialize(this, percentAfterReservation, nightsAfterReservation, deadlineDays, deadlineHours, percentAfterDeadline, nightsAfterDeadline, noShowPolicy); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, percentAfterReservation, nightsAfterReservation, deadlineDays, deadlineHours, percentAfterDeadline, nightsAfterDeadline, noShowPolicy) { + obj['percentAfterReservation'] = percentAfterReservation; + obj['nightsAfterReservation'] = nightsAfterReservation; + obj['deadlineDays'] = deadlineDays; + obj['deadlineHours'] = deadlineHours; + obj['percentAfterDeadline'] = percentAfterDeadline; + obj['nightsAfterDeadline'] = nightsAfterDeadline; + obj['noShowPolicy'] = noShowPolicy; + } + + /** + * Constructs a InlineResponse2003PropertyCancellationPolicyList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationPolicyList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationPolicyList} The populated InlineResponse2003PropertyCancellationPolicyList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyCancellationPolicyList(); + + if (data.hasOwnProperty('percentAfterReservation')) { + obj['percentAfterReservation'] = ApiClient.convertToType(data['percentAfterReservation'], 'Number'); + } + if (data.hasOwnProperty('nightsAfterReservation')) { + obj['nightsAfterReservation'] = ApiClient.convertToType(data['nightsAfterReservation'], 'Number'); + } + if (data.hasOwnProperty('deadlineDays')) { + obj['deadlineDays'] = ApiClient.convertToType(data['deadlineDays'], 'Number'); + } + if (data.hasOwnProperty('deadlineHours')) { + obj['deadlineHours'] = ApiClient.convertToType(data['deadlineHours'], 'Number'); + } + if (data.hasOwnProperty('percentAfterDeadline')) { + obj['percentAfterDeadline'] = ApiClient.convertToType(data['percentAfterDeadline'], 'Number'); + } + if (data.hasOwnProperty('nightsAfterDeadline')) { + obj['nightsAfterDeadline'] = ApiClient.convertToType(data['nightsAfterDeadline'], 'Number'); + } + if (data.hasOwnProperty('noShowPolicy')) { + obj['noShowPolicy'] = ApiClient.convertToType(data['noShowPolicy'], 'String'); + } + } + return obj; + } + + +} + +/** + * Percentage of refund after reservation. + * @member {Number} percentAfterReservation + */ +InlineResponse2003PropertyCancellationPolicyList.prototype['percentAfterReservation'] = undefined; + +/** + * Number of nights after reservation. + * @member {Number} nightsAfterReservation + */ +InlineResponse2003PropertyCancellationPolicyList.prototype['nightsAfterReservation'] = undefined; + +/** + * Deadline in days. + * @member {Number} deadlineDays + */ +InlineResponse2003PropertyCancellationPolicyList.prototype['deadlineDays'] = undefined; + +/** + * Deadline in hours. + * @member {Number} deadlineHours + */ +InlineResponse2003PropertyCancellationPolicyList.prototype['deadlineHours'] = undefined; + +/** + * Percentage of refund after deadline. + * @member {Number} percentAfterDeadline + */ +InlineResponse2003PropertyCancellationPolicyList.prototype['percentAfterDeadline'] = undefined; + +/** + * Number of nights after deadline. + * @member {Number} nightsAfterDeadline + */ +InlineResponse2003PropertyCancellationPolicyList.prototype['nightsAfterDeadline'] = undefined; + +/** + * No-show policy + * @member {String} noShowPolicy + */ +InlineResponse2003PropertyCancellationPolicyList.prototype['noShowPolicy'] = undefined; + + + + + + +export default InlineResponse2003PropertyCancellationPolicyList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyContactList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyContactList.js new file mode 100644 index 0000000..40ac2af --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyContactList.js @@ -0,0 +1,155 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2003PropertyAddressList from './InlineResponse2003PropertyAddressList'; + +/** + * The InlineResponse2003PropertyContactList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyContactList + * @version 1.2.0 + */ +class InlineResponse2003PropertyContactList { + /** + * Constructs a new InlineResponse2003PropertyContactList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyContactList + * @param profileType {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyContactList.ProfileTypeEnum} The type of profile this contact belongs to. + * @param addressList {Array.} A list of addresses for this contact + */ + constructor(profileType, addressList) { + + InlineResponse2003PropertyContactList.initialize(this, profileType, addressList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, profileType, addressList) { + obj['profileType'] = profileType; + obj['addressList'] = addressList; + } + + /** + * Constructs a InlineResponse2003PropertyContactList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyContactList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyContactList} The populated InlineResponse2003PropertyContactList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyContactList(); + + if (data.hasOwnProperty('profileType')) { + obj['profileType'] = ApiClient.convertToType(data['profileType'], 'String'); + } + if (data.hasOwnProperty('addressList')) { + obj['addressList'] = ApiClient.convertToType(data['addressList'], [InlineResponse2003PropertyAddressList]); + } + } + return obj; + } + + +} + +/** + * The type of profile this contact belongs to. + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyContactList.ProfileTypeEnum} profileType + */ +InlineResponse2003PropertyContactList.prototype['profileType'] = undefined; + +/** + * A list of addresses for this contact + * @member {Array.} addressList + */ +InlineResponse2003PropertyContactList.prototype['addressList'] = undefined; + + + + + +/** + * Allowed values for the profileType property. + * @enum {String} + * @readonly + */ +InlineResponse2003PropertyContactList['ProfileTypeEnum'] = { + + /** + * value: "general" + * @const + */ + "general": "general", + + /** + * value: "contract" + * @const + */ + "contract": "contract", + + /** + * value: "reservations" + * @const + */ + "reservations": "reservations", + + /** + * value: "invoices" + * @const + */ + "invoices": "invoices", + + /** + * value: "availability" + * @const + */ + "availability": "availability", + + /** + * value: "site_content" + * @const + */ + "site_content": "site_content", + + /** + * value: "parity" + * @const + */ + "parity": "parity", + + /** + * value: "requests" + * @const + */ + "requests": "requests", + + /** + * value: "central_reservations" + * @const + */ + "central_reservations": "central_reservations", + + /** + * value: "physicallocation" + * @const + */ + "physicallocation": "physicallocation" +}; + + + +export default InlineResponse2003PropertyContactList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfo.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfo.js new file mode 100644 index 0000000..7f8da0a --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfo.js @@ -0,0 +1,76 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2003PropertyFacilityInfoGuestRoomList from './InlineResponse2003PropertyFacilityInfoGuestRoomList'; + +/** + * The InlineResponse2003PropertyFacilityInfo model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfo + * @version 1.2.0 + */ +class InlineResponse2003PropertyFacilityInfo { + /** + * Constructs a new InlineResponse2003PropertyFacilityInfo. + * Further information regarding the facility. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfo + * @param guestRoomList {Array.} An array of objects representing a room in the property. + */ + constructor(guestRoomList) { + + InlineResponse2003PropertyFacilityInfo.initialize(this, guestRoomList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, guestRoomList) { + obj['guestRoomList'] = guestRoomList; + } + + /** + * Constructs a InlineResponse2003PropertyFacilityInfo from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfo} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfo} The populated InlineResponse2003PropertyFacilityInfo instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyFacilityInfo(); + + if (data.hasOwnProperty('guestRoomList')) { + obj['guestRoomList'] = ApiClient.convertToType(data['guestRoomList'], [InlineResponse2003PropertyFacilityInfoGuestRoomList]); + } + } + return obj; + } + + +} + +/** + * An array of objects representing a room in the property. + * @member {Array.} guestRoomList + */ +InlineResponse2003PropertyFacilityInfo.prototype['guestRoomList'] = undefined; + + + + + + +export default InlineResponse2003PropertyFacilityInfo; + diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoAmenityList.js similarity index 90% rename from src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.js rename to src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoAmenityList.js index e718442..758f64d 100644 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.js +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoAmenityList.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,20 +14,20 @@ import ApiClient from '../ApiClient'; /** - * The PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner - * @version 1.1.5 + * The InlineResponse2003PropertyFacilityInfoAmenityList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoAmenityList + * @version 1.2.0 */ -class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner { +class InlineResponse2003PropertyFacilityInfoAmenityList { /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner - * @param code {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.CodeEnum} The code indicating the room amenity type.

See also in the appendix.

+ * Constructs a new InlineResponse2003PropertyFacilityInfoAmenityList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoAmenityList + * @param code {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoAmenityList.CodeEnum} The code indicating the room amenity type.

See also in the appendix.

* @param quantity {Number} The quantity of this amenity type in this room. */ constructor(code, quantity) { - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.initialize(this, code, quantity); + InlineResponse2003PropertyFacilityInfoAmenityList.initialize(this, code, quantity); } /** @@ -41,15 +41,15 @@ class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAm } /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineResponse2003PropertyFacilityInfoAmenityList from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner} The populated PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner instance. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoAmenityList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoAmenityList} The populated InlineResponse2003PropertyFacilityInfoAmenityList instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner(); + obj = obj || new InlineResponse2003PropertyFacilityInfoAmenityList(); if (data.hasOwnProperty('code')) { obj['code'] = ApiClient.convertToType(data['code'], 'Number'); @@ -61,38 +61,20 @@ class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAm return obj; } - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - - return true; - } - } -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.RequiredProperties = ["code", "quantity"]; - /** * The code indicating the room amenity type.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.CodeEnum} code + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoAmenityList.CodeEnum} code */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.prototype['code'] = undefined; +InlineResponse2003PropertyFacilityInfoAmenityList.prototype['code'] = undefined; /** * The quantity of this amenity type in this room. * @member {Number} quantity */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.prototype['quantity'] = undefined; +InlineResponse2003PropertyFacilityInfoAmenityList.prototype['quantity'] = undefined; @@ -103,7 +85,7 @@ PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityL * @enum {Number} * @readonly */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner['CodeEnum'] = { +InlineResponse2003PropertyFacilityInfoAmenityList['CodeEnum'] = { /** * value: 1 @@ -2940,5 +2922,5 @@ PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityL -export default PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner; +export default InlineResponse2003PropertyFacilityInfoAmenityList; diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoGuestRoomList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoGuestRoomList.js new file mode 100644 index 0000000..7630786 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoGuestRoomList.js @@ -0,0 +1,305 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2003PropertyFacilityInfoAmenityList from './InlineResponse2003PropertyFacilityInfoAmenityList'; +import InlineResponse2003PropertyFacilityInfoMediaList from './InlineResponse2003PropertyFacilityInfoMediaList'; +import InlineResponse2003PropertyFacilityInfoMessageList from './InlineResponse2003PropertyFacilityInfoMessageList'; + +/** + * The InlineResponse2003PropertyFacilityInfoGuestRoomList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoGuestRoomList + * @version 1.2.0 + */ +class InlineResponse2003PropertyFacilityInfoGuestRoomList { + /** + * Constructs a new InlineResponse2003PropertyFacilityInfoGuestRoomList. + * An object representing a room in the property. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoGuestRoomList + * @param isActive {Boolean} Indicates whether the room is active or not. + * @param roomId {String} The unique identifier for the room. + * @param name {String} The name of the room. + * @param mediaList {Array.} A list of media objects for the room. + * @param roomTypeCode {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoGuestRoomList.RoomTypeCodeEnum} The unit and room type code.

See also in the appendix.

+ * @param isNonSmoking {Boolean} Indicates whether the room is designated as non-smoking. + * @param amenityList {Array.} A list of amenities provided in the room. + * @param messageList {Array.} A list of messages associated with the room. + * @param maxOccupancy {Number} The maximum occupancy of the room. + * @param maxAdultOccupancy {Number} The maximum number of adults that can occupy the room. + * @param maxChildOccupancy {Number} The maximum number of children that can occupy the room. + */ + constructor(isActive, roomId, name, mediaList, roomTypeCode, isNonSmoking, amenityList, messageList, maxOccupancy, maxAdultOccupancy, maxChildOccupancy) { + + InlineResponse2003PropertyFacilityInfoGuestRoomList.initialize(this, isActive, roomId, name, mediaList, roomTypeCode, isNonSmoking, amenityList, messageList, maxOccupancy, maxAdultOccupancy, maxChildOccupancy); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, isActive, roomId, name, mediaList, roomTypeCode, isNonSmoking, amenityList, messageList, maxOccupancy, maxAdultOccupancy, maxChildOccupancy) { + obj['isActive'] = isActive; + obj['roomId'] = roomId; + obj['name'] = name; + obj['mediaList'] = mediaList; + obj['roomTypeCode'] = roomTypeCode; + obj['isNonSmoking'] = isNonSmoking; + obj['amenityList'] = amenityList; + obj['messageList'] = messageList; + obj['maxOccupancy'] = maxOccupancy; + obj['maxAdultOccupancy'] = maxAdultOccupancy; + obj['maxChildOccupancy'] = maxChildOccupancy; + } + + /** + * Constructs a InlineResponse2003PropertyFacilityInfoGuestRoomList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoGuestRoomList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoGuestRoomList} The populated InlineResponse2003PropertyFacilityInfoGuestRoomList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyFacilityInfoGuestRoomList(); + + if (data.hasOwnProperty('isActive')) { + obj['isActive'] = ApiClient.convertToType(data['isActive'], 'Boolean'); + } + if (data.hasOwnProperty('roomId')) { + obj['roomId'] = ApiClient.convertToType(data['roomId'], 'String'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('mediaList')) { + obj['mediaList'] = ApiClient.convertToType(data['mediaList'], [InlineResponse2003PropertyFacilityInfoMediaList]); + } + if (data.hasOwnProperty('roomTypeCode')) { + obj['roomTypeCode'] = ApiClient.convertToType(data['roomTypeCode'], 'Number'); + } + if (data.hasOwnProperty('isNonSmoking')) { + obj['isNonSmoking'] = ApiClient.convertToType(data['isNonSmoking'], 'Boolean'); + } + if (data.hasOwnProperty('amenityList')) { + obj['amenityList'] = ApiClient.convertToType(data['amenityList'], [InlineResponse2003PropertyFacilityInfoAmenityList]); + } + if (data.hasOwnProperty('messageList')) { + obj['messageList'] = ApiClient.convertToType(data['messageList'], [InlineResponse2003PropertyFacilityInfoMessageList]); + } + if (data.hasOwnProperty('maxOccupancy')) { + obj['maxOccupancy'] = ApiClient.convertToType(data['maxOccupancy'], 'Number'); + } + if (data.hasOwnProperty('maxAdultOccupancy')) { + obj['maxAdultOccupancy'] = ApiClient.convertToType(data['maxAdultOccupancy'], 'Number'); + } + if (data.hasOwnProperty('maxChildOccupancy')) { + obj['maxChildOccupancy'] = ApiClient.convertToType(data['maxChildOccupancy'], 'Number'); + } + } + return obj; + } + + +} + +/** + * Indicates whether the room is active or not. + * @member {Boolean} isActive + */ +InlineResponse2003PropertyFacilityInfoGuestRoomList.prototype['isActive'] = undefined; + +/** + * The unique identifier for the room. + * @member {String} roomId + */ +InlineResponse2003PropertyFacilityInfoGuestRoomList.prototype['roomId'] = undefined; + +/** + * The name of the room. + * @member {String} name + */ +InlineResponse2003PropertyFacilityInfoGuestRoomList.prototype['name'] = undefined; + +/** + * A list of media objects for the room. + * @member {Array.} mediaList + */ +InlineResponse2003PropertyFacilityInfoGuestRoomList.prototype['mediaList'] = undefined; + +/** + * The unit and room type code.

See also in the appendix.

+ * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoGuestRoomList.RoomTypeCodeEnum} roomTypeCode + */ +InlineResponse2003PropertyFacilityInfoGuestRoomList.prototype['roomTypeCode'] = undefined; + +/** + * Indicates whether the room is designated as non-smoking. + * @member {Boolean} isNonSmoking + */ +InlineResponse2003PropertyFacilityInfoGuestRoomList.prototype['isNonSmoking'] = undefined; + +/** + * A list of amenities provided in the room. + * @member {Array.} amenityList + */ +InlineResponse2003PropertyFacilityInfoGuestRoomList.prototype['amenityList'] = undefined; + +/** + * A list of messages associated with the room. + * @member {Array.} messageList + */ +InlineResponse2003PropertyFacilityInfoGuestRoomList.prototype['messageList'] = undefined; + +/** + * The maximum occupancy of the room. + * @member {Number} maxOccupancy + */ +InlineResponse2003PropertyFacilityInfoGuestRoomList.prototype['maxOccupancy'] = undefined; + +/** + * The maximum number of adults that can occupy the room. + * @member {Number} maxAdultOccupancy + */ +InlineResponse2003PropertyFacilityInfoGuestRoomList.prototype['maxAdultOccupancy'] = undefined; + +/** + * The maximum number of children that can occupy the room. + * @member {Number} maxChildOccupancy + */ +InlineResponse2003PropertyFacilityInfoGuestRoomList.prototype['maxChildOccupancy'] = undefined; + + + + + +/** + * Allowed values for the roomTypeCode property. + * @enum {Number} + * @readonly + */ +InlineResponse2003PropertyFacilityInfoGuestRoomList['RoomTypeCodeEnum'] = { + + /** + * value: 1 + * @const + */ + "1": 1, + + /** + * value: 4 + * @const + */ + "4": 4, + + /** + * value: 5 + * @const + */ + "5": 5, + + /** + * value: 7 + * @const + */ + "7": 7, + + /** + * value: 8 + * @const + */ + "8": 8, + + /** + * value: 9 + * @const + */ + "9": 9, + + /** + * value: 10 + * @const + */ + "10": 10, + + /** + * value: 12 + * @const + */ + "12": 12, + + /** + * value: 13 + * @const + */ + "13": 13, + + /** + * value: 24 + * @const + */ + "24": 24, + + /** + * value: 25 + * @const + */ + "25": 25, + + /** + * value: 26 + * @const + */ + "26": 26, + + /** + * value: 27 + * @const + */ + "27": 27, + + /** + * value: 28 + * @const + */ + "28": 28, + + /** + * value: 29 + * @const + */ + "29": 29, + + /** + * value: 31 + * @const + */ + "31": 31, + + /** + * value: 32 + * @const + */ + "32": 32, + + /** + * value: 33 + * @const + */ + "33": 33 +}; + + + +export default InlineResponse2003PropertyFacilityInfoGuestRoomList; + diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMediaList.js similarity index 92% rename from src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.js rename to src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMediaList.js index 8f4d410..0f80693 100644 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.js +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMediaList.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,24 +14,24 @@ import ApiClient from '../ApiClient'; /** - * The PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner - * @version 1.1.5 + * The InlineResponse2003PropertyFacilityInfoMediaList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMediaList + * @version 1.2.0 */ -class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner { +class InlineResponse2003PropertyFacilityInfoMediaList { /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner + * Constructs a new InlineResponse2003PropertyFacilityInfoMediaList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMediaList * @param isMainImage {Boolean} Whether the media is the main image for the property. * @param url {String} The URL for the media. * @param sortOrder {Number} The sort order for the media. - * @param tagList {Array.} A list of tag codes for the media.

See also in the appendix.

+ * @param tagList {Array.} A list of tag codes for the media.

See also in the appendix.

* @param moderationLabelList {Array.} A list of detection labels for moderated content (e.g. containing alcoholic beverages) for the media from an AI based detection engine. - * @param propertyAmenityList {Array.} A list of property amenities available at the property that are visible in this media element. + * @param propertyAmenityList {Array.} A list of property amenities available at the property that are visible in this media element. */ constructor(isMainImage, url, sortOrder, tagList, moderationLabelList, propertyAmenityList) { - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.initialize(this, isMainImage, url, sortOrder, tagList, moderationLabelList, propertyAmenityList); + InlineResponse2003PropertyFacilityInfoMediaList.initialize(this, isMainImage, url, sortOrder, tagList, moderationLabelList, propertyAmenityList); } /** @@ -49,15 +49,15 @@ class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMe } /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineResponse2003PropertyFacilityInfoMediaList from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner} The populated PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner instance. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMediaList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMediaList} The populated InlineResponse2003PropertyFacilityInfoMediaList instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner(); + obj = obj || new InlineResponse2003PropertyFacilityInfoMediaList(); if (data.hasOwnProperty('isMainImage')) { obj['isMainImage'] = ApiClient.convertToType(data['isMainImage'], 'Boolean'); @@ -87,98 +87,56 @@ class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMe return obj; } - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['url'] && !(typeof data['url'] === 'string' || data['url'] instanceof String)) { - throw new Error("Expected the field `url` to be a primitive type in the JSON string but got " + data['url']); - } - // ensure the json data is an array - if (!Array.isArray(data['tagList'])) { - throw new Error("Expected the field `tagList` to be an array in the JSON data but got " + data['tagList']); - } - // ensure the json data is an array - if (!Array.isArray(data['moderationLabelList'])) { - throw new Error("Expected the field `moderationLabelList` to be an array in the JSON data but got " + data['moderationLabelList']); - } - // ensure the json data is an array - if (!Array.isArray(data['detectionLabelList'])) { - throw new Error("Expected the field `detectionLabelList` to be an array in the JSON data but got " + data['detectionLabelList']); - } - // ensure the json data is an array - if (!Array.isArray(data['propertyAmenityList'])) { - throw new Error("Expected the field `propertyAmenityList` to be an array in the JSON data but got " + data['propertyAmenityList']); - } - // ensure the json data is an array - if (!Array.isArray(data['roomAmenityList'])) { - throw new Error("Expected the field `roomAmenityList` to be an array in the JSON data but got " + data['roomAmenityList']); - } - - return true; - } - } -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.RequiredProperties = ["isMainImage", "url", "sortOrder", "tagList", "moderationLabelList", "propertyAmenityList"]; - /** * Whether the media is the main image for the property. * @member {Boolean} isMainImage */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.prototype['isMainImage'] = undefined; +InlineResponse2003PropertyFacilityInfoMediaList.prototype['isMainImage'] = undefined; /** * The URL for the media. * @member {String} url */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.prototype['url'] = undefined; +InlineResponse2003PropertyFacilityInfoMediaList.prototype['url'] = undefined; /** * The sort order for the media. * @member {Number} sortOrder */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.prototype['sortOrder'] = undefined; +InlineResponse2003PropertyFacilityInfoMediaList.prototype['sortOrder'] = undefined; /** * A list of tag codes for the media.

See also in the appendix.

- * @member {Array.} tagList + * @member {Array.} tagList */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.prototype['tagList'] = undefined; +InlineResponse2003PropertyFacilityInfoMediaList.prototype['tagList'] = undefined; /** * A list of detection labels for moderated content (e.g. containing alcoholic beverages) for the media from an AI based detection engine. * @member {Array.} moderationLabelList */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.prototype['moderationLabelList'] = undefined; +InlineResponse2003PropertyFacilityInfoMediaList.prototype['moderationLabelList'] = undefined; /** * A list of detection labels for the media from an AI based detection engine. * @member {Array.} detectionLabelList */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.prototype['detectionLabelList'] = undefined; +InlineResponse2003PropertyFacilityInfoMediaList.prototype['detectionLabelList'] = undefined; /** * A list of property amenities available at the property that are visible in this media element. - * @member {Array.} propertyAmenityList + * @member {Array.} propertyAmenityList */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.prototype['propertyAmenityList'] = undefined; +InlineResponse2003PropertyFacilityInfoMediaList.prototype['propertyAmenityList'] = undefined; /** * A list of unit and room amenities available at the property (respectively unit type if applicable) that are visible in this media element. - * @member {Array.} roomAmenityList + * @member {Array.} roomAmenityList */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.prototype['roomAmenityList'] = undefined; +InlineResponse2003PropertyFacilityInfoMediaList.prototype['roomAmenityList'] = undefined; @@ -189,7 +147,7 @@ PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaLis * @enum {Number} * @readonly */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner['TagListEnum'] = { +InlineResponse2003PropertyFacilityInfoMediaList['TagListEnum'] = { /** * value: 1 @@ -996,7 +954,7 @@ PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaLis * @enum {Number} * @readonly */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner['PropertyAmenityListEnum'] = { +InlineResponse2003PropertyFacilityInfoMediaList['PropertyAmenityListEnum'] = { /** * value: 1 @@ -4167,7 +4125,7 @@ PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaLis * @enum {Number} * @readonly */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner['RoomAmenityListEnum'] = { +InlineResponse2003PropertyFacilityInfoMediaList['RoomAmenityListEnum'] = { /** * value: 1 @@ -7004,5 +6962,5 @@ PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaLis -export default PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner; +export default InlineResponse2003PropertyFacilityInfoMediaList; diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMessageList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMessageList.js new file mode 100644 index 0000000..42dad29 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMessageList.js @@ -0,0 +1,85 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyFacilityInfoMessageList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMessageList + * @version 1.2.0 + */ +class InlineResponse2003PropertyFacilityInfoMessageList { + /** + * Constructs a new InlineResponse2003PropertyFacilityInfoMessageList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMessageList + * @param languageCode {String} 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.

+ * @param text {String} The message text. + */ + constructor(languageCode, text) { + + InlineResponse2003PropertyFacilityInfoMessageList.initialize(this, languageCode, text); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, languageCode, text) { + obj['languageCode'] = languageCode; + obj['text'] = text; + } + + /** + * Constructs a InlineResponse2003PropertyFacilityInfoMessageList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMessageList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMessageList} The populated InlineResponse2003PropertyFacilityInfoMessageList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyFacilityInfoMessageList(); + + if (data.hasOwnProperty('languageCode')) { + obj['languageCode'] = ApiClient.convertToType(data['languageCode'], 'String'); + } + if (data.hasOwnProperty('text')) { + obj['text'] = ApiClient.convertToType(data['text'], 'String'); + } + } + return obj; + } + + +} + +/** + * 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.

+ * @member {String} languageCode + */ +InlineResponse2003PropertyFacilityInfoMessageList.prototype['languageCode'] = undefined; + +/** + * The message text. + * @member {String} text + */ +InlineResponse2003PropertyFacilityInfoMessageList.prototype['text'] = undefined; + + + + + + +export default InlineResponse2003PropertyFacilityInfoMessageList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList.js new file mode 100644 index 0000000..d4f8d4c --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList.js @@ -0,0 +1,703 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyFeePolicyList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList + * @version 1.2.0 + */ +class InlineResponse2003PropertyFeePolicyList { + /** + * Constructs a new InlineResponse2003PropertyFeePolicyList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList + * @param typeCode {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList.TypeCodeEnum} The code that represents the type of fee.

See also in the appendix.

+ * @param chargeType {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList.ChargeTypeEnum} The type of charge. + * @param chargeFrequencyCode {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList.ChargeFrequencyCodeEnum} The code that represents the frequency of charge.

See also in the appendix.

+ * @param currencyCode {String} The currency code of the currency in that the charge is applied.

See also in the appendix.

+ * @param conditionList {Array.} A list of conditions for the tax. Is empty if chargeType is not conditional. + */ + constructor(typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList) { + + InlineResponse2003PropertyFeePolicyList.initialize(this, typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList) { + obj['typeCode'] = typeCode; + obj['chargeType'] = chargeType; + obj['chargeFrequencyCode'] = chargeFrequencyCode; + obj['currencyCode'] = currencyCode; + obj['conditionList'] = conditionList; + } + + /** + * Constructs a InlineResponse2003PropertyFeePolicyList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList} The populated InlineResponse2003PropertyFeePolicyList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyFeePolicyList(); + + if (data.hasOwnProperty('typeCode')) { + obj['typeCode'] = ApiClient.convertToType(data['typeCode'], 'Number'); + } + if (data.hasOwnProperty('percent')) { + obj['percent'] = ApiClient.convertToType(data['percent'], 'Number'); + } + if (data.hasOwnProperty('chargeType')) { + obj['chargeType'] = ApiClient.convertToType(data['chargeType'], 'String'); + } + if (data.hasOwnProperty('chargeFrequencyCode')) { + obj['chargeFrequencyCode'] = ApiClient.convertToType(data['chargeFrequencyCode'], 'Number'); + } + if (data.hasOwnProperty('currencyCode')) { + obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); + } + if (data.hasOwnProperty('conditionList')) { + obj['conditionList'] = ApiClient.convertToType(data['conditionList'], ['String']); + } + } + return obj; + } + + +} + +/** + * The code that represents the type of fee.

See also in the appendix.

+ * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList.TypeCodeEnum} typeCode + */ +InlineResponse2003PropertyFeePolicyList.prototype['typeCode'] = undefined; + +/** + * The charged percentage if applicable. + * @member {Number} percent + */ +InlineResponse2003PropertyFeePolicyList.prototype['percent'] = undefined; + +/** + * The type of charge. + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList.ChargeTypeEnum} chargeType + */ +InlineResponse2003PropertyFeePolicyList.prototype['chargeType'] = undefined; + +/** + * The code that represents the frequency of charge.

See also in the appendix.

+ * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList.ChargeFrequencyCodeEnum} chargeFrequencyCode + */ +InlineResponse2003PropertyFeePolicyList.prototype['chargeFrequencyCode'] = undefined; + +/** + * The currency code of the currency in that the charge is applied.

See also in the appendix.

+ * @member {String} currencyCode + */ +InlineResponse2003PropertyFeePolicyList.prototype['currencyCode'] = undefined; + +/** + * A list of conditions for the tax. Is empty if chargeType is not conditional. + * @member {Array.} conditionList + */ +InlineResponse2003PropertyFeePolicyList.prototype['conditionList'] = undefined; + + + + + +/** + * Allowed values for the typeCode property. + * @enum {Number} + * @readonly + */ +InlineResponse2003PropertyFeePolicyList['TypeCodeEnum'] = { + + /** + * value: 2 + * @const + */ + "2": 2, + + /** + * value: 9 + * @const + */ + "9": 9, + + /** + * value: 11 + * @const + */ + "11": 11, + + /** + * value: 12 + * @const + */ + "12": 12, + + /** + * value: 14 + * @const + */ + "14": 14, + + /** + * value: 16 + * @const + */ + "16": 16, + + /** + * value: 27 + * @const + */ + "27": 27, + + /** + * value: 29 + * @const + */ + "29": 29, + + /** + * value: 31 + * @const + */ + "31": 31, + + /** + * value: 32 + * @const + */ + "32": 32, + + /** + * value: 33 + * @const + */ + "33": 33, + + /** + * value: 34 + * @const + */ + "34": 34, + + /** + * value: 37 + * @const + */ + "37": 37, + + /** + * value: 38 + * @const + */ + "38": 38, + + /** + * value: 40 + * @const + */ + "40": 40, + + /** + * value: 41 + * @const + */ + "41": 41, + + /** + * value: 42 + * @const + */ + "42": 42, + + /** + * value: 44 + * @const + */ + "44": 44, + + /** + * value: 45 + * @const + */ + "45": 45, + + /** + * value: 47 + * @const + */ + "47": 47, + + /** + * value: 51 + * @const + */ + "51": 51, + + /** + * value: 52 + * @const + */ + "52": 52, + + /** + * value: 53 + * @const + */ + "53": 53, + + /** + * value: 54 + * @const + */ + "54": 54, + + /** + * value: 55 + * @const + */ + "55": 55, + + /** + * value: 56 + * @const + */ + "56": 56, + + /** + * value: 5000 + * @const + */ + "5000": 5000, + + /** + * value: 5003 + * @const + */ + "5003": 5003, + + /** + * value: 5005 + * @const + */ + "5005": 5005, + + /** + * value: 5006 + * @const + */ + "5006": 5006, + + /** + * value: 5009 + * @const + */ + "5009": 5009, + + /** + * value: 5010 + * @const + */ + "5010": 5010, + + /** + * value: 5011 + * @const + */ + "5011": 5011, + + /** + * value: 5012 + * @const + */ + "5012": 5012, + + /** + * value: 5013 + * @const + */ + "5013": 5013, + + /** + * value: 5014 + * @const + */ + "5014": 5014, + + /** + * value: 5015 + * @const + */ + "5015": 5015, + + /** + * value: 5016 + * @const + */ + "5016": 5016, + + /** + * value: 5017 + * @const + */ + "5017": 5017, + + /** + * value: 5018 + * @const + */ + "5018": 5018, + + /** + * value: 5019 + * @const + */ + "5019": 5019, + + /** + * value: 5020 + * @const + */ + "5020": 5020, + + /** + * value: 5021 + * @const + */ + "5021": 5021, + + /** + * value: 5022 + * @const + */ + "5022": 5022, + + /** + * value: 5023 + * @const + */ + "5023": 5023, + + /** + * value: 5024 + * @const + */ + "5024": 5024, + + /** + * value: 5025 + * @const + */ + "5025": 5025, + + /** + * value: 5026 + * @const + */ + "5026": 5026, + + /** + * value: 5027 + * @const + */ + "5027": 5027, + + /** + * value: 5028 + * @const + */ + "5028": 5028, + + /** + * value: 5029 + * @const + */ + "5029": 5029, + + /** + * value: 5030 + * @const + */ + "5030": 5030, + + /** + * value: 5031 + * @const + */ + "5031": 5031, + + /** + * value: 5032 + * @const + */ + "5032": 5032, + + /** + * value: 5033 + * @const + */ + "5033": 5033, + + /** + * value: 5035 + * @const + */ + "5035": 5035, + + /** + * value: 5036 + * @const + */ + "5036": 5036, + + /** + * value: 20001 + * @const + */ + "20001": 20001 +}; + + +/** + * Allowed values for the chargeType property. + * @enum {String} + * @readonly + */ +InlineResponse2003PropertyFeePolicyList['ChargeTypeEnum'] = { + + /** + * value: "included" + * @const + */ + "included": "included", + + /** + * value: "excluded" + * @const + */ + "excluded": "excluded", + + /** + * value: "conditional" + * @const + */ + "conditional": "conditional" +}; + + +/** + * Allowed values for the chargeFrequencyCode property. + * @enum {Number} + * @readonly + */ +InlineResponse2003PropertyFeePolicyList['ChargeFrequencyCodeEnum'] = { + + /** + * value: 1 + * @const + */ + "1": 1, + + /** + * value: 2 + * @const + */ + "2": 2, + + /** + * value: 7 + * @const + */ + "7": 7, + + /** + * value: 10 + * @const + */ + "10": 10, + + /** + * value: 12 + * @const + */ + "12": 12, + + /** + * value: 17 + * @const + */ + "17": 17, + + /** + * value: 19 + * @const + */ + "19": 19, + + /** + * value: 20 + * @const + */ + "20": 20, + + /** + * value: 21 + * @const + */ + "21": 21, + + /** + * value: 25 + * @const + */ + "25": 25, + + /** + * value: 31 + * @const + */ + "31": 31, + + /** + * value: 5000 + * @const + */ + "5000": 5000, + + /** + * value: 5001 + * @const + */ + "5001": 5001, + + /** + * value: 5002 + * @const + */ + "5002": 5002, + + /** + * value: 5010 + * @const + */ + "5010": 5010, + + /** + * value: 5011 + * @const + */ + "5011": 5011, + + /** + * value: 5012 + * @const + */ + "5012": 5012, + + /** + * value: 5013 + * @const + */ + "5013": 5013, + + /** + * value: 5014 + * @const + */ + "5014": 5014, + + /** + * value: 5015 + * @const + */ + "5015": 5015, + + /** + * value: 5016 + * @const + */ + "5016": 5016, + + /** + * value: 5017 + * @const + */ + "5017": 5017, + + /** + * value: 90010 + * @const + */ + "90010": 90010, + + /** + * value: 90011 + * @const + */ + "90011": 90011, + + /** + * value: 90012 + * @const + */ + "90012": 90012, + + /** + * value: 90013 + * @const + */ + "90013": 90013 +}; + + +/** + * Allowed values for the conditionList property. + * @enum {String} + * @readonly + */ +InlineResponse2003PropertyFeePolicyList['ConditionListEnum'] = { + + /** + * value: "guest_brings_pet" + * @const + */ + "brings_pet": "guest_brings_pet", + + /** + * value: "guest_doesnt_clean_before_checkout" + * @const + */ + "doesnt_clean_before_checkout": "guest_doesnt_clean_before_checkout", + + /** + * value: "guest_smokes" + * @const + */ + "smokes": "guest_smokes" +}; + + + +export default InlineResponse2003PropertyFeePolicyList; + diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuaranteePolicy.js similarity index 51% rename from src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.js rename to src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuaranteePolicy.js index 4f84767..855f5c8 100644 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.js +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuaranteePolicy.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,15 +14,15 @@ import ApiClient from '../ApiClient'; /** - * The PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy - * @version 1.1.5 + * The InlineResponse2003PropertyGuaranteePolicy model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuaranteePolicy + * @version 1.2.0 */ -class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy { +class InlineResponse2003PropertyGuaranteePolicy { /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy. + * Constructs a new InlineResponse2003PropertyGuaranteePolicy. * Defines the guarantee amount that has to be paid to the property. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuaranteePolicy * @param percentAfterReservation {Number} Percentage of refund after reservation. * @param nightsAfterReservation {Number} Number of nights after reservation. * @param deadlineDays {Number} Deadline in days. @@ -33,7 +33,7 @@ class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy { */ constructor(percentAfterReservation, nightsAfterReservation, deadlineDays, deadlineHours, percentAfterDeadline, nightsAfterDeadline, noShowPolicy) { - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.initialize(this, percentAfterReservation, nightsAfterReservation, deadlineDays, deadlineHours, percentAfterDeadline, nightsAfterDeadline, noShowPolicy); + InlineResponse2003PropertyGuaranteePolicy.initialize(this, percentAfterReservation, nightsAfterReservation, deadlineDays, deadlineHours, percentAfterDeadline, nightsAfterDeadline, noShowPolicy); } /** @@ -52,15 +52,15 @@ class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy { } /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineResponse2003PropertyGuaranteePolicy from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy} The populated PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy instance. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuaranteePolicy} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuaranteePolicy} The populated InlineResponse2003PropertyGuaranteePolicy instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy(); + obj = obj || new InlineResponse2003PropertyGuaranteePolicy(); if (data.hasOwnProperty('percentAfterReservation')) { obj['percentAfterReservation'] = ApiClient.convertToType(data['percentAfterReservation'], 'Number'); @@ -87,77 +87,55 @@ class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy { return obj; } - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['noShowPolicy'] && !(typeof data['noShowPolicy'] === 'string' || data['noShowPolicy'] instanceof String)) { - throw new Error("Expected the field `noShowPolicy` to be a primitive type in the JSON string but got " + data['noShowPolicy']); - } - - return true; - } - } -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.RequiredProperties = ["percentAfterReservation", "nightsAfterReservation", "deadlineDays", "deadlineHours", "percentAfterDeadline", "nightsAfterDeadline", "noShowPolicy"]; - /** * Percentage of refund after reservation. * @member {Number} percentAfterReservation */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.prototype['percentAfterReservation'] = undefined; +InlineResponse2003PropertyGuaranteePolicy.prototype['percentAfterReservation'] = undefined; /** * Number of nights after reservation. * @member {Number} nightsAfterReservation */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.prototype['nightsAfterReservation'] = undefined; +InlineResponse2003PropertyGuaranteePolicy.prototype['nightsAfterReservation'] = undefined; /** * Deadline in days. * @member {Number} deadlineDays */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.prototype['deadlineDays'] = undefined; +InlineResponse2003PropertyGuaranteePolicy.prototype['deadlineDays'] = undefined; /** * Deadline in hours. * @member {Number} deadlineHours */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.prototype['deadlineHours'] = undefined; +InlineResponse2003PropertyGuaranteePolicy.prototype['deadlineHours'] = undefined; /** * Percentage of refund after deadline. * @member {Number} percentAfterDeadline */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.prototype['percentAfterDeadline'] = undefined; +InlineResponse2003PropertyGuaranteePolicy.prototype['percentAfterDeadline'] = undefined; /** * Number of nights after deadline. * @member {Number} nightsAfterDeadline */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.prototype['nightsAfterDeadline'] = undefined; +InlineResponse2003PropertyGuaranteePolicy.prototype['nightsAfterDeadline'] = undefined; /** * No-show policy * @member {String} noShowPolicy */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.prototype['noShowPolicy'] = undefined; +InlineResponse2003PropertyGuaranteePolicy.prototype['noShowPolicy'] = undefined; -export default PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy; +export default InlineResponse2003PropertyGuaranteePolicy; diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuestInfo.js similarity index 51% rename from src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.js rename to src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuestInfo.js index 5c58589..d74fd94 100644 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.js +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuestInfo.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,22 +14,22 @@ import ApiClient from '../ApiClient'; /** - * The PropertiesPropertyIdGet200ResponsePropertyGuestInfo model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo - * @version 1.1.5 + * The InlineResponse2003PropertyGuestInfo model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuestInfo + * @version 1.2.0 */ -class PropertiesPropertyIdGet200ResponsePropertyGuestInfo { +class InlineResponse2003PropertyGuestInfo { /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyGuestInfo. + * Constructs a new InlineResponse2003PropertyGuestInfo. * Information regarding requirements towards guests. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuestInfo * @param guestAddressRequired {Boolean} Whether the address of the guest is required to book this property. * @param guestContactNumberRequired {Boolean} Whether the phone number of the guest is required to book this property. * @param guestNameListRequired {Boolean} Whether a list of the guests names is required to book this property. */ constructor(guestAddressRequired, guestContactNumberRequired, guestNameListRequired) { - PropertiesPropertyIdGet200ResponsePropertyGuestInfo.initialize(this, guestAddressRequired, guestContactNumberRequired, guestNameListRequired); + InlineResponse2003PropertyGuestInfo.initialize(this, guestAddressRequired, guestContactNumberRequired, guestNameListRequired); } /** @@ -44,15 +44,15 @@ class PropertiesPropertyIdGet200ResponsePropertyGuestInfo { } /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyGuestInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineResponse2003PropertyGuestInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo} The populated PropertiesPropertyIdGet200ResponsePropertyGuestInfo instance. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuestInfo} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuestInfo} The populated InlineResponse2003PropertyGuestInfo instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyGuestInfo(); + obj = obj || new InlineResponse2003PropertyGuestInfo(); if (data.hasOwnProperty('guestAddressRequired')) { obj['guestAddressRequired'] = ApiClient.convertToType(data['guestAddressRequired'], 'Boolean'); @@ -67,49 +67,31 @@ class PropertiesPropertyIdGet200ResponsePropertyGuestInfo { return obj; } - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyGuestInfo. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyGuestInfo. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyGuestInfo.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - - return true; - } - } -PropertiesPropertyIdGet200ResponsePropertyGuestInfo.RequiredProperties = ["guestAddressRequired", "guestContactNumberRequired", "guestNameListRequired"]; - /** * Whether the address of the guest is required to book this property. * @member {Boolean} guestAddressRequired */ -PropertiesPropertyIdGet200ResponsePropertyGuestInfo.prototype['guestAddressRequired'] = undefined; +InlineResponse2003PropertyGuestInfo.prototype['guestAddressRequired'] = undefined; /** * Whether the phone number of the guest is required to book this property. * @member {Boolean} guestContactNumberRequired */ -PropertiesPropertyIdGet200ResponsePropertyGuestInfo.prototype['guestContactNumberRequired'] = undefined; +InlineResponse2003PropertyGuestInfo.prototype['guestContactNumberRequired'] = undefined; /** * Whether a list of the guests names is required to book this property. * @member {Boolean} guestNameListRequired */ -PropertiesPropertyIdGet200ResponsePropertyGuestInfo.prototype['guestNameListRequired'] = undefined; +InlineResponse2003PropertyGuestInfo.prototype['guestNameListRequired'] = undefined; -export default PropertiesPropertyIdGet200ResponsePropertyGuestInfo; +export default InlineResponse2003PropertyGuestInfo; diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyMediaList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyMediaList.js new file mode 100644 index 0000000..3809f65 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyMediaList.js @@ -0,0 +1,6966 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyMediaList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyMediaList + * @version 1.2.0 + */ +class InlineResponse2003PropertyMediaList { + /** + * Constructs a new InlineResponse2003PropertyMediaList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyMediaList + * @param isMainImage {Boolean} Whether the media is the main image for the property. + * @param url {String} The URL for the media. + * @param sortOrder {Number} The sort order for the media. + * @param tagList {Array.} A list of tag codes for the media.

See also in the appendix.

+ * @param moderationLabelList {Array.} A list of detection labels for moderated content (e.g. containing alcoholic beverages) for the media from an AI based detection engine. + * @param propertyAmenityList {Array.} A list of property amenities available at the property that are visible in this media element. + */ + constructor(isMainImage, url, sortOrder, tagList, moderationLabelList, propertyAmenityList) { + + InlineResponse2003PropertyMediaList.initialize(this, isMainImage, url, sortOrder, tagList, moderationLabelList, propertyAmenityList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, isMainImage, url, sortOrder, tagList, moderationLabelList, propertyAmenityList) { + obj['isMainImage'] = isMainImage; + obj['url'] = url; + obj['sortOrder'] = sortOrder; + obj['tagList'] = tagList; + obj['moderationLabelList'] = moderationLabelList; + obj['propertyAmenityList'] = propertyAmenityList; + } + + /** + * Constructs a InlineResponse2003PropertyMediaList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyMediaList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyMediaList} The populated InlineResponse2003PropertyMediaList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyMediaList(); + + if (data.hasOwnProperty('isMainImage')) { + obj['isMainImage'] = ApiClient.convertToType(data['isMainImage'], 'Boolean'); + } + if (data.hasOwnProperty('url')) { + obj['url'] = ApiClient.convertToType(data['url'], 'String'); + } + if (data.hasOwnProperty('sortOrder')) { + obj['sortOrder'] = ApiClient.convertToType(data['sortOrder'], 'Number'); + } + if (data.hasOwnProperty('tagList')) { + obj['tagList'] = ApiClient.convertToType(data['tagList'], ['Number']); + } + if (data.hasOwnProperty('moderationLabelList')) { + obj['moderationLabelList'] = ApiClient.convertToType(data['moderationLabelList'], ['String']); + } + if (data.hasOwnProperty('detectionLabelList')) { + obj['detectionLabelList'] = ApiClient.convertToType(data['detectionLabelList'], ['String']); + } + if (data.hasOwnProperty('propertyAmenityList')) { + obj['propertyAmenityList'] = ApiClient.convertToType(data['propertyAmenityList'], ['Number']); + } + if (data.hasOwnProperty('roomAmenityList')) { + obj['roomAmenityList'] = ApiClient.convertToType(data['roomAmenityList'], ['Number']); + } + } + return obj; + } + + +} + +/** + * Whether the media is the main image for the property. + * @member {Boolean} isMainImage + */ +InlineResponse2003PropertyMediaList.prototype['isMainImage'] = undefined; + +/** + * The URL for the media. + * @member {String} url + */ +InlineResponse2003PropertyMediaList.prototype['url'] = undefined; + +/** + * The sort order for the media. + * @member {Number} sortOrder + */ +InlineResponse2003PropertyMediaList.prototype['sortOrder'] = undefined; + +/** + * A list of tag codes for the media.

See also in the appendix.

+ * @member {Array.} tagList + */ +InlineResponse2003PropertyMediaList.prototype['tagList'] = undefined; + +/** + * A list of detection labels for moderated content (e.g. containing alcoholic beverages) for the media from an AI based detection engine. + * @member {Array.} moderationLabelList + */ +InlineResponse2003PropertyMediaList.prototype['moderationLabelList'] = undefined; + +/** + * A list of detection labels for the media from an AI based detection engine. + * @member {Array.} detectionLabelList + */ +InlineResponse2003PropertyMediaList.prototype['detectionLabelList'] = undefined; + +/** + * A list of property amenities available at the property that are visible in this media element. + * @member {Array.} propertyAmenityList + */ +InlineResponse2003PropertyMediaList.prototype['propertyAmenityList'] = undefined; + +/** + * A list of unit and room amenities available at the property (respectively unit type if applicable) that are visible in this media element. + * @member {Array.} roomAmenityList + */ +InlineResponse2003PropertyMediaList.prototype['roomAmenityList'] = undefined; + + + + + +/** + * Allowed values for the tagList property. + * @enum {Number} + * @readonly + */ +InlineResponse2003PropertyMediaList['TagListEnum'] = { + + /** + * value: 1 + * @const + */ + "1": 1, + + /** + * value: 2 + * @const + */ + "2": 2, + + /** + * value: 3 + * @const + */ + "3": 3, + + /** + * value: 4 + * @const + */ + "4": 4, + + /** + * value: 5 + * @const + */ + "5": 5, + + /** + * value: 6 + * @const + */ + "6": 6, + + /** + * value: 7 + * @const + */ + "7": 7, + + /** + * value: 8 + * @const + */ + "8": 8, + + /** + * value: 10 + * @const + */ + "10": 10, + + /** + * value: 11 + * @const + */ + "11": 11, + + /** + * value: 13 + * @const + */ + "13": 13, + + /** + * value: 14 + * @const + */ + "14": 14, + + /** + * value: 37 + * @const + */ + "37": 37, + + /** + * value: 41 + * @const + */ + "41": 41, + + /** + * value: 42 + * @const + */ + "42": 42, + + /** + * value: 43 + * @const + */ + "43": 43, + + /** + * value: 50 + * @const + */ + "50": 50, + + /** + * value: 55 + * @const + */ + "55": 55, + + /** + * value: 61 + * @const + */ + "61": 61, + + /** + * value: 70 + * @const + */ + "70": 70, + + /** + * value: 74 + * @const + */ + "74": 74, + + /** + * value: 81 + * @const + */ + "81": 81, + + /** + * value: 82 + * @const + */ + "82": 82, + + /** + * value: 87 + * @const + */ + "87": 87, + + /** + * value: 89 + * @const + */ + "89": 89, + + /** + * value: 90 + * @const + */ + "90": 90, + + /** + * value: 94 + * @const + */ + "94": 94, + + /** + * value: 95 + * @const + */ + "95": 95, + + /** + * value: 96 + * @const + */ + "96": 96, + + /** + * value: 97 + * @const + */ + "97": 97, + + /** + * value: 100 + * @const + */ + "100": 100, + + /** + * value: 102 + * @const + */ + "102": 102, + + /** + * value: 103 + * @const + */ + "103": 103, + + /** + * value: 104 + * @const + */ + "104": 104, + + /** + * value: 106 + * @const + */ + "106": 106, + + /** + * value: 107 + * @const + */ + "107": 107, + + /** + * value: 108 + * @const + */ + "108": 108, + + /** + * value: 112 + * @const + */ + "112": 112, + + /** + * value: 113 + * @const + */ + "113": 113, + + /** + * value: 114 + * @const + */ + "114": 114, + + /** + * value: 115 + * @const + */ + "115": 115, + + /** + * value: 116 + * @const + */ + "116": 116, + + /** + * value: 124 + * @const + */ + "124": 124, + + /** + * value: 125 + * @const + */ + "125": 125, + + /** + * value: 128 + * @const + */ + "128": 128, + + /** + * value: 131 + * @const + */ + "131": 131, + + /** + * value: 133 + * @const + */ + "133": 133, + + /** + * value: 134 + * @const + */ + "134": 134, + + /** + * value: 137 + * @const + */ + "137": 137, + + /** + * value: 141 + * @const + */ + "141": 141, + + /** + * value: 143 + * @const + */ + "143": 143, + + /** + * value: 153 + * @const + */ + "153": 153, + + /** + * value: 154 + * @const + */ + "154": 154, + + /** + * value: 155 + * @const + */ + "155": 155, + + /** + * value: 156 + * @const + */ + "156": 156, + + /** + * value: 157 + * @const + */ + "157": 157, + + /** + * value: 158 + * @const + */ + "158": 158, + + /** + * value: 159 + * @const + */ + "159": 159, + + /** + * value: 160 + * @const + */ + "160": 160, + + /** + * value: 161 + * @const + */ + "161": 161, + + /** + * value: 164 + * @const + */ + "164": 164, + + /** + * value: 165 + * @const + */ + "165": 165, + + /** + * value: 167 + * @const + */ + "167": 167, + + /** + * value: 172 + * @const + */ + "172": 172, + + /** + * value: 173 + * @const + */ + "173": 173, + + /** + * value: 177 + * @const + */ + "177": 177, + + /** + * value: 178 + * @const + */ + "178": 178, + + /** + * value: 179 + * @const + */ + "179": 179, + + /** + * value: 182 + * @const + */ + "182": 182, + + /** + * value: 183 + * @const + */ + "183": 183, + + /** + * value: 184 + * @const + */ + "184": 184, + + /** + * value: 185 + * @const + */ + "185": 185, + + /** + * value: 186 + * @const + */ + "186": 186, + + /** + * value: 187 + * @const + */ + "187": 187, + + /** + * value: 188 + * @const + */ + "188": 188, + + /** + * value: 189 + * @const + */ + "189": 189, + + /** + * value: 190 + * @const + */ + "190": 190, + + /** + * value: 191 + * @const + */ + "191": 191, + + /** + * value: 192 + * @const + */ + "192": 192, + + /** + * value: 193 + * @const + */ + "193": 193, + + /** + * value: 194 + * @const + */ + "194": 194, + + /** + * value: 197 + * @const + */ + "197": 197, + + /** + * value: 198 + * @const + */ + "198": 198, + + /** + * value: 199 + * @const + */ + "199": 199, + + /** + * value: 204 + * @const + */ + "204": 204, + + /** + * value: 205 + * @const + */ + "205": 205, + + /** + * value: 240 + * @const + */ + "240": 240, + + /** + * value: 241 + * @const + */ + "241": 241, + + /** + * value: 242 + * @const + */ + "242": 242, + + /** + * value: 245 + * @const + */ + "245": 245, + + /** + * value: 246 + * @const + */ + "246": 246, + + /** + * value: 247 + * @const + */ + "247": 247, + + /** + * value: 248 + * @const + */ + "248": 248, + + /** + * value: 249 + * @const + */ + "249": 249, + + /** + * value: 250 + * @const + */ + "250": 250, + + /** + * value: 251 + * @const + */ + "251": 251, + + /** + * value: 252 + * @const + */ + "252": 252, + + /** + * value: 253 + * @const + */ + "253": 253, + + /** + * value: 254 + * @const + */ + "254": 254, + + /** + * value: 255 + * @const + */ + "255": 255, + + /** + * value: 256 + * @const + */ + "256": 256, + + /** + * value: 257 + * @const + */ + "257": 257, + + /** + * value: 258 + * @const + */ + "258": 258, + + /** + * value: 259 + * @const + */ + "259": 259, + + /** + * value: 260 + * @const + */ + "260": 260, + + /** + * value: 261 + * @const + */ + "261": 261, + + /** + * value: 262 + * @const + */ + "262": 262, + + /** + * value: 263 + * @const + */ + "263": 263, + + /** + * value: 264 + * @const + */ + "264": 264, + + /** + * value: 265 + * @const + */ + "265": 265, + + /** + * value: 266 + * @const + */ + "266": 266, + + /** + * value: 267 + * @const + */ + "267": 267, + + /** + * value: 268 + * @const + */ + "268": 268, + + /** + * value: 269 + * @const + */ + "269": 269, + + /** + * value: 270 + * @const + */ + "270": 270, + + /** + * value: 271 + * @const + */ + "271": 271, + + /** + * value: 272 + * @const + */ + "272": 272, + + /** + * value: 273 + * @const + */ + "273": 273, + + /** + * value: 276 + * @const + */ + "276": 276, + + /** + * value: 277 + * @const + */ + "277": 277, + + /** + * value: 278 + * @const + */ + "278": 278, + + /** + * value: 279 + * @const + */ + "279": 279, + + /** + * value: 280 + * @const + */ + "280": 280, + + /** + * value: 281 + * @const + */ + "281": 281, + + /** + * value: 282 + * @const + */ + "282": 282, + + /** + * value: 283 + * @const + */ + "283": 283, + + /** + * value: 284 + * @const + */ + "284": 284, + + /** + * value: 285 + * @const + */ + "285": 285, + + /** + * value: 286 + * @const + */ + "286": 286, + + /** + * value: 287 + * @const + */ + "287": 287, + + /** + * value: 289 + * @const + */ + "289": 289, + + /** + * value: 290 + * @const + */ + "290": 290, + + /** + * value: 291 + * @const + */ + "291": 291 +}; + + +/** + * Allowed values for the propertyAmenityList property. + * @enum {Number} + * @readonly + */ +InlineResponse2003PropertyMediaList['PropertyAmenityListEnum'] = { + + /** + * value: 1 + * @const + */ + "1": 1, + + /** + * value: 2 + * @const + */ + "2": 2, + + /** + * value: 3 + * @const + */ + "3": 3, + + /** + * value: 4 + * @const + */ + "4": 4, + + /** + * value: 5 + * @const + */ + "5": 5, + + /** + * value: 6 + * @const + */ + "6": 6, + + /** + * value: 7 + * @const + */ + "7": 7, + + /** + * value: 8 + * @const + */ + "8": 8, + + /** + * value: 9 + * @const + */ + "9": 9, + + /** + * value: 10 + * @const + */ + "10": 10, + + /** + * value: 11 + * @const + */ + "11": 11, + + /** + * value: 12 + * @const + */ + "12": 12, + + /** + * value: 13 + * @const + */ + "13": 13, + + /** + * value: 14 + * @const + */ + "14": 14, + + /** + * value: 15 + * @const + */ + "15": 15, + + /** + * value: 16 + * @const + */ + "16": 16, + + /** + * value: 17 + * @const + */ + "17": 17, + + /** + * value: 18 + * @const + */ + "18": 18, + + /** + * value: 19 + * @const + */ + "19": 19, + + /** + * value: 20 + * @const + */ + "20": 20, + + /** + * value: 21 + * @const + */ + "21": 21, + + /** + * value: 22 + * @const + */ + "22": 22, + + /** + * value: 23 + * @const + */ + "23": 23, + + /** + * value: 24 + * @const + */ + "24": 24, + + /** + * value: 25 + * @const + */ + "25": 25, + + /** + * value: 26 + * @const + */ + "26": 26, + + /** + * value: 27 + * @const + */ + "27": 27, + + /** + * value: 28 + * @const + */ + "28": 28, + + /** + * value: 29 + * @const + */ + "29": 29, + + /** + * value: 30 + * @const + */ + "30": 30, + + /** + * value: 31 + * @const + */ + "31": 31, + + /** + * value: 32 + * @const + */ + "32": 32, + + /** + * value: 33 + * @const + */ + "33": 33, + + /** + * value: 34 + * @const + */ + "34": 34, + + /** + * value: 35 + * @const + */ + "35": 35, + + /** + * value: 36 + * @const + */ + "36": 36, + + /** + * value: 37 + * @const + */ + "37": 37, + + /** + * value: 38 + * @const + */ + "38": 38, + + /** + * value: 39 + * @const + */ + "39": 39, + + /** + * value: 40 + * @const + */ + "40": 40, + + /** + * value: 41 + * @const + */ + "41": 41, + + /** + * value: 42 + * @const + */ + "42": 42, + + /** + * value: 43 + * @const + */ + "43": 43, + + /** + * value: 44 + * @const + */ + "44": 44, + + /** + * value: 45 + * @const + */ + "45": 45, + + /** + * value: 46 + * @const + */ + "46": 46, + + /** + * value: 47 + * @const + */ + "47": 47, + + /** + * value: 48 + * @const + */ + "48": 48, + + /** + * value: 49 + * @const + */ + "49": 49, + + /** + * value: 50 + * @const + */ + "50": 50, + + /** + * value: 51 + * @const + */ + "51": 51, + + /** + * value: 52 + * @const + */ + "52": 52, + + /** + * value: 53 + * @const + */ + "53": 53, + + /** + * value: 54 + * @const + */ + "54": 54, + + /** + * value: 55 + * @const + */ + "55": 55, + + /** + * value: 56 + * @const + */ + "56": 56, + + /** + * value: 57 + * @const + */ + "57": 57, + + /** + * value: 58 + * @const + */ + "58": 58, + + /** + * value: 59 + * @const + */ + "59": 59, + + /** + * value: 60 + * @const + */ + "60": 60, + + /** + * value: 61 + * @const + */ + "61": 61, + + /** + * value: 62 + * @const + */ + "62": 62, + + /** + * value: 63 + * @const + */ + "63": 63, + + /** + * value: 64 + * @const + */ + "64": 64, + + /** + * value: 65 + * @const + */ + "65": 65, + + /** + * value: 66 + * @const + */ + "66": 66, + + /** + * value: 67 + * @const + */ + "67": 67, + + /** + * value: 68 + * @const + */ + "68": 68, + + /** + * value: 69 + * @const + */ + "69": 69, + + /** + * value: 70 + * @const + */ + "70": 70, + + /** + * value: 71 + * @const + */ + "71": 71, + + /** + * value: 72 + * @const + */ + "72": 72, + + /** + * value: 73 + * @const + */ + "73": 73, + + /** + * value: 74 + * @const + */ + "74": 74, + + /** + * value: 75 + * @const + */ + "75": 75, + + /** + * value: 76 + * @const + */ + "76": 76, + + /** + * value: 77 + * @const + */ + "77": 77, + + /** + * value: 78 + * @const + */ + "78": 78, + + /** + * value: 79 + * @const + */ + "79": 79, + + /** + * value: 80 + * @const + */ + "80": 80, + + /** + * value: 81 + * @const + */ + "81": 81, + + /** + * value: 82 + * @const + */ + "82": 82, + + /** + * value: 83 + * @const + */ + "83": 83, + + /** + * value: 84 + * @const + */ + "84": 84, + + /** + * value: 85 + * @const + */ + "85": 85, + + /** + * value: 86 + * @const + */ + "86": 86, + + /** + * value: 87 + * @const + */ + "87": 87, + + /** + * value: 88 + * @const + */ + "88": 88, + + /** + * value: 89 + * @const + */ + "89": 89, + + /** + * value: 90 + * @const + */ + "90": 90, + + /** + * value: 91 + * @const + */ + "91": 91, + + /** + * value: 92 + * @const + */ + "92": 92, + + /** + * value: 93 + * @const + */ + "93": 93, + + /** + * value: 94 + * @const + */ + "94": 94, + + /** + * value: 95 + * @const + */ + "95": 95, + + /** + * value: 96 + * @const + */ + "96": 96, + + /** + * value: 97 + * @const + */ + "97": 97, + + /** + * value: 98 + * @const + */ + "98": 98, + + /** + * value: 99 + * @const + */ + "99": 99, + + /** + * value: 100 + * @const + */ + "100": 100, + + /** + * value: 101 + * @const + */ + "101": 101, + + /** + * value: 102 + * @const + */ + "102": 102, + + /** + * value: 103 + * @const + */ + "103": 103, + + /** + * value: 104 + * @const + */ + "104": 104, + + /** + * value: 105 + * @const + */ + "105": 105, + + /** + * value: 106 + * @const + */ + "106": 106, + + /** + * value: 107 + * @const + */ + "107": 107, + + /** + * value: 108 + * @const + */ + "108": 108, + + /** + * value: 109 + * @const + */ + "109": 109, + + /** + * value: 110 + * @const + */ + "110": 110, + + /** + * value: 111 + * @const + */ + "111": 111, + + /** + * value: 112 + * @const + */ + "112": 112, + + /** + * value: 113 + * @const + */ + "113": 113, + + /** + * value: 114 + * @const + */ + "114": 114, + + /** + * value: 115 + * @const + */ + "115": 115, + + /** + * value: 116 + * @const + */ + "116": 116, + + /** + * value: 117 + * @const + */ + "117": 117, + + /** + * value: 118 + * @const + */ + "118": 118, + + /** + * value: 119 + * @const + */ + "119": 119, + + /** + * value: 120 + * @const + */ + "120": 120, + + /** + * value: 121 + * @const + */ + "121": 121, + + /** + * value: 122 + * @const + */ + "122": 122, + + /** + * value: 123 + * @const + */ + "123": 123, + + /** + * value: 124 + * @const + */ + "124": 124, + + /** + * value: 125 + * @const + */ + "125": 125, + + /** + * value: 126 + * @const + */ + "126": 126, + + /** + * value: 127 + * @const + */ + "127": 127, + + /** + * value: 128 + * @const + */ + "128": 128, + + /** + * value: 129 + * @const + */ + "129": 129, + + /** + * value: 130 + * @const + */ + "130": 130, + + /** + * value: 131 + * @const + */ + "131": 131, + + /** + * value: 132 + * @const + */ + "132": 132, + + /** + * value: 133 + * @const + */ + "133": 133, + + /** + * value: 134 + * @const + */ + "134": 134, + + /** + * value: 135 + * @const + */ + "135": 135, + + /** + * value: 136 + * @const + */ + "136": 136, + + /** + * value: 137 + * @const + */ + "137": 137, + + /** + * value: 138 + * @const + */ + "138": 138, + + /** + * value: 139 + * @const + */ + "139": 139, + + /** + * value: 140 + * @const + */ + "140": 140, + + /** + * value: 141 + * @const + */ + "141": 141, + + /** + * value: 142 + * @const + */ + "142": 142, + + /** + * value: 143 + * @const + */ + "143": 143, + + /** + * value: 144 + * @const + */ + "144": 144, + + /** + * value: 145 + * @const + */ + "145": 145, + + /** + * value: 146 + * @const + */ + "146": 146, + + /** + * value: 147 + * @const + */ + "147": 147, + + /** + * value: 148 + * @const + */ + "148": 148, + + /** + * value: 149 + * @const + */ + "149": 149, + + /** + * value: 150 + * @const + */ + "150": 150, + + /** + * value: 151 + * @const + */ + "151": 151, + + /** + * value: 152 + * @const + */ + "152": 152, + + /** + * value: 153 + * @const + */ + "153": 153, + + /** + * value: 154 + * @const + */ + "154": 154, + + /** + * value: 155 + * @const + */ + "155": 155, + + /** + * value: 156 + * @const + */ + "156": 156, + + /** + * value: 157 + * @const + */ + "157": 157, + + /** + * value: 158 + * @const + */ + "158": 158, + + /** + * value: 159 + * @const + */ + "159": 159, + + /** + * value: 160 + * @const + */ + "160": 160, + + /** + * value: 161 + * @const + */ + "161": 161, + + /** + * value: 162 + * @const + */ + "162": 162, + + /** + * value: 163 + * @const + */ + "163": 163, + + /** + * value: 164 + * @const + */ + "164": 164, + + /** + * value: 165 + * @const + */ + "165": 165, + + /** + * value: 166 + * @const + */ + "166": 166, + + /** + * value: 167 + * @const + */ + "167": 167, + + /** + * value: 168 + * @const + */ + "168": 168, + + /** + * value: 169 + * @const + */ + "169": 169, + + /** + * value: 170 + * @const + */ + "170": 170, + + /** + * value: 171 + * @const + */ + "171": 171, + + /** + * value: 172 + * @const + */ + "172": 172, + + /** + * value: 173 + * @const + */ + "173": 173, + + /** + * value: 174 + * @const + */ + "174": 174, + + /** + * value: 175 + * @const + */ + "175": 175, + + /** + * value: 176 + * @const + */ + "176": 176, + + /** + * value: 177 + * @const + */ + "177": 177, + + /** + * value: 178 + * @const + */ + "178": 178, + + /** + * value: 179 + * @const + */ + "179": 179, + + /** + * value: 180 + * @const + */ + "180": 180, + + /** + * value: 181 + * @const + */ + "181": 181, + + /** + * value: 182 + * @const + */ + "182": 182, + + /** + * value: 183 + * @const + */ + "183": 183, + + /** + * value: 184 + * @const + */ + "184": 184, + + /** + * value: 185 + * @const + */ + "185": 185, + + /** + * value: 186 + * @const + */ + "186": 186, + + /** + * value: 187 + * @const + */ + "187": 187, + + /** + * value: 188 + * @const + */ + "188": 188, + + /** + * value: 189 + * @const + */ + "189": 189, + + /** + * value: 190 + * @const + */ + "190": 190, + + /** + * value: 191 + * @const + */ + "191": 191, + + /** + * value: 192 + * @const + */ + "192": 192, + + /** + * value: 193 + * @const + */ + "193": 193, + + /** + * value: 194 + * @const + */ + "194": 194, + + /** + * value: 195 + * @const + */ + "195": 195, + + /** + * value: 196 + * @const + */ + "196": 196, + + /** + * value: 197 + * @const + */ + "197": 197, + + /** + * value: 198 + * @const + */ + "198": 198, + + /** + * value: 199 + * @const + */ + "199": 199, + + /** + * value: 200 + * @const + */ + "200": 200, + + /** + * value: 201 + * @const + */ + "201": 201, + + /** + * value: 202 + * @const + */ + "202": 202, + + /** + * value: 203 + * @const + */ + "203": 203, + + /** + * value: 204 + * @const + */ + "204": 204, + + /** + * value: 205 + * @const + */ + "205": 205, + + /** + * value: 206 + * @const + */ + "206": 206, + + /** + * value: 207 + * @const + */ + "207": 207, + + /** + * value: 208 + * @const + */ + "208": 208, + + /** + * value: 209 + * @const + */ + "209": 209, + + /** + * value: 210 + * @const + */ + "210": 210, + + /** + * value: 211 + * @const + */ + "211": 211, + + /** + * value: 212 + * @const + */ + "212": 212, + + /** + * value: 213 + * @const + */ + "213": 213, + + /** + * value: 214 + * @const + */ + "214": 214, + + /** + * value: 215 + * @const + */ + "215": 215, + + /** + * value: 216 + * @const + */ + "216": 216, + + /** + * value: 217 + * @const + */ + "217": 217, + + /** + * value: 218 + * @const + */ + "218": 218, + + /** + * value: 219 + * @const + */ + "219": 219, + + /** + * value: 220 + * @const + */ + "220": 220, + + /** + * value: 221 + * @const + */ + "221": 221, + + /** + * value: 222 + * @const + */ + "222": 222, + + /** + * value: 223 + * @const + */ + "223": 223, + + /** + * value: 224 + * @const + */ + "224": 224, + + /** + * value: 225 + * @const + */ + "225": 225, + + /** + * value: 226 + * @const + */ + "226": 226, + + /** + * value: 227 + * @const + */ + "227": 227, + + /** + * value: 228 + * @const + */ + "228": 228, + + /** + * value: 229 + * @const + */ + "229": 229, + + /** + * value: 230 + * @const + */ + "230": 230, + + /** + * value: 231 + * @const + */ + "231": 231, + + /** + * value: 232 + * @const + */ + "232": 232, + + /** + * value: 233 + * @const + */ + "233": 233, + + /** + * value: 234 + * @const + */ + "234": 234, + + /** + * value: 235 + * @const + */ + "235": 235, + + /** + * value: 236 + * @const + */ + "236": 236, + + /** + * value: 237 + * @const + */ + "237": 237, + + /** + * value: 238 + * @const + */ + "238": 238, + + /** + * value: 239 + * @const + */ + "239": 239, + + /** + * value: 240 + * @const + */ + "240": 240, + + /** + * value: 241 + * @const + */ + "241": 241, + + /** + * value: 242 + * @const + */ + "242": 242, + + /** + * value: 243 + * @const + */ + "243": 243, + + /** + * value: 244 + * @const + */ + "244": 244, + + /** + * value: 245 + * @const + */ + "245": 245, + + /** + * value: 246 + * @const + */ + "246": 246, + + /** + * value: 247 + * @const + */ + "247": 247, + + /** + * value: 248 + * @const + */ + "248": 248, + + /** + * value: 249 + * @const + */ + "249": 249, + + /** + * value: 250 + * @const + */ + "250": 250, + + /** + * value: 251 + * @const + */ + "251": 251, + + /** + * value: 252 + * @const + */ + "252": 252, + + /** + * value: 253 + * @const + */ + "253": 253, + + /** + * value: 254 + * @const + */ + "254": 254, + + /** + * value: 255 + * @const + */ + "255": 255, + + /** + * value: 256 + * @const + */ + "256": 256, + + /** + * value: 257 + * @const + */ + "257": 257, + + /** + * value: 258 + * @const + */ + "258": 258, + + /** + * value: 259 + * @const + */ + "259": 259, + + /** + * value: 260 + * @const + */ + "260": 260, + + /** + * value: 261 + * @const + */ + "261": 261, + + /** + * value: 262 + * @const + */ + "262": 262, + + /** + * value: 263 + * @const + */ + "263": 263, + + /** + * value: 264 + * @const + */ + "264": 264, + + /** + * value: 265 + * @const + */ + "265": 265, + + /** + * value: 266 + * @const + */ + "266": 266, + + /** + * value: 267 + * @const + */ + "267": 267, + + /** + * value: 268 + * @const + */ + "268": 268, + + /** + * value: 269 + * @const + */ + "269": 269, + + /** + * value: 270 + * @const + */ + "270": 270, + + /** + * value: 271 + * @const + */ + "271": 271, + + /** + * value: 272 + * @const + */ + "272": 272, + + /** + * value: 273 + * @const + */ + "273": 273, + + /** + * value: 274 + * @const + */ + "274": 274, + + /** + * value: 275 + * @const + */ + "275": 275, + + /** + * value: 276 + * @const + */ + "276": 276, + + /** + * value: 277 + * @const + */ + "277": 277, + + /** + * value: 278 + * @const + */ + "278": 278, + + /** + * value: 279 + * @const + */ + "279": 279, + + /** + * value: 280 + * @const + */ + "280": 280, + + /** + * value: 281 + * @const + */ + "281": 281, + + /** + * value: 282 + * @const + */ + "282": 282, + + /** + * value: 283 + * @const + */ + "283": 283, + + /** + * value: 284 + * @const + */ + "284": 284, + + /** + * value: 285 + * @const + */ + "285": 285, + + /** + * value: 286 + * @const + */ + "286": 286, + + /** + * value: 287 + * @const + */ + "287": 287, + + /** + * value: 288 + * @const + */ + "288": 288, + + /** + * value: 289 + * @const + */ + "289": 289, + + /** + * value: 290 + * @const + */ + "290": 290, + + /** + * value: 291 + * @const + */ + "291": 291, + + /** + * value: 292 + * @const + */ + "292": 292, + + /** + * value: 293 + * @const + */ + "293": 293, + + /** + * value: 294 + * @const + */ + "294": 294, + + /** + * value: 295 + * @const + */ + "295": 295, + + /** + * value: 296 + * @const + */ + "296": 296, + + /** + * value: 297 + * @const + */ + "297": 297, + + /** + * value: 298 + * @const + */ + "298": 298, + + /** + * value: 299 + * @const + */ + "299": 299, + + /** + * value: 300 + * @const + */ + "300": 300, + + /** + * value: 301 + * @const + */ + "301": 301, + + /** + * value: 302 + * @const + */ + "302": 302, + + /** + * value: 303 + * @const + */ + "303": 303, + + /** + * value: 304 + * @const + */ + "304": 304, + + /** + * value: 305 + * @const + */ + "305": 305, + + /** + * value: 306 + * @const + */ + "306": 306, + + /** + * value: 307 + * @const + */ + "307": 307, + + /** + * value: 308 + * @const + */ + "308": 308, + + /** + * value: 309 + * @const + */ + "309": 309, + + /** + * value: 310 + * @const + */ + "310": 310, + + /** + * value: 311 + * @const + */ + "311": 311, + + /** + * value: 312 + * @const + */ + "312": 312, + + /** + * value: 313 + * @const + */ + "313": 313, + + /** + * value: 314 + * @const + */ + "314": 314, + + /** + * value: 315 + * @const + */ + "315": 315, + + /** + * value: 316 + * @const + */ + "316": 316, + + /** + * value: 317 + * @const + */ + "317": 317, + + /** + * value: 318 + * @const + */ + "318": 318, + + /** + * value: 319 + * @const + */ + "319": 319, + + /** + * value: 320 + * @const + */ + "320": 320, + + /** + * value: 321 + * @const + */ + "321": 321, + + /** + * value: 322 + * @const + */ + "322": 322, + + /** + * value: 323 + * @const + */ + "323": 323, + + /** + * value: 324 + * @const + */ + "324": 324, + + /** + * value: 325 + * @const + */ + "325": 325, + + /** + * value: 326 + * @const + */ + "326": 326, + + /** + * value: 327 + * @const + */ + "327": 327, + + /** + * value: 328 + * @const + */ + "328": 328, + + /** + * value: 329 + * @const + */ + "329": 329, + + /** + * value: 331 + * @const + */ + "331": 331, + + /** + * value: 332 + * @const + */ + "332": 332, + + /** + * value: 333 + * @const + */ + "333": 333, + + /** + * value: 334 + * @const + */ + "334": 334, + + /** + * value: 335 + * @const + */ + "335": 335, + + /** + * value: 336 + * @const + */ + "336": 336, + + /** + * value: 337 + * @const + */ + "337": 337, + + /** + * value: 338 + * @const + */ + "338": 338, + + /** + * value: 339 + * @const + */ + "339": 339, + + /** + * value: 340 + * @const + */ + "340": 340, + + /** + * value: 341 + * @const + */ + "341": 341, + + /** + * value: 342 + * @const + */ + "342": 342, + + /** + * value: 343 + * @const + */ + "343": 343, + + /** + * value: 344 + * @const + */ + "344": 344, + + /** + * value: 345 + * @const + */ + "345": 345, + + /** + * value: 348 + * @const + */ + "348": 348, + + /** + * value: 349 + * @const + */ + "349": 349, + + /** + * value: 350 + * @const + */ + "350": 350, + + /** + * value: 351 + * @const + */ + "351": 351, + + /** + * value: 5000 + * @const + */ + "5000": 5000, + + /** + * value: 5001 + * @const + */ + "5001": 5001, + + /** + * value: 5002 + * @const + */ + "5002": 5002, + + /** + * value: 5003 + * @const + */ + "5003": 5003, + + /** + * value: 5004 + * @const + */ + "5004": 5004, + + /** + * value: 5005 + * @const + */ + "5005": 5005, + + /** + * value: 5006 + * @const + */ + "5006": 5006, + + /** + * value: 5007 + * @const + */ + "5007": 5007, + + /** + * value: 5008 + * @const + */ + "5008": 5008, + + /** + * value: 5009 + * @const + */ + "5009": 5009, + + /** + * value: 5010 + * @const + */ + "5010": 5010, + + /** + * value: 5011 + * @const + */ + "5011": 5011, + + /** + * value: 5012 + * @const + */ + "5012": 5012, + + /** + * value: 5013 + * @const + */ + "5013": 5013, + + /** + * value: 5014 + * @const + */ + "5014": 5014, + + /** + * value: 5015 + * @const + */ + "5015": 5015, + + /** + * value: 5016 + * @const + */ + "5016": 5016, + + /** + * value: 5017 + * @const + */ + "5017": 5017, + + /** + * value: 5018 + * @const + */ + "5018": 5018, + + /** + * value: 5020 + * @const + */ + "5020": 5020, + + /** + * value: 5021 + * @const + */ + "5021": 5021, + + /** + * value: 5022 + * @const + */ + "5022": 5022, + + /** + * value: 5023 + * @const + */ + "5023": 5023, + + /** + * value: 5024 + * @const + */ + "5024": 5024, + + /** + * value: 5025 + * @const + */ + "5025": 5025, + + /** + * value: 5026 + * @const + */ + "5026": 5026, + + /** + * value: 5027 + * @const + */ + "5027": 5027, + + /** + * value: 5028 + * @const + */ + "5028": 5028, + + /** + * value: 5029 + * @const + */ + "5029": 5029, + + /** + * value: 5030 + * @const + */ + "5030": 5030, + + /** + * value: 5031 + * @const + */ + "5031": 5031, + + /** + * value: 5032 + * @const + */ + "5032": 5032, + + /** + * value: 5033 + * @const + */ + "5033": 5033, + + /** + * value: 5034 + * @const + */ + "5034": 5034, + + /** + * value: 5035 + * @const + */ + "5035": 5035, + + /** + * value: 5036 + * @const + */ + "5036": 5036, + + /** + * value: 5037 + * @const + */ + "5037": 5037, + + /** + * value: 5039 + * @const + */ + "5039": 5039, + + /** + * value: 5040 + * @const + */ + "5040": 5040, + + /** + * value: 5041 + * @const + */ + "5041": 5041, + + /** + * value: 5042 + * @const + */ + "5042": 5042, + + /** + * value: 5043 + * @const + */ + "5043": 5043, + + /** + * value: 5044 + * @const + */ + "5044": 5044, + + /** + * value: 5045 + * @const + */ + "5045": 5045, + + /** + * value: 5046 + * @const + */ + "5046": 5046, + + /** + * value: 5047 + * @const + */ + "5047": 5047, + + /** + * value: 5048 + * @const + */ + "5048": 5048, + + /** + * value: 5049 + * @const + */ + "5049": 5049, + + /** + * value: 5050 + * @const + */ + "5050": 5050, + + /** + * value: 5051 + * @const + */ + "5051": 5051, + + /** + * value: 5052 + * @const + */ + "5052": 5052, + + /** + * value: 5053 + * @const + */ + "5053": 5053, + + /** + * value: 5054 + * @const + */ + "5054": 5054, + + /** + * value: 5055 + * @const + */ + "5055": 5055, + + /** + * value: 5056 + * @const + */ + "5056": 5056, + + /** + * value: 5057 + * @const + */ + "5057": 5057, + + /** + * value: 5058 + * @const + */ + "5058": 5058, + + /** + * value: 5059 + * @const + */ + "5059": 5059, + + /** + * value: 5060 + * @const + */ + "5060": 5060, + + /** + * value: 5061 + * @const + */ + "5061": 5061, + + /** + * value: 5062 + * @const + */ + "5062": 5062, + + /** + * value: 5063 + * @const + */ + "5063": 5063, + + /** + * value: 5064 + * @const + */ + "5064": 5064, + + /** + * value: 5065 + * @const + */ + "5065": 5065, + + /** + * value: 5066 + * @const + */ + "5066": 5066, + + /** + * value: 5067 + * @const + */ + "5067": 5067, + + /** + * value: 5068 + * @const + */ + "5068": 5068, + + /** + * value: 5069 + * @const + */ + "5069": 5069, + + /** + * value: 5070 + * @const + */ + "5070": 5070, + + /** + * value: 5071 + * @const + */ + "5071": 5071, + + /** + * value: 5072 + * @const + */ + "5072": 5072, + + /** + * value: 5073 + * @const + */ + "5073": 5073, + + /** + * value: 5074 + * @const + */ + "5074": 5074, + + /** + * value: 5075 + * @const + */ + "5075": 5075, + + /** + * value: 5076 + * @const + */ + "5076": 5076, + + /** + * value: 5077 + * @const + */ + "5077": 5077, + + /** + * value: 5078 + * @const + */ + "5078": 5078, + + /** + * value: 5079 + * @const + */ + "5079": 5079, + + /** + * value: 5080 + * @const + */ + "5080": 5080, + + /** + * value: 5081 + * @const + */ + "5081": 5081, + + /** + * value: 5082 + * @const + */ + "5082": 5082, + + /** + * value: 5083 + * @const + */ + "5083": 5083, + + /** + * value: 5084 + * @const + */ + "5084": 5084, + + /** + * value: 5085 + * @const + */ + "5085": 5085, + + /** + * value: 5086 + * @const + */ + "5086": 5086, + + /** + * value: 5087 + * @const + */ + "5087": 5087, + + /** + * value: 5088 + * @const + */ + "5088": 5088, + + /** + * value: 5089 + * @const + */ + "5089": 5089, + + /** + * value: 5090 + * @const + */ + "5090": 5090, + + /** + * value: 5091 + * @const + */ + "5091": 5091, + + /** + * value: 5092 + * @const + */ + "5092": 5092, + + /** + * value: 5093 + * @const + */ + "5093": 5093, + + /** + * value: 5094 + * @const + */ + "5094": 5094, + + /** + * value: 5095 + * @const + */ + "5095": 5095, + + /** + * value: 5096 + * @const + */ + "5096": 5096, + + /** + * value: 5097 + * @const + */ + "5097": 5097, + + /** + * value: 5098 + * @const + */ + "5098": 5098, + + /** + * value: 5099 + * @const + */ + "5099": 5099, + + /** + * value: 5100 + * @const + */ + "5100": 5100, + + /** + * value: 5101 + * @const + */ + "5101": 5101, + + /** + * value: 5102 + * @const + */ + "5102": 5102, + + /** + * value: 5103 + * @const + */ + "5103": 5103, + + /** + * value: 5104 + * @const + */ + "5104": 5104, + + /** + * value: 5105 + * @const + */ + "5105": 5105, + + /** + * value: 5106 + * @const + */ + "5106": 5106, + + /** + * value: 5107 + * @const + */ + "5107": 5107, + + /** + * value: 5108 + * @const + */ + "5108": 5108, + + /** + * value: 5109 + * @const + */ + "5109": 5109, + + /** + * value: 5110 + * @const + */ + "5110": 5110, + + /** + * value: 5111 + * @const + */ + "5111": 5111, + + /** + * value: 5112 + * @const + */ + "5112": 5112, + + /** + * value: 5113 + * @const + */ + "5113": 5113, + + /** + * value: 5114 + * @const + */ + "5114": 5114, + + /** + * value: 5115 + * @const + */ + "5115": 5115, + + /** + * value: 5116 + * @const + */ + "5116": 5116, + + /** + * value: 5117 + * @const + */ + "5117": 5117, + + /** + * value: 5118 + * @const + */ + "5118": 5118, + + /** + * value: 5119 + * @const + */ + "5119": 5119, + + /** + * value: 5120 + * @const + */ + "5120": 5120, + + /** + * value: 5121 + * @const + */ + "5121": 5121, + + /** + * value: 5122 + * @const + */ + "5122": 5122, + + /** + * value: 5123 + * @const + */ + "5123": 5123, + + /** + * value: 5124 + * @const + */ + "5124": 5124, + + /** + * value: 5125 + * @const + */ + "5125": 5125, + + /** + * value: 5126 + * @const + */ + "5126": 5126, + + /** + * value: 5127 + * @const + */ + "5127": 5127, + + /** + * value: 5128 + * @const + */ + "5128": 5128, + + /** + * value: 5129 + * @const + */ + "5129": 5129, + + /** + * value: 5130 + * @const + */ + "5130": 5130, + + /** + * value: 5131 + * @const + */ + "5131": 5131, + + /** + * value: 5132 + * @const + */ + "5132": 5132, + + /** + * value: 5133 + * @const + */ + "5133": 5133, + + /** + * value: 5134 + * @const + */ + "5134": 5134, + + /** + * value: 5135 + * @const + */ + "5135": 5135, + + /** + * value: 5136 + * @const + */ + "5136": 5136, + + /** + * value: 5137 + * @const + */ + "5137": 5137, + + /** + * value: 5138 + * @const + */ + "5138": 5138, + + /** + * value: 5139 + * @const + */ + "5139": 5139, + + /** + * value: 5140 + * @const + */ + "5140": 5140, + + /** + * value: 5141 + * @const + */ + "5141": 5141, + + /** + * value: 5142 + * @const + */ + "5142": 5142, + + /** + * value: 5143 + * @const + */ + "5143": 5143, + + /** + * value: 5144 + * @const + */ + "5144": 5144, + + /** + * value: 5145 + * @const + */ + "5145": 5145, + + /** + * value: 5146 + * @const + */ + "5146": 5146, + + /** + * value: 5147 + * @const + */ + "5147": 5147, + + /** + * value: 5148 + * @const + */ + "5148": 5148, + + /** + * value: 5149 + * @const + */ + "5149": 5149, + + /** + * value: 5150 + * @const + */ + "5150": 5150, + + /** + * value: 5151 + * @const + */ + "5151": 5151, + + /** + * value: 5152 + * @const + */ + "5152": 5152, + + /** + * value: 5153 + * @const + */ + "5153": 5153, + + /** + * value: 5154 + * @const + */ + "5154": 5154, + + /** + * value: 5156 + * @const + */ + "5156": 5156, + + /** + * value: 5157 + * @const + */ + "5157": 5157, + + /** + * value: 5158 + * @const + */ + "5158": 5158, + + /** + * value: 5159 + * @const + */ + "5159": 5159, + + /** + * value: 5160 + * @const + */ + "5160": 5160, + + /** + * value: 5161 + * @const + */ + "5161": 5161, + + /** + * value: 5162 + * @const + */ + "5162": 5162, + + /** + * value: 5163 + * @const + */ + "5163": 5163, + + /** + * value: 5164 + * @const + */ + "5164": 5164, + + /** + * value: 5165 + * @const + */ + "5165": 5165, + + /** + * value: 5166 + * @const + */ + "5166": 5166, + + /** + * value: 5167 + * @const + */ + "5167": 5167, + + /** + * value: 5168 + * @const + */ + "5168": 5168, + + /** + * value: 5169 + * @const + */ + "5169": 5169, + + /** + * value: 5170 + * @const + */ + "5170": 5170, + + /** + * value: 5171 + * @const + */ + "5171": 5171, + + /** + * value: 5172 + * @const + */ + "5172": 5172, + + /** + * value: 5173 + * @const + */ + "5173": 5173, + + /** + * value: 5174 + * @const + */ + "5174": 5174, + + /** + * value: 5175 + * @const + */ + "5175": 5175, + + /** + * value: 5176 + * @const + */ + "5176": 5176, + + /** + * value: 5177 + * @const + */ + "5177": 5177, + + /** + * value: 5178 + * @const + */ + "5178": 5178, + + /** + * value: 6000 + * @const + */ + "6000": 6000, + + /** + * value: 6001 + * @const + */ + "6001": 6001, + + /** + * value: 90001 + * @const + */ + "90001": 90001 +}; + + +/** + * Allowed values for the roomAmenityList property. + * @enum {Number} + * @readonly + */ +InlineResponse2003PropertyMediaList['RoomAmenityListEnum'] = { + + /** + * value: 1 + * @const + */ + "1": 1, + + /** + * value: 2 + * @const + */ + "2": 2, + + /** + * value: 3 + * @const + */ + "3": 3, + + /** + * value: 4 + * @const + */ + "4": 4, + + /** + * value: 5 + * @const + */ + "5": 5, + + /** + * value: 6 + * @const + */ + "6": 6, + + /** + * value: 7 + * @const + */ + "7": 7, + + /** + * value: 8 + * @const + */ + "8": 8, + + /** + * value: 9 + * @const + */ + "9": 9, + + /** + * value: 10 + * @const + */ + "10": 10, + + /** + * value: 11 + * @const + */ + "11": 11, + + /** + * value: 12 + * @const + */ + "12": 12, + + /** + * value: 13 + * @const + */ + "13": 13, + + /** + * value: 14 + * @const + */ + "14": 14, + + /** + * value: 15 + * @const + */ + "15": 15, + + /** + * value: 16 + * @const + */ + "16": 16, + + /** + * value: 17 + * @const + */ + "17": 17, + + /** + * value: 18 + * @const + */ + "18": 18, + + /** + * value: 19 + * @const + */ + "19": 19, + + /** + * value: 20 + * @const + */ + "20": 20, + + /** + * value: 21 + * @const + */ + "21": 21, + + /** + * value: 22 + * @const + */ + "22": 22, + + /** + * value: 23 + * @const + */ + "23": 23, + + /** + * value: 24 + * @const + */ + "24": 24, + + /** + * value: 25 + * @const + */ + "25": 25, + + /** + * value: 26 + * @const + */ + "26": 26, + + /** + * value: 27 + * @const + */ + "27": 27, + + /** + * value: 28 + * @const + */ + "28": 28, + + /** + * value: 29 + * @const + */ + "29": 29, + + /** + * value: 30 + * @const + */ + "30": 30, + + /** + * value: 31 + * @const + */ + "31": 31, + + /** + * value: 32 + * @const + */ + "32": 32, + + /** + * value: 33 + * @const + */ + "33": 33, + + /** + * value: 34 + * @const + */ + "34": 34, + + /** + * value: 35 + * @const + */ + "35": 35, + + /** + * value: 36 + * @const + */ + "36": 36, + + /** + * value: 37 + * @const + */ + "37": 37, + + /** + * value: 38 + * @const + */ + "38": 38, + + /** + * value: 39 + * @const + */ + "39": 39, + + /** + * value: 40 + * @const + */ + "40": 40, + + /** + * value: 41 + * @const + */ + "41": 41, + + /** + * value: 42 + * @const + */ + "42": 42, + + /** + * value: 43 + * @const + */ + "43": 43, + + /** + * value: 44 + * @const + */ + "44": 44, + + /** + * value: 45 + * @const + */ + "45": 45, + + /** + * value: 46 + * @const + */ + "46": 46, + + /** + * value: 47 + * @const + */ + "47": 47, + + /** + * value: 48 + * @const + */ + "48": 48, + + /** + * value: 49 + * @const + */ + "49": 49, + + /** + * value: 50 + * @const + */ + "50": 50, + + /** + * value: 51 + * @const + */ + "51": 51, + + /** + * value: 52 + * @const + */ + "52": 52, + + /** + * value: 53 + * @const + */ + "53": 53, + + /** + * value: 54 + * @const + */ + "54": 54, + + /** + * value: 55 + * @const + */ + "55": 55, + + /** + * value: 56 + * @const + */ + "56": 56, + + /** + * value: 57 + * @const + */ + "57": 57, + + /** + * value: 58 + * @const + */ + "58": 58, + + /** + * value: 59 + * @const + */ + "59": 59, + + /** + * value: 60 + * @const + */ + "60": 60, + + /** + * value: 61 + * @const + */ + "61": 61, + + /** + * value: 62 + * @const + */ + "62": 62, + + /** + * value: 63 + * @const + */ + "63": 63, + + /** + * value: 64 + * @const + */ + "64": 64, + + /** + * value: 65 + * @const + */ + "65": 65, + + /** + * value: 66 + * @const + */ + "66": 66, + + /** + * value: 67 + * @const + */ + "67": 67, + + /** + * value: 68 + * @const + */ + "68": 68, + + /** + * value: 69 + * @const + */ + "69": 69, + + /** + * value: 70 + * @const + */ + "70": 70, + + /** + * value: 71 + * @const + */ + "71": 71, + + /** + * value: 72 + * @const + */ + "72": 72, + + /** + * value: 73 + * @const + */ + "73": 73, + + /** + * value: 74 + * @const + */ + "74": 74, + + /** + * value: 75 + * @const + */ + "75": 75, + + /** + * value: 76 + * @const + */ + "76": 76, + + /** + * value: 77 + * @const + */ + "77": 77, + + /** + * value: 78 + * @const + */ + "78": 78, + + /** + * value: 79 + * @const + */ + "79": 79, + + /** + * value: 80 + * @const + */ + "80": 80, + + /** + * value: 81 + * @const + */ + "81": 81, + + /** + * value: 82 + * @const + */ + "82": 82, + + /** + * value: 83 + * @const + */ + "83": 83, + + /** + * value: 84 + * @const + */ + "84": 84, + + /** + * value: 85 + * @const + */ + "85": 85, + + /** + * value: 86 + * @const + */ + "86": 86, + + /** + * value: 87 + * @const + */ + "87": 87, + + /** + * value: 88 + * @const + */ + "88": 88, + + /** + * value: 89 + * @const + */ + "89": 89, + + /** + * value: 90 + * @const + */ + "90": 90, + + /** + * value: 91 + * @const + */ + "91": 91, + + /** + * value: 92 + * @const + */ + "92": 92, + + /** + * value: 93 + * @const + */ + "93": 93, + + /** + * value: 94 + * @const + */ + "94": 94, + + /** + * value: 95 + * @const + */ + "95": 95, + + /** + * value: 96 + * @const + */ + "96": 96, + + /** + * value: 97 + * @const + */ + "97": 97, + + /** + * value: 98 + * @const + */ + "98": 98, + + /** + * value: 99 + * @const + */ + "99": 99, + + /** + * value: 100 + * @const + */ + "100": 100, + + /** + * value: 101 + * @const + */ + "101": 101, + + /** + * value: 102 + * @const + */ + "102": 102, + + /** + * value: 103 + * @const + */ + "103": 103, + + /** + * value: 104 + * @const + */ + "104": 104, + + /** + * value: 105 + * @const + */ + "105": 105, + + /** + * value: 106 + * @const + */ + "106": 106, + + /** + * value: 107 + * @const + */ + "107": 107, + + /** + * value: 108 + * @const + */ + "108": 108, + + /** + * value: 109 + * @const + */ + "109": 109, + + /** + * value: 110 + * @const + */ + "110": 110, + + /** + * value: 111 + * @const + */ + "111": 111, + + /** + * value: 112 + * @const + */ + "112": 112, + + /** + * value: 113 + * @const + */ + "113": 113, + + /** + * value: 114 + * @const + */ + "114": 114, + + /** + * value: 115 + * @const + */ + "115": 115, + + /** + * value: 116 + * @const + */ + "116": 116, + + /** + * value: 117 + * @const + */ + "117": 117, + + /** + * value: 118 + * @const + */ + "118": 118, + + /** + * value: 119 + * @const + */ + "119": 119, + + /** + * value: 120 + * @const + */ + "120": 120, + + /** + * value: 121 + * @const + */ + "121": 121, + + /** + * value: 122 + * @const + */ + "122": 122, + + /** + * value: 123 + * @const + */ + "123": 123, + + /** + * value: 124 + * @const + */ + "124": 124, + + /** + * value: 125 + * @const + */ + "125": 125, + + /** + * value: 126 + * @const + */ + "126": 126, + + /** + * value: 127 + * @const + */ + "127": 127, + + /** + * value: 128 + * @const + */ + "128": 128, + + /** + * value: 129 + * @const + */ + "129": 129, + + /** + * value: 130 + * @const + */ + "130": 130, + + /** + * value: 131 + * @const + */ + "131": 131, + + /** + * value: 132 + * @const + */ + "132": 132, + + /** + * value: 133 + * @const + */ + "133": 133, + + /** + * value: 134 + * @const + */ + "134": 134, + + /** + * value: 135 + * @const + */ + "135": 135, + + /** + * value: 136 + * @const + */ + "136": 136, + + /** + * value: 137 + * @const + */ + "137": 137, + + /** + * value: 138 + * @const + */ + "138": 138, + + /** + * value: 139 + * @const + */ + "139": 139, + + /** + * value: 140 + * @const + */ + "140": 140, + + /** + * value: 141 + * @const + */ + "141": 141, + + /** + * value: 142 + * @const + */ + "142": 142, + + /** + * value: 143 + * @const + */ + "143": 143, + + /** + * value: 144 + * @const + */ + "144": 144, + + /** + * value: 145 + * @const + */ + "145": 145, + + /** + * value: 146 + * @const + */ + "146": 146, + + /** + * value: 147 + * @const + */ + "147": 147, + + /** + * value: 148 + * @const + */ + "148": 148, + + /** + * value: 149 + * @const + */ + "149": 149, + + /** + * value: 150 + * @const + */ + "150": 150, + + /** + * value: 151 + * @const + */ + "151": 151, + + /** + * value: 152 + * @const + */ + "152": 152, + + /** + * value: 153 + * @const + */ + "153": 153, + + /** + * value: 154 + * @const + */ + "154": 154, + + /** + * value: 155 + * @const + */ + "155": 155, + + /** + * value: 156 + * @const + */ + "156": 156, + + /** + * value: 157 + * @const + */ + "157": 157, + + /** + * value: 158 + * @const + */ + "158": 158, + + /** + * value: 159 + * @const + */ + "159": 159, + + /** + * value: 160 + * @const + */ + "160": 160, + + /** + * value: 161 + * @const + */ + "161": 161, + + /** + * value: 162 + * @const + */ + "162": 162, + + /** + * value: 163 + * @const + */ + "163": 163, + + /** + * value: 164 + * @const + */ + "164": 164, + + /** + * value: 165 + * @const + */ + "165": 165, + + /** + * value: 166 + * @const + */ + "166": 166, + + /** + * value: 167 + * @const + */ + "167": 167, + + /** + * value: 168 + * @const + */ + "168": 168, + + /** + * value: 169 + * @const + */ + "169": 169, + + /** + * value: 170 + * @const + */ + "170": 170, + + /** + * value: 171 + * @const + */ + "171": 171, + + /** + * value: 172 + * @const + */ + "172": 172, + + /** + * value: 173 + * @const + */ + "173": 173, + + /** + * value: 174 + * @const + */ + "174": 174, + + /** + * value: 175 + * @const + */ + "175": 175, + + /** + * value: 176 + * @const + */ + "176": 176, + + /** + * value: 177 + * @const + */ + "177": 177, + + /** + * value: 178 + * @const + */ + "178": 178, + + /** + * value: 179 + * @const + */ + "179": 179, + + /** + * value: 180 + * @const + */ + "180": 180, + + /** + * value: 181 + * @const + */ + "181": 181, + + /** + * value: 182 + * @const + */ + "182": 182, + + /** + * value: 183 + * @const + */ + "183": 183, + + /** + * value: 184 + * @const + */ + "184": 184, + + /** + * value: 185 + * @const + */ + "185": 185, + + /** + * value: 186 + * @const + */ + "186": 186, + + /** + * value: 187 + * @const + */ + "187": 187, + + /** + * value: 188 + * @const + */ + "188": 188, + + /** + * value: 189 + * @const + */ + "189": 189, + + /** + * value: 190 + * @const + */ + "190": 190, + + /** + * value: 191 + * @const + */ + "191": 191, + + /** + * value: 192 + * @const + */ + "192": 192, + + /** + * value: 193 + * @const + */ + "193": 193, + + /** + * value: 194 + * @const + */ + "194": 194, + + /** + * value: 195 + * @const + */ + "195": 195, + + /** + * value: 196 + * @const + */ + "196": 196, + + /** + * value: 197 + * @const + */ + "197": 197, + + /** + * value: 198 + * @const + */ + "198": 198, + + /** + * value: 199 + * @const + */ + "199": 199, + + /** + * value: 200 + * @const + */ + "200": 200, + + /** + * value: 201 + * @const + */ + "201": 201, + + /** + * value: 202 + * @const + */ + "202": 202, + + /** + * value: 203 + * @const + */ + "203": 203, + + /** + * value: 204 + * @const + */ + "204": 204, + + /** + * value: 205 + * @const + */ + "205": 205, + + /** + * value: 206 + * @const + */ + "206": 206, + + /** + * value: 207 + * @const + */ + "207": 207, + + /** + * value: 208 + * @const + */ + "208": 208, + + /** + * value: 209 + * @const + */ + "209": 209, + + /** + * value: 210 + * @const + */ + "210": 210, + + /** + * value: 211 + * @const + */ + "211": 211, + + /** + * value: 212 + * @const + */ + "212": 212, + + /** + * value: 213 + * @const + */ + "213": 213, + + /** + * value: 214 + * @const + */ + "214": 214, + + /** + * value: 215 + * @const + */ + "215": 215, + + /** + * value: 216 + * @const + */ + "216": 216, + + /** + * value: 217 + * @const + */ + "217": 217, + + /** + * value: 218 + * @const + */ + "218": 218, + + /** + * value: 219 + * @const + */ + "219": 219, + + /** + * value: 220 + * @const + */ + "220": 220, + + /** + * value: 221 + * @const + */ + "221": 221, + + /** + * value: 222 + * @const + */ + "222": 222, + + /** + * value: 223 + * @const + */ + "223": 223, + + /** + * value: 224 + * @const + */ + "224": 224, + + /** + * value: 225 + * @const + */ + "225": 225, + + /** + * value: 226 + * @const + */ + "226": 226, + + /** + * value: 227 + * @const + */ + "227": 227, + + /** + * value: 228 + * @const + */ + "228": 228, + + /** + * value: 229 + * @const + */ + "229": 229, + + /** + * value: 230 + * @const + */ + "230": 230, + + /** + * value: 231 + * @const + */ + "231": 231, + + /** + * value: 232 + * @const + */ + "232": 232, + + /** + * value: 233 + * @const + */ + "233": 233, + + /** + * value: 234 + * @const + */ + "234": 234, + + /** + * value: 235 + * @const + */ + "235": 235, + + /** + * value: 236 + * @const + */ + "236": 236, + + /** + * value: 237 + * @const + */ + "237": 237, + + /** + * value: 238 + * @const + */ + "238": 238, + + /** + * value: 239 + * @const + */ + "239": 239, + + /** + * value: 240 + * @const + */ + "240": 240, + + /** + * value: 241 + * @const + */ + "241": 241, + + /** + * value: 242 + * @const + */ + "242": 242, + + /** + * value: 243 + * @const + */ + "243": 243, + + /** + * value: 244 + * @const + */ + "244": 244, + + /** + * value: 245 + * @const + */ + "245": 245, + + /** + * value: 246 + * @const + */ + "246": 246, + + /** + * value: 247 + * @const + */ + "247": 247, + + /** + * value: 248 + * @const + */ + "248": 248, + + /** + * value: 249 + * @const + */ + "249": 249, + + /** + * value: 250 + * @const + */ + "250": 250, + + /** + * value: 251 + * @const + */ + "251": 251, + + /** + * value: 252 + * @const + */ + "252": 252, + + /** + * value: 253 + * @const + */ + "253": 253, + + /** + * value: 254 + * @const + */ + "254": 254, + + /** + * value: 255 + * @const + */ + "255": 255, + + /** + * value: 256 + * @const + */ + "256": 256, + + /** + * value: 257 + * @const + */ + "257": 257, + + /** + * value: 258 + * @const + */ + "258": 258, + + /** + * value: 259 + * @const + */ + "259": 259, + + /** + * value: 260 + * @const + */ + "260": 260, + + /** + * value: 261 + * @const + */ + "261": 261, + + /** + * value: 262 + * @const + */ + "262": 262, + + /** + * value: 263 + * @const + */ + "263": 263, + + /** + * value: 264 + * @const + */ + "264": 264, + + /** + * value: 265 + * @const + */ + "265": 265, + + /** + * value: 266 + * @const + */ + "266": 266, + + /** + * value: 267 + * @const + */ + "267": 267, + + /** + * value: 268 + * @const + */ + "268": 268, + + /** + * value: 269 + * @const + */ + "269": 269, + + /** + * value: 270 + * @const + */ + "270": 270, + + /** + * value: 271 + * @const + */ + "271": 271, + + /** + * value: 272 + * @const + */ + "272": 272, + + /** + * value: 273 + * @const + */ + "273": 273, + + /** + * value: 274 + * @const + */ + "274": 274, + + /** + * value: 275 + * @const + */ + "275": 275, + + /** + * value: 276 + * @const + */ + "276": 276, + + /** + * value: 277 + * @const + */ + "277": 277, + + /** + * value: 278 + * @const + */ + "278": 278, + + /** + * value: 279 + * @const + */ + "279": 279, + + /** + * value: 280 + * @const + */ + "280": 280, + + /** + * value: 281 + * @const + */ + "281": 281, + + /** + * value: 282 + * @const + */ + "282": 282, + + /** + * value: 283 + * @const + */ + "283": 283, + + /** + * value: 5001 + * @const + */ + "5001": 5001, + + /** + * value: 5002 + * @const + */ + "5002": 5002, + + /** + * value: 5003 + * @const + */ + "5003": 5003, + + /** + * value: 5004 + * @const + */ + "5004": 5004, + + /** + * value: 5005 + * @const + */ + "5005": 5005, + + /** + * value: 5006 + * @const + */ + "5006": 5006, + + /** + * value: 5007 + * @const + */ + "5007": 5007, + + /** + * value: 5008 + * @const + */ + "5008": 5008, + + /** + * value: 5009 + * @const + */ + "5009": 5009, + + /** + * value: 5010 + * @const + */ + "5010": 5010, + + /** + * value: 5011 + * @const + */ + "5011": 5011, + + /** + * value: 5012 + * @const + */ + "5012": 5012, + + /** + * value: 5013 + * @const + */ + "5013": 5013, + + /** + * value: 5014 + * @const + */ + "5014": 5014, + + /** + * value: 5015 + * @const + */ + "5015": 5015, + + /** + * value: 5016 + * @const + */ + "5016": 5016, + + /** + * value: 5017 + * @const + */ + "5017": 5017, + + /** + * value: 5018 + * @const + */ + "5018": 5018, + + /** + * value: 5019 + * @const + */ + "5019": 5019, + + /** + * value: 5020 + * @const + */ + "5020": 5020, + + /** + * value: 5021 + * @const + */ + "5021": 5021, + + /** + * value: 5022 + * @const + */ + "5022": 5022, + + /** + * value: 5023 + * @const + */ + "5023": 5023, + + /** + * value: 5024 + * @const + */ + "5024": 5024, + + /** + * value: 5025 + * @const + */ + "5025": 5025, + + /** + * value: 5026 + * @const + */ + "5026": 5026, + + /** + * value: 5027 + * @const + */ + "5027": 5027, + + /** + * value: 5028 + * @const + */ + "5028": 5028, + + /** + * value: 5029 + * @const + */ + "5029": 5029, + + /** + * value: 5030 + * @const + */ + "5030": 5030, + + /** + * value: 5031 + * @const + */ + "5031": 5031, + + /** + * value: 5032 + * @const + */ + "5032": 5032, + + /** + * value: 5033 + * @const + */ + "5033": 5033, + + /** + * value: 5034 + * @const + */ + "5034": 5034, + + /** + * value: 5035 + * @const + */ + "5035": 5035, + + /** + * value: 5036 + * @const + */ + "5036": 5036, + + /** + * value: 5037 + * @const + */ + "5037": 5037, + + /** + * value: 5038 + * @const + */ + "5038": 5038, + + /** + * value: 5039 + * @const + */ + "5039": 5039, + + /** + * value: 5040 + * @const + */ + "5040": 5040, + + /** + * value: 5041 + * @const + */ + "5041": 5041, + + /** + * value: 5042 + * @const + */ + "5042": 5042, + + /** + * value: 5043 + * @const + */ + "5043": 5043, + + /** + * value: 5044 + * @const + */ + "5044": 5044, + + /** + * value: 5045 + * @const + */ + "5045": 5045, + + /** + * value: 5046 + * @const + */ + "5046": 5046, + + /** + * value: 5068 + * @const + */ + "5068": 5068, + + /** + * value: 5069 + * @const + */ + "5069": 5069, + + /** + * value: 5070 + * @const + */ + "5070": 5070, + + /** + * value: 5071 + * @const + */ + "5071": 5071, + + /** + * value: 5072 + * @const + */ + "5072": 5072, + + /** + * value: 5073 + * @const + */ + "5073": 5073, + + /** + * value: 5074 + * @const + */ + "5074": 5074, + + /** + * value: 5075 + * @const + */ + "5075": 5075, + + /** + * value: 5076 + * @const + */ + "5076": 5076, + + /** + * value: 5077 + * @const + */ + "5077": 5077, + + /** + * value: 5079 + * @const + */ + "5079": 5079, + + /** + * value: 5080 + * @const + */ + "5080": 5080, + + /** + * value: 5081 + * @const + */ + "5081": 5081, + + /** + * value: 5082 + * @const + */ + "5082": 5082, + + /** + * value: 5083 + * @const + */ + "5083": 5083, + + /** + * value: 5084 + * @const + */ + "5084": 5084, + + /** + * value: 5085 + * @const + */ + "5085": 5085, + + /** + * value: 5086 + * @const + */ + "5086": 5086, + + /** + * value: 5087 + * @const + */ + "5087": 5087, + + /** + * value: 5088 + * @const + */ + "5088": 5088, + + /** + * value: 5089 + * @const + */ + "5089": 5089, + + /** + * value: 5090 + * @const + */ + "5090": 5090, + + /** + * value: 5091 + * @const + */ + "5091": 5091, + + /** + * value: 5092 + * @const + */ + "5092": 5092, + + /** + * value: 5093 + * @const + */ + "5093": 5093, + + /** + * value: 5094 + * @const + */ + "5094": 5094, + + /** + * value: 5095 + * @const + */ + "5095": 5095, + + /** + * value: 5096 + * @const + */ + "5096": 5096, + + /** + * value: 5097 + * @const + */ + "5097": 5097, + + /** + * value: 5098 + * @const + */ + "5098": 5098, + + /** + * value: 5099 + * @const + */ + "5099": 5099, + + /** + * value: 5100 + * @const + */ + "5100": 5100, + + /** + * value: 5101 + * @const + */ + "5101": 5101, + + /** + * value: 5102 + * @const + */ + "5102": 5102, + + /** + * value: 5103 + * @const + */ + "5103": 5103, + + /** + * value: 5104 + * @const + */ + "5104": 5104, + + /** + * value: 5105 + * @const + */ + "5105": 5105, + + /** + * value: 5106 + * @const + */ + "5106": 5106, + + /** + * value: 5107 + * @const + */ + "5107": 5107, + + /** + * value: 5108 + * @const + */ + "5108": 5108, + + /** + * value: 5109 + * @const + */ + "5109": 5109, + + /** + * value: 5110 + * @const + */ + "5110": 5110, + + /** + * value: 5111 + * @const + */ + "5111": 5111, + + /** + * value: 5112 + * @const + */ + "5112": 5112, + + /** + * value: 5113 + * @const + */ + "5113": 5113, + + /** + * value: 5114 + * @const + */ + "5114": 5114, + + /** + * value: 5115 + * @const + */ + "5115": 5115, + + /** + * value: 5116 + * @const + */ + "5116": 5116, + + /** + * value: 5117 + * @const + */ + "5117": 5117, + + /** + * value: 5118 + * @const + */ + "5118": 5118, + + /** + * value: 5119 + * @const + */ + "5119": 5119, + + /** + * value: 5120 + * @const + */ + "5120": 5120, + + /** + * value: 5121 + * @const + */ + "5121": 5121, + + /** + * value: 5122 + * @const + */ + "5122": 5122, + + /** + * value: 5123 + * @const + */ + "5123": 5123, + + /** + * value: 5124 + * @const + */ + "5124": 5124, + + /** + * value: 5125 + * @const + */ + "5125": 5125, + + /** + * value: 5126 + * @const + */ + "5126": 5126, + + /** + * value: 5127 + * @const + */ + "5127": 5127, + + /** + * value: 5129 + * @const + */ + "5129": 5129, + + /** + * value: 5130 + * @const + */ + "5130": 5130, + + /** + * value: 5131 + * @const + */ + "5131": 5131, + + /** + * value: 5132 + * @const + */ + "5132": 5132, + + /** + * value: 5133 + * @const + */ + "5133": 5133, + + /** + * value: 5134 + * @const + */ + "5134": 5134, + + /** + * value: 5135 + * @const + */ + "5135": 5135, + + /** + * value: 5136 + * @const + */ + "5136": 5136, + + /** + * value: 5137 + * @const + */ + "5137": 5137, + + /** + * value: 5138 + * @const + */ + "5138": 5138, + + /** + * value: 5139 + * @const + */ + "5139": 5139, + + /** + * value: 5140 + * @const + */ + "5140": 5140, + + /** + * value: 5141 + * @const + */ + "5141": 5141, + + /** + * value: 5142 + * @const + */ + "5142": 5142, + + /** + * value: 5143 + * @const + */ + "5143": 5143, + + /** + * value: 5144 + * @const + */ + "5144": 5144, + + /** + * value: 5145 + * @const + */ + "5145": 5145, + + /** + * value: 5146 + * @const + */ + "5146": 5146, + + /** + * value: 5147 + * @const + */ + "5147": 5147, + + /** + * value: 5148 + * @const + */ + "5148": 5148, + + /** + * value: 5149 + * @const + */ + "5149": 5149, + + /** + * value: 5150 + * @const + */ + "5150": 5150, + + /** + * value: 5151 + * @const + */ + "5151": 5151, + + /** + * value: 5152 + * @const + */ + "5152": 5152, + + /** + * value: 5153 + * @const + */ + "5153": 5153, + + /** + * value: 5154 + * @const + */ + "5154": 5154, + + /** + * value: 5157 + * @const + */ + "5157": 5157, + + /** + * value: 5158 + * @const + */ + "5158": 5158, + + /** + * value: 5159 + * @const + */ + "5159": 5159, + + /** + * value: 5160 + * @const + */ + "5160": 5160, + + /** + * value: 5161 + * @const + */ + "5161": 5161, + + /** + * value: 5162 + * @const + */ + "5162": 5162, + + /** + * value: 5163 + * @const + */ + "5163": 5163, + + /** + * value: 5164 + * @const + */ + "5164": 5164, + + /** + * value: 5165 + * @const + */ + "5165": 5165, + + /** + * value: 5166 + * @const + */ + "5166": 5166, + + /** + * value: 5167 + * @const + */ + "5167": 5167, + + /** + * value: 5168 + * @const + */ + "5168": 5168, + + /** + * value: 5169 + * @const + */ + "5169": 5169, + + /** + * value: 5170 + * @const + */ + "5170": 5170, + + /** + * value: 5171 + * @const + */ + "5171": 5171, + + /** + * value: 5172 + * @const + */ + "5172": 5172, + + /** + * value: 5173 + * @const + */ + "5173": 5173, + + /** + * value: 5174 + * @const + */ + "5174": 5174, + + /** + * value: 5175 + * @const + */ + "5175": 5175, + + /** + * value: 5176 + * @const + */ + "5176": 5176, + + /** + * value: 5177 + * @const + */ + "5177": 5177, + + /** + * value: 5178 + * @const + */ + "5178": 5178, + + /** + * value: 5179 + * @const + */ + "5179": 5179, + + /** + * value: 5180 + * @const + */ + "5180": 5180, + + /** + * value: 5181 + * @const + */ + "5181": 5181, + + /** + * value: 5182 + * @const + */ + "5182": 5182, + + /** + * value: 5184 + * @const + */ + "5184": 5184, + + /** + * value: 5185 + * @const + */ + "5185": 5185, + + /** + * value: 5186 + * @const + */ + "5186": 5186, + + /** + * value: 5187 + * @const + */ + "5187": 5187, + + /** + * value: 5188 + * @const + */ + "5188": 5188, + + /** + * value: 5189 + * @const + */ + "5189": 5189, + + /** + * value: 5190 + * @const + */ + "5190": 5190, + + /** + * value: 5191 + * @const + */ + "5191": 5191, + + /** + * value: 5196 + * @const + */ + "5196": 5196, + + /** + * value: 5198 + * @const + */ + "5198": 5198, + + /** + * value: 5199 + * @const + */ + "5199": 5199, + + /** + * value: 5200 + * @const + */ + "5200": 5200, + + /** + * value: 5201 + * @const + */ + "5201": 5201, + + /** + * value: 5202 + * @const + */ + "5202": 5202, + + /** + * value: 5203 + * @const + */ + "5203": 5203, + + /** + * value: 5204 + * @const + */ + "5204": 5204, + + /** + * value: 5205 + * @const + */ + "5205": 5205, + + /** + * value: 5206 + * @const + */ + "5206": 5206, + + /** + * value: 5207 + * @const + */ + "5207": 5207, + + /** + * value: 5211 + * @const + */ + "5211": 5211, + + /** + * value: 5212 + * @const + */ + "5212": 5212, + + /** + * value: 90001 + * @const + */ + "90001": 90001, + + /** + * value: 90002 + * @const + */ + "90002": 90002, + + /** + * value: 90003 + * @const + */ + "90003": 90003, + + /** + * value: 90004 + * @const + */ + "90004": 90004, + + /** + * value: 90005 + * @const + */ + "90005": 90005, + + /** + * value: 90006 + * @const + */ + "90006": 90006, + + /** + * value: 90007 + * @const + */ + "90007": 90007, + + /** + * value: 90008 + * @const + */ + "90008": 90008, + + /** + * value: 90009 + * @const + */ + "90009": 90009, + + /** + * value: 90010 + * @const + */ + "90010": 90010, + + /** + * value: 90011 + * @const + */ + "90011": 90011 +}; + + + +export default InlineResponse2003PropertyMediaList; + diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyOperationTimeList.js similarity index 53% rename from src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.js rename to src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyOperationTimeList.js index dc33666..b96a704 100644 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.js +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyOperationTimeList.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,14 +14,14 @@ import ApiClient from '../ApiClient'; /** - * The PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner - * @version 1.1.5 + * The InlineResponse2003PropertyOperationTimeList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyOperationTimeList + * @version 1.2.0 */ -class PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner { +class InlineResponse2003PropertyOperationTimeList { /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner + * Constructs a new InlineResponse2003PropertyOperationTimeList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyOperationTimeList * @param start {Number} The start time of operation in milliseconds. * @param end {Number} The end time of operation in milliseconds. * @param monday {Boolean} Indicates whether the operation is open on Monday. @@ -34,7 +34,7 @@ class PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeLis */ constructor(start, end, monday, tuesday, wednesday, thursday, friday, saturday, sunday) { - PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.initialize(this, start, end, monday, tuesday, wednesday, thursday, friday, saturday, sunday); + InlineResponse2003PropertyOperationTimeList.initialize(this, start, end, monday, tuesday, wednesday, thursday, friday, saturday, sunday); } /** @@ -55,15 +55,15 @@ class PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeLis } /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineResponse2003PropertyOperationTimeList from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner} The populated PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner instance. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyOperationTimeList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyOperationTimeList} The populated InlineResponse2003PropertyOperationTimeList instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); + obj = obj || new InlineResponse2003PropertyOperationTimeList(); if (data.hasOwnProperty('start')) { obj['start'] = ApiClient.convertToType(data['start'], 'Number'); @@ -96,85 +96,67 @@ class PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeLis return obj; } - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - - return true; - } - } -PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.RequiredProperties = ["start", "end", "monday", "tuesday", "wednesday", "thursday", "friday", "saturday", "sunday"]; - /** * The start time of operation in milliseconds. * @member {Number} start */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.prototype['start'] = undefined; +InlineResponse2003PropertyOperationTimeList.prototype['start'] = undefined; /** * The end time of operation in milliseconds. * @member {Number} end */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.prototype['end'] = undefined; +InlineResponse2003PropertyOperationTimeList.prototype['end'] = undefined; /** * Indicates whether the operation is open on Monday. * @member {Boolean} monday */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.prototype['monday'] = undefined; +InlineResponse2003PropertyOperationTimeList.prototype['monday'] = undefined; /** * Indicates whether the operation is open on Tuesday. * @member {Boolean} tuesday */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.prototype['tuesday'] = undefined; +InlineResponse2003PropertyOperationTimeList.prototype['tuesday'] = undefined; /** * Indicates whether the operation is open on Wednesday. * @member {Boolean} wednesday */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.prototype['wednesday'] = undefined; +InlineResponse2003PropertyOperationTimeList.prototype['wednesday'] = undefined; /** * Indicates whether the operation is open on Thursday. * @member {Boolean} thursday */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.prototype['thursday'] = undefined; +InlineResponse2003PropertyOperationTimeList.prototype['thursday'] = undefined; /** * Indicates whether the operation is open on Friday. * @member {Boolean} friday */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.prototype['friday'] = undefined; +InlineResponse2003PropertyOperationTimeList.prototype['friday'] = undefined; /** * Indicates whether the operation is open on Saturday. * @member {Boolean} saturday */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.prototype['saturday'] = undefined; +InlineResponse2003PropertyOperationTimeList.prototype['saturday'] = undefined; /** * Indicates whether the operation is open on Sunday. * @member {Boolean} sunday */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.prototype['sunday'] = undefined; +InlineResponse2003PropertyOperationTimeList.prototype['sunday'] = undefined; -export default PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner; +export default InlineResponse2003PropertyOperationTimeList; diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPetsPolicy.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPetsPolicy.js new file mode 100644 index 0000000..e333346 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPetsPolicy.js @@ -0,0 +1,97 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyPetsPolicy model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyPetsPolicy + * @version 1.2.0 + */ +class InlineResponse2003PropertyPetsPolicy { + /** + * Constructs a new InlineResponse2003PropertyPetsPolicy. + * Contains information about the pets policy of the property + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPetsPolicy + * @param allowed {Boolean} Indicates if pets are allowed in the property. + * @param byArrangement {Boolean} Indicates if pets are allowed by arrangement. + * @param freeOfCharge {Boolean} Indicates if pets are allowed without any additional charge. + */ + constructor(allowed, byArrangement, freeOfCharge) { + + InlineResponse2003PropertyPetsPolicy.initialize(this, allowed, byArrangement, freeOfCharge); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, allowed, byArrangement, freeOfCharge) { + obj['allowed'] = allowed; + obj['byArrangement'] = byArrangement; + obj['freeOfCharge'] = freeOfCharge; + } + + /** + * Constructs a InlineResponse2003PropertyPetsPolicy from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPetsPolicy} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPetsPolicy} The populated InlineResponse2003PropertyPetsPolicy instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyPetsPolicy(); + + if (data.hasOwnProperty('allowed')) { + obj['allowed'] = ApiClient.convertToType(data['allowed'], 'Boolean'); + } + if (data.hasOwnProperty('byArrangement')) { + obj['byArrangement'] = ApiClient.convertToType(data['byArrangement'], 'Boolean'); + } + if (data.hasOwnProperty('freeOfCharge')) { + obj['freeOfCharge'] = ApiClient.convertToType(data['freeOfCharge'], 'Boolean'); + } + } + return obj; + } + + +} + +/** + * Indicates if pets are allowed in the property. + * @member {Boolean} allowed + */ +InlineResponse2003PropertyPetsPolicy.prototype['allowed'] = undefined; + +/** + * Indicates if pets are allowed by arrangement. + * @member {Boolean} byArrangement + */ +InlineResponse2003PropertyPetsPolicy.prototype['byArrangement'] = undefined; + +/** + * Indicates if pets are allowed without any additional charge. + * @member {Boolean} freeOfCharge + */ +InlineResponse2003PropertyPetsPolicy.prototype['freeOfCharge'] = undefined; + + + + + + +export default InlineResponse2003PropertyPetsPolicy; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPolicyList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPolicyList.js new file mode 100644 index 0000000..137f016 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPolicyList.js @@ -0,0 +1,209 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2003PropertyCancellationPolicyList from './InlineResponse2003PropertyCancellationPolicyList'; +import InlineResponse2003PropertyFeePolicyList from './InlineResponse2003PropertyFeePolicyList'; +import InlineResponse2003PropertyGuaranteePolicy from './InlineResponse2003PropertyGuaranteePolicy'; +import InlineResponse2003PropertyPetsPolicy from './InlineResponse2003PropertyPetsPolicy'; +import InlineResponse2003PropertyTaxPolicyList from './InlineResponse2003PropertyTaxPolicyList'; + +/** + * The InlineResponse2003PropertyPolicyList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyPolicyList + * @version 1.2.0 + */ +class InlineResponse2003PropertyPolicyList { + /** + * Constructs a new InlineResponse2003PropertyPolicyList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPolicyList + * @param checkInTime {Number} Check-in time (unix timestamp in ms). + * @param checkOutTime {Number} Check-out time (unix timestamp in ms). + * @param cancellationPolicyList {Array.} List of cancellation policies. + * @param advanceBookingMin {Number} The minimum number of days in advance a booking must be made + * @param advanceBookingMax {Number} The maximum number of days in advance a booking can be made + * @param taxPolicyList {Array.} A list of taxes and their policies. + * @param feePolicyList {Array.} A list of fees and their policies. + */ + constructor(checkInTime, checkOutTime, cancellationPolicyList, advanceBookingMin, advanceBookingMax, taxPolicyList, feePolicyList) { + + InlineResponse2003PropertyPolicyList.initialize(this, checkInTime, checkOutTime, cancellationPolicyList, advanceBookingMin, advanceBookingMax, taxPolicyList, feePolicyList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, checkInTime, checkOutTime, cancellationPolicyList, advanceBookingMin, advanceBookingMax, taxPolicyList, feePolicyList) { + obj['checkInTime'] = checkInTime; + obj['checkOutTime'] = checkOutTime; + obj['cancellationPolicyList'] = cancellationPolicyList; + obj['advanceBookingMin'] = advanceBookingMin; + obj['advanceBookingMax'] = advanceBookingMax; + obj['taxPolicyList'] = taxPolicyList; + obj['feePolicyList'] = feePolicyList; + } + + /** + * Constructs a InlineResponse2003PropertyPolicyList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPolicyList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPolicyList} The populated InlineResponse2003PropertyPolicyList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyPolicyList(); + + if (data.hasOwnProperty('checkInTime')) { + obj['checkInTime'] = ApiClient.convertToType(data['checkInTime'], 'Number'); + } + if (data.hasOwnProperty('checkOutTime')) { + obj['checkOutTime'] = ApiClient.convertToType(data['checkOutTime'], 'Number'); + } + if (data.hasOwnProperty('totalGuestCount')) { + obj['totalGuestCount'] = ApiClient.convertToType(data['totalGuestCount'], 'Number'); + } + if (data.hasOwnProperty('cancellationPolicyList')) { + obj['cancellationPolicyList'] = ApiClient.convertToType(data['cancellationPolicyList'], [InlineResponse2003PropertyCancellationPolicyList]); + } + if (data.hasOwnProperty('advanceBookingMin')) { + obj['advanceBookingMin'] = ApiClient.convertToType(data['advanceBookingMin'], 'Number'); + } + if (data.hasOwnProperty('advanceBookingMax')) { + obj['advanceBookingMax'] = ApiClient.convertToType(data['advanceBookingMax'], 'Number'); + } + if (data.hasOwnProperty('petsPolicy')) { + obj['petsPolicy'] = InlineResponse2003PropertyPetsPolicy.constructFromObject(data['petsPolicy']); + } + if (data.hasOwnProperty('prepaymentPolicy')) { + obj['prepaymentPolicy'] = ApiClient.convertToType(data['prepaymentPolicy'], 'String'); + } + if (data.hasOwnProperty('guaranteePolicy')) { + obj['guaranteePolicy'] = InlineResponse2003PropertyGuaranteePolicy.constructFromObject(data['guaranteePolicy']); + } + if (data.hasOwnProperty('taxPolicyList')) { + obj['taxPolicyList'] = ApiClient.convertToType(data['taxPolicyList'], [InlineResponse2003PropertyTaxPolicyList]); + } + if (data.hasOwnProperty('feePolicyList')) { + obj['feePolicyList'] = ApiClient.convertToType(data['feePolicyList'], [InlineResponse2003PropertyFeePolicyList]); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + } + return obj; + } + + +} + +/** + * Check-in time (unix timestamp in ms). + * @member {Number} checkInTime + */ +InlineResponse2003PropertyPolicyList.prototype['checkInTime'] = undefined; + +/** + * Check-out time (unix timestamp in ms). + * @member {Number} checkOutTime + */ +InlineResponse2003PropertyPolicyList.prototype['checkOutTime'] = undefined; + +/** + * The maximum number of guests allowed. + * @member {Number} totalGuestCount + */ +InlineResponse2003PropertyPolicyList.prototype['totalGuestCount'] = undefined; + +/** + * List of cancellation policies. + * @member {Array.} cancellationPolicyList + */ +InlineResponse2003PropertyPolicyList.prototype['cancellationPolicyList'] = undefined; + +/** + * The minimum number of days in advance a booking must be made + * @member {Number} advanceBookingMin + */ +InlineResponse2003PropertyPolicyList.prototype['advanceBookingMin'] = undefined; + +/** + * The maximum number of days in advance a booking can be made + * @member {Number} advanceBookingMax + */ +InlineResponse2003PropertyPolicyList.prototype['advanceBookingMax'] = undefined; + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPetsPolicy} petsPolicy + */ +InlineResponse2003PropertyPolicyList.prototype['petsPolicy'] = undefined; + +/** + * The type of the prepayment policy. + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPolicyList.PrepaymentPolicyEnum} prepaymentPolicy + */ +InlineResponse2003PropertyPolicyList.prototype['prepaymentPolicy'] = undefined; + +/** + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuaranteePolicy} guaranteePolicy + */ +InlineResponse2003PropertyPolicyList.prototype['guaranteePolicy'] = undefined; + +/** + * A list of taxes and their policies. + * @member {Array.} taxPolicyList + */ +InlineResponse2003PropertyPolicyList.prototype['taxPolicyList'] = undefined; + +/** + * A list of fees and their policies. + * @member {Array.} feePolicyList + */ +InlineResponse2003PropertyPolicyList.prototype['feePolicyList'] = undefined; + +/** + * The name of this policy. + * @member {String} name + */ +InlineResponse2003PropertyPolicyList.prototype['name'] = undefined; + + + + + +/** + * Allowed values for the prepaymentPolicy property. + * @enum {String} + * @readonly + */ +InlineResponse2003PropertyPolicyList['PrepaymentPolicyEnum'] = { + + /** + * value: "after_cancellation_fee_begins" + * @const + */ + "cancellation_fee_begins": "after_cancellation_fee_begins", + + /** + * value: "after_reservation_is_made" + * @const + */ + "reservation_is_made": "after_reservation_is_made" +}; + + + +export default InlineResponse2003PropertyPolicyList; + diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfo.js similarity index 61% rename from src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.js rename to src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfo.js index a465b47..c00e1cc 100644 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.js +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfo.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,28 +12,28 @@ */ import ApiClient from '../ApiClient'; -import AvailablePropertiesInner1GeoLocation from './AvailablePropertiesInner1GeoLocation'; -import PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner from './PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner'; -import PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner from './PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner'; +import InlineResponse2001GeoLocation from './InlineResponse2001GeoLocation'; +import InlineResponse2003PropertyPropertyInfoAcceptedPaymentList from './InlineResponse2003PropertyPropertyInfoAcceptedPaymentList'; +import InlineResponse2003PropertyPropertyInfoMessageList from './InlineResponse2003PropertyPropertyInfoMessageList'; /** - * The PropertiesPropertyIdGet200ResponsePropertyPropertyInfo model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo - * @version 1.1.5 + * The InlineResponse2003PropertyPropertyInfo model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfo + * @version 1.2.0 */ -class PropertiesPropertyIdGet200ResponsePropertyPropertyInfo { +class InlineResponse2003PropertyPropertyInfo { /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyPropertyInfo. + * Constructs a new InlineResponse2003PropertyPropertyInfo. * General information regarding the property. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo - * @param messageList {Array.} Contains a descriptive message for this property in all supported languages. - * @param categoryList {Array.} A list of code of the property class types that apply to the property. - * @param languageList {Array.} 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.

- * @param acceptedPaymentList {Array.} 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.

+ * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfo + * @param messageList {Array.} Contains a descriptive message for this property in all supported languages. + * @param categoryList {Array.} A list of code of the property class types that apply to the property. + * @param languageList {Array.} 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.

+ * @param acceptedPaymentList {Array.} 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.

*/ constructor(messageList, categoryList, languageList, acceptedPaymentList) { - PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.initialize(this, messageList, categoryList, languageList, acceptedPaymentList); + InlineResponse2003PropertyPropertyInfo.initialize(this, messageList, categoryList, languageList, acceptedPaymentList); } /** @@ -49,21 +49,21 @@ class PropertiesPropertyIdGet200ResponsePropertyPropertyInfo { } /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyPropertyInfo from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineResponse2003PropertyPropertyInfo from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo} The populated PropertiesPropertyIdGet200ResponsePropertyPropertyInfo instance. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfo} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfo} The populated InlineResponse2003PropertyPropertyInfo instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyPropertyInfo(); + obj = obj || new InlineResponse2003PropertyPropertyInfo(); if (data.hasOwnProperty('unitCount')) { obj['unitCount'] = ApiClient.convertToType(data['unitCount'], 'Number'); } if (data.hasOwnProperty('messageList')) { - obj['messageList'] = ApiClient.convertToType(data['messageList'], [PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner]); + obj['messageList'] = ApiClient.convertToType(data['messageList'], [InlineResponse2003PropertyPropertyInfoMessageList]); } if (data.hasOwnProperty('categoryList')) { obj['categoryList'] = ApiClient.convertToType(data['categoryList'], ['Number']); @@ -72,102 +72,52 @@ class PropertiesPropertyIdGet200ResponsePropertyPropertyInfo { obj['languageList'] = ApiClient.convertToType(data['languageList'], ['String']); } if (data.hasOwnProperty('location')) { - obj['location'] = AvailablePropertiesInner1GeoLocation.constructFromObject(data['location']); + obj['location'] = InlineResponse2001GeoLocation.constructFromObject(data['location']); } if (data.hasOwnProperty('acceptedPaymentList')) { - obj['acceptedPaymentList'] = ApiClient.convertToType(data['acceptedPaymentList'], [PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner]); + obj['acceptedPaymentList'] = ApiClient.convertToType(data['acceptedPaymentList'], [InlineResponse2003PropertyPropertyInfoAcceptedPaymentList]); } } return obj; } - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyPropertyInfo. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyPropertyInfo. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - if (data['messageList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['messageList'])) { - throw new Error("Expected the field `messageList` to be an array in the JSON data but got " + data['messageList']); - } - // validate the optional field `messageList` (array) - for (const item of data['messageList']) { - PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.validateJsonObject(item); - }; - } - // ensure the json data is an array - if (!Array.isArray(data['categoryList'])) { - throw new Error("Expected the field `categoryList` to be an array in the JSON data but got " + data['categoryList']); - } - // ensure the json data is an array - if (!Array.isArray(data['languageList'])) { - throw new Error("Expected the field `languageList` to be an array in the JSON data but got " + data['languageList']); - } - // validate the optional field `location` - if (data['location']) { // data not null - AvailablePropertiesInner1GeoLocation.validateJSON(data['location']); - } - if (data['acceptedPaymentList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['acceptedPaymentList'])) { - throw new Error("Expected the field `acceptedPaymentList` to be an array in the JSON data but got " + data['acceptedPaymentList']); - } - // validate the optional field `acceptedPaymentList` (array) - for (const item of data['acceptedPaymentList']) { - PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.validateJsonObject(item); - }; - } - - return true; - } - } -PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.RequiredProperties = ["messageList", "categoryList", "languageList", "acceptedPaymentList"]; - /** * The amount of units the property has. * @member {Number} unitCount */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.prototype['unitCount'] = undefined; +InlineResponse2003PropertyPropertyInfo.prototype['unitCount'] = undefined; /** * Contains a descriptive message for this property in all supported languages. - * @member {Array.} messageList + * @member {Array.} messageList */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.prototype['messageList'] = undefined; +InlineResponse2003PropertyPropertyInfo.prototype['messageList'] = undefined; /** * A list of code of the property class types that apply to the property. - * @member {Array.} categoryList + * @member {Array.} categoryList */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.prototype['categoryList'] = undefined; +InlineResponse2003PropertyPropertyInfo.prototype['categoryList'] = undefined; /** * 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.

- * @member {Array.} languageList + * @member {Array.} languageList */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.prototype['languageList'] = undefined; +InlineResponse2003PropertyPropertyInfo.prototype['languageList'] = undefined; /** - * @member {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1GeoLocation} location + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2001GeoLocation} location */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.prototype['location'] = undefined; +InlineResponse2003PropertyPropertyInfo.prototype['location'] = undefined; /** * 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.

- * @member {Array.} acceptedPaymentList + * @member {Array.} acceptedPaymentList */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.prototype['acceptedPaymentList'] = undefined; +InlineResponse2003PropertyPropertyInfo.prototype['acceptedPaymentList'] = undefined; @@ -178,7 +128,7 @@ PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.prototype['acceptedPaymen * @enum {Number} * @readonly */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfo['CategoryListEnum'] = { +InlineResponse2003PropertyPropertyInfo['CategoryListEnum'] = { /** * value: 1 @@ -619,7 +569,7 @@ PropertiesPropertyIdGet200ResponsePropertyPropertyInfo['CategoryListEnum'] = { * @enum {String} * @readonly */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfo['LanguageListEnum'] = { +InlineResponse2003PropertyPropertyInfo['LanguageListEnum'] = { /** * value: "af" @@ -966,5 +916,5 @@ PropertiesPropertyIdGet200ResponsePropertyPropertyInfo['LanguageListEnum'] = { -export default PropertiesPropertyIdGet200ResponsePropertyPropertyInfo; +export default InlineResponse2003PropertyPropertyInfo; diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.js new file mode 100644 index 0000000..e2144ee --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.js @@ -0,0 +1,277 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyPropertyInfoAcceptedPaymentList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList + * @version 1.2.0 + */ +class InlineResponse2003PropertyPropertyInfoAcceptedPaymentList { + /** + * Constructs a new InlineResponse2003PropertyPropertyInfoAcceptedPaymentList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList + * @param code {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.CodeEnum} The code of the payment option. + * @param type {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.TypeEnum} The type of the payment option. + */ + constructor(code, type) { + + InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.initialize(this, code, type); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, code, type) { + obj['code'] = code; + obj['type'] = type; + } + + /** + * Constructs a InlineResponse2003PropertyPropertyInfoAcceptedPaymentList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList} The populated InlineResponse2003PropertyPropertyInfoAcceptedPaymentList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyPropertyInfoAcceptedPaymentList(); + + if (data.hasOwnProperty('code')) { + obj['code'] = ApiClient.convertToType(data['code'], 'String'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + } + return obj; + } + + +} + +/** + * The code of the payment option. + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.CodeEnum} code + */ +InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.prototype['code'] = undefined; + +/** + * The type of the payment option. + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.TypeEnum} type + */ +InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.prototype['type'] = undefined; + + + + + +/** + * Allowed values for the code property. + * @enum {String} + * @readonly + */ +InlineResponse2003PropertyPropertyInfoAcceptedPaymentList['CodeEnum'] = { + + /** + * value: "amex" + * @const + */ + "amex": "amex", + + /** + * value: "visa" + * @const + */ + "visa": "visa", + + /** + * value: "mastercard" + * @const + */ + "mastercard": "mastercard", + + /** + * value: "diners" + * @const + */ + "diners": "diners", + + /** + * value: "jcb" + * @const + */ + "jcb": "jcb", + + /** + * value: "maestro" + * @const + */ + "maestro": "maestro", + + /** + * value: "discover" + * @const + */ + "discover": "discover", + + /** + * value: "bancontact" + * @const + */ + "bancontact": "bancontact", + + /** + * value: "cashonly" + * @const + */ + "cashonly": "cashonly", + + /** + * value: "bankcard" + * @const + */ + "bankcard": "bankcard", + + /** + * value: "cartasi" + * @const + */ + "cartasi": "cartasi", + + /** + * value: "argencard" + * @const + */ + "argencard": "argencard", + + /** + * value: "cabal" + * @const + */ + "cabal": "cabal", + + /** + * value: "redcompra" + * @const + */ + "redcompra": "redcompra", + + /** + * value: "other" + * @const + */ + "other": "other", + + /** + * value: "greatwall" + * @const + */ + "greatwall": "greatwall", + + /** + * value: "dragonpay" + * @const + */ + "dragonpay": "dragonpay", + + /** + * value: "eftpos" + * @const + */ + "eftpos": "eftpos", + + /** + * value: "hipercard" + * @const + */ + "hipercard": "hipercard", + + /** + * value: "unionpaydebit" + * @const + */ + "unionpaydebit": "unionpaydebit", + + /** + * value: "eccard" + * @const + */ + "eccard": "eccard", + + /** + * value: "bccard" + * @const + */ + "bccard": "bccard", + + /** + * value: "mastercardvirtual" + * @const + */ + "mastercardvirtual": "mastercardvirtual", + + /** + * value: "mastercardgoogle" + * @const + */ + "mastercardgoogle": "mastercardgoogle", + + /** + * value: "unionpaycredit" + * @const + */ + "unionpaycredit": "unionpaycredit" +}; + + +/** + * Allowed values for the type property. + * @enum {String} + * @readonly + */ +InlineResponse2003PropertyPropertyInfoAcceptedPaymentList['TypeEnum'] = { + + /** + * value: "creditcard" + * @const + */ + "creditcard": "creditcard", + + /** + * value: "debitcard" + * @const + */ + "debitcard": "debitcard", + + /** + * value: "paymentservice" + * @const + */ + "paymentservice": "paymentservice", + + /** + * value: "cash" + * @const + */ + "cash": "cash" +}; + + + +export default InlineResponse2003PropertyPropertyInfoAcceptedPaymentList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoMessageList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoMessageList.js new file mode 100644 index 0000000..6889aac --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoMessageList.js @@ -0,0 +1,85 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyPropertyInfoMessageList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoMessageList + * @version 1.2.0 + */ +class InlineResponse2003PropertyPropertyInfoMessageList { + /** + * Constructs a new InlineResponse2003PropertyPropertyInfoMessageList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoMessageList + * @param languageCode {String} 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.

+ * @param text {String} The text of this message. + */ + constructor(languageCode, text) { + + InlineResponse2003PropertyPropertyInfoMessageList.initialize(this, languageCode, text); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, languageCode, text) { + obj['languageCode'] = languageCode; + obj['text'] = text; + } + + /** + * Constructs a InlineResponse2003PropertyPropertyInfoMessageList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoMessageList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoMessageList} The populated InlineResponse2003PropertyPropertyInfoMessageList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyPropertyInfoMessageList(); + + if (data.hasOwnProperty('languageCode')) { + obj['languageCode'] = ApiClient.convertToType(data['languageCode'], 'String'); + } + if (data.hasOwnProperty('text')) { + obj['text'] = ApiClient.convertToType(data['text'], 'String'); + } + } + return obj; + } + + +} + +/** + * 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.

+ * @member {String} languageCode + */ +InlineResponse2003PropertyPropertyInfoMessageList.prototype['languageCode'] = undefined; + +/** + * The text of this message. + * @member {String} text + */ +InlineResponse2003PropertyPropertyInfoMessageList.prototype['text'] = undefined; + + + + + + +export default InlineResponse2003PropertyPropertyInfoMessageList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordCreated.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordCreated.js new file mode 100644 index 0000000..f337a1a --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordCreated.js @@ -0,0 +1,106 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyRecordCreated model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordCreated + * @version 1.2.0 + */ +class InlineResponse2003PropertyRecordCreated { + /** + * Constructs a new InlineResponse2003PropertyRecordCreated. + * Information regarding the creation of the property object. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordCreated + * @param user {String} The user that performed the edit action on the property. + * @param tenant {String} The tenant for which the user performed the edit action on the property. + * @param time {Number} The timestamp at which the edit action was performed. + */ + constructor(user, tenant, time) { + + InlineResponse2003PropertyRecordCreated.initialize(this, user, tenant, time); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, user, tenant, time) { + obj['user'] = user; + obj['tenant'] = tenant; + obj['time'] = time; + } + + /** + * Constructs a InlineResponse2003PropertyRecordCreated from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordCreated} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordCreated} The populated InlineResponse2003PropertyRecordCreated instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyRecordCreated(); + + if (data.hasOwnProperty('user')) { + obj['user'] = ApiClient.convertToType(data['user'], 'String'); + } + if (data.hasOwnProperty('tenant')) { + obj['tenant'] = ApiClient.convertToType(data['tenant'], 'String'); + } + if (data.hasOwnProperty('role')) { + obj['role'] = ApiClient.convertToType(data['role'], 'String'); + } + if (data.hasOwnProperty('time')) { + obj['time'] = ApiClient.convertToType(data['time'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The user that performed the edit action on the property. + * @member {String} user + */ +InlineResponse2003PropertyRecordCreated.prototype['user'] = undefined; + +/** + * The tenant for which the user performed the edit action on the property. + * @member {String} tenant + */ +InlineResponse2003PropertyRecordCreated.prototype['tenant'] = undefined; + +/** + * The role of the user that performed the edit action on the property. + * @member {String} role + */ +InlineResponse2003PropertyRecordCreated.prototype['role'] = undefined; + +/** + * The timestamp at which the edit action was performed. + * @member {Number} time + */ +InlineResponse2003PropertyRecordCreated.prototype['time'] = undefined; + + + + + + +export default InlineResponse2003PropertyRecordCreated; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordModified.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordModified.js new file mode 100644 index 0000000..1dfe865 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordModified.js @@ -0,0 +1,106 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyRecordModified model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordModified + * @version 1.2.0 + */ +class InlineResponse2003PropertyRecordModified { + /** + * Constructs a new InlineResponse2003PropertyRecordModified. + * Information regarding the last modification of the property object. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordModified + * @param user {String} The user that performed the edit action on the property. + * @param tenant {String} The tenant for which the user performed the edit action on the property. + * @param time {Number} The timestamp at which the edit action was performed. + */ + constructor(user, tenant, time) { + + InlineResponse2003PropertyRecordModified.initialize(this, user, tenant, time); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, user, tenant, time) { + obj['user'] = user; + obj['tenant'] = tenant; + obj['time'] = time; + } + + /** + * Constructs a InlineResponse2003PropertyRecordModified from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordModified} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordModified} The populated InlineResponse2003PropertyRecordModified instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyRecordModified(); + + if (data.hasOwnProperty('user')) { + obj['user'] = ApiClient.convertToType(data['user'], 'String'); + } + if (data.hasOwnProperty('tenant')) { + obj['tenant'] = ApiClient.convertToType(data['tenant'], 'String'); + } + if (data.hasOwnProperty('role')) { + obj['role'] = ApiClient.convertToType(data['role'], 'String'); + } + if (data.hasOwnProperty('time')) { + obj['time'] = ApiClient.convertToType(data['time'], 'Number'); + } + } + return obj; + } + + +} + +/** + * The user that performed the edit action on the property. + * @member {String} user + */ +InlineResponse2003PropertyRecordModified.prototype['user'] = undefined; + +/** + * The tenant for which the user performed the edit action on the property. + * @member {String} tenant + */ +InlineResponse2003PropertyRecordModified.prototype['tenant'] = undefined; + +/** + * The role of the user that performed the edit action on the property. + * @member {String} role + */ +InlineResponse2003PropertyRecordModified.prototype['role'] = undefined; + +/** + * The timestamp at which the edit action was performed. + * @member {Number} time + */ +InlineResponse2003PropertyRecordModified.prototype['time'] = undefined; + + + + + + +export default InlineResponse2003PropertyRecordModified; + diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyServiceList.js similarity index 78% rename from src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.js rename to src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyServiceList.js index 2b38db7..f5bd4cc 100644 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.js +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyServiceList.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -12,32 +12,32 @@ */ import ApiClient from '../ApiClient'; -import PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner from './PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner'; +import InlineResponse2003PropertyOperationTimeList from './InlineResponse2003PropertyOperationTimeList'; /** - * The PropertiesPropertyIdGet200ResponsePropertyServiceListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner - * @version 1.1.5 + * The InlineResponse2003PropertyServiceList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyServiceList + * @version 1.2.0 */ -class PropertiesPropertyIdGet200ResponsePropertyServiceListInner { +class InlineResponse2003PropertyServiceList { /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyServiceListInner. + * Constructs a new InlineResponse2003PropertyServiceList. * An object describing the service, its pricing and its availability. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner - * @param code {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.CodeEnum} The code of this service

See also in the appendix.

+ * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyServiceList + * @param code {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyServiceList.CodeEnum} The code of this service

See also in the appendix.

* @param price {Number} The surcharge for this service. * @param exists {Boolean} Whether this service is available. * @param included {Boolean} Whether this service is complementary. - * @param currencyCode {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.CurrencyCodeEnum} The currency of the surcharge for this service - * @param featureList {Array.} A list of features. - * @param typeList {Array.} A list of codes describing the available breakfast type.

See also in the appendix.

- * @param itemList {Array.} A list of codes describing the available breakfast items.

See also in the appendix.

- * @param operationTimeList {Array.} A list of operation times, including start and end times, and the days of the week on which the operation is open. + * @param currencyCode {String} The currency of the surcharge for this service + * @param featureList {Array.} A list of features. + * @param typeList {Array.} A list of codes describing the available breakfast type.

See also in the appendix.

+ * @param itemList {Array.} A list of codes describing the available breakfast items.

See also in the appendix.

+ * @param operationTimeList {Array.} A list of operation times, including start and end times, and the days of the week on which the operation is open. * @param name {String} The name of this service. */ constructor(code, price, exists, included, currencyCode, featureList, typeList, itemList, operationTimeList, name) { - PropertiesPropertyIdGet200ResponsePropertyServiceListInner.initialize(this, code, price, exists, included, currencyCode, featureList, typeList, itemList, operationTimeList, name); + InlineResponse2003PropertyServiceList.initialize(this, code, price, exists, included, currencyCode, featureList, typeList, itemList, operationTimeList, name); } /** @@ -59,15 +59,15 @@ class PropertiesPropertyIdGet200ResponsePropertyServiceListInner { } /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyServiceListInner from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineResponse2003PropertyServiceList from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner} The populated PropertiesPropertyIdGet200ResponsePropertyServiceListInner instance. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyServiceList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyServiceList} The populated InlineResponse2003PropertyServiceList instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + obj = obj || new InlineResponse2003PropertyServiceList(); if (data.hasOwnProperty('code')) { obj['code'] = ApiClient.convertToType(data['code'], 'Number'); @@ -94,7 +94,7 @@ class PropertiesPropertyIdGet200ResponsePropertyServiceListInner { obj['itemList'] = ApiClient.convertToType(data['itemList'], ['Number']); } if (data.hasOwnProperty('operationTimeList')) { - obj['operationTimeList'] = ApiClient.convertToType(data['operationTimeList'], [PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner]); + obj['operationTimeList'] = ApiClient.convertToType(data['operationTimeList'], [InlineResponse2003PropertyOperationTimeList]); } if (data.hasOwnProperty('name')) { obj['name'] = ApiClient.convertToType(data['name'], 'String'); @@ -103,116 +103,68 @@ class PropertiesPropertyIdGet200ResponsePropertyServiceListInner { return obj; } - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyServiceListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyServiceListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyServiceListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['currencyCode'] && !(typeof data['currencyCode'] === 'string' || data['currencyCode'] instanceof String)) { - throw new Error("Expected the field `currencyCode` to be a primitive type in the JSON string but got " + data['currencyCode']); - } - // ensure the json data is an array - if (!Array.isArray(data['featureList'])) { - throw new Error("Expected the field `featureList` to be an array in the JSON data but got " + data['featureList']); - } - // ensure the json data is an array - if (!Array.isArray(data['typeList'])) { - throw new Error("Expected the field `typeList` to be an array in the JSON data but got " + data['typeList']); - } - // ensure the json data is an array - if (!Array.isArray(data['itemList'])) { - throw new Error("Expected the field `itemList` to be an array in the JSON data but got " + data['itemList']); - } - if (data['operationTimeList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['operationTimeList'])) { - throw new Error("Expected the field `operationTimeList` to be an array in the JSON data but got " + data['operationTimeList']); - } - // validate the optional field `operationTimeList` (array) - for (const item of data['operationTimeList']) { - PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.validateJsonObject(item); - }; - } - // ensure the json data is a string - if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { - throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); - } - - return true; - } - } -PropertiesPropertyIdGet200ResponsePropertyServiceListInner.RequiredProperties = ["code", "price", "exists", "included", "currencyCode", "featureList", "typeList", "itemList", "operationTimeList", "name"]; - /** * The code of this service

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.CodeEnum} code + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyServiceList.CodeEnum} code */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner.prototype['code'] = undefined; +InlineResponse2003PropertyServiceList.prototype['code'] = undefined; /** * The surcharge for this service. * @member {Number} price */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner.prototype['price'] = undefined; +InlineResponse2003PropertyServiceList.prototype['price'] = undefined; /** * Whether this service is available. * @member {Boolean} exists */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner.prototype['exists'] = undefined; +InlineResponse2003PropertyServiceList.prototype['exists'] = undefined; /** * Whether this service is complementary. * @member {Boolean} included */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner.prototype['included'] = undefined; +InlineResponse2003PropertyServiceList.prototype['included'] = undefined; /** * The currency of the surcharge for this service - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.CurrencyCodeEnum} currencyCode + * @member {String} currencyCode */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner.prototype['currencyCode'] = undefined; +InlineResponse2003PropertyServiceList.prototype['currencyCode'] = undefined; /** * A list of features. - * @member {Array.} featureList + * @member {Array.} featureList */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner.prototype['featureList'] = undefined; +InlineResponse2003PropertyServiceList.prototype['featureList'] = undefined; /** * A list of codes describing the available breakfast type.

See also in the appendix.

- * @member {Array.} typeList + * @member {Array.} typeList */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner.prototype['typeList'] = undefined; +InlineResponse2003PropertyServiceList.prototype['typeList'] = undefined; /** * A list of codes describing the available breakfast items.

See also in the appendix.

- * @member {Array.} itemList + * @member {Array.} itemList */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner.prototype['itemList'] = undefined; +InlineResponse2003PropertyServiceList.prototype['itemList'] = undefined; /** * A list of operation times, including start and end times, and the days of the week on which the operation is open. - * @member {Array.} operationTimeList + * @member {Array.} operationTimeList */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner.prototype['operationTimeList'] = undefined; +InlineResponse2003PropertyServiceList.prototype['operationTimeList'] = undefined; /** * The name of this service. * @member {String} name */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner.prototype['name'] = undefined; +InlineResponse2003PropertyServiceList.prototype['name'] = undefined; @@ -223,7 +175,7 @@ PropertiesPropertyIdGet200ResponsePropertyServiceListInner.prototype['name'] = u * @enum {Number} * @readonly */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner['CodeEnum'] = { +InlineResponse2003PropertyServiceList['CodeEnum'] = { /** * value: 1 @@ -3389,321 +3341,12 @@ PropertiesPropertyIdGet200ResponsePropertyServiceListInner['CodeEnum'] = { }; -/** - * Allowed values for the currencyCode property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner['CurrencyCodeEnum'] = { - - /** - * value: "AED" - * @const - */ - "AED": "AED", - - /** - * value: "ARS" - * @const - */ - "ARS": "ARS", - - /** - * value: "AUD" - * @const - */ - "AUD": "AUD", - - /** - * value: "AZN" - * @const - */ - "AZN": "AZN", - - /** - * value: "BGN" - * @const - */ - "BGN": "BGN", - - /** - * value: "BHD" - * @const - */ - "BHD": "BHD", - - /** - * value: "BRL" - * @const - */ - "BRL": "BRL", - - /** - * value: "CAD" - * @const - */ - "CAD": "CAD", - - /** - * value: "CHF" - * @const - */ - "CHF": "CHF", - - /** - * value: "CLP" - * @const - */ - "CLP": "CLP", - - /** - * value: "CNY" - * @const - */ - "CNY": "CNY", - - /** - * value: "COP" - * @const - */ - "COP": "COP", - - /** - * value: "CZK" - * @const - */ - "CZK": "CZK", - - /** - * value: "DKK" - * @const - */ - "DKK": "DKK", - - /** - * value: "EGP" - * @const - */ - "EGP": "EGP", - - /** - * value: "EUR" - * @const - */ - "EUR": "EUR", - - /** - * value: "FJD" - * @const - */ - "FJD": "FJD", - - /** - * value: "GBP" - * @const - */ - "GBP": "GBP", - - /** - * value: "GEL" - * @const - */ - "GEL": "GEL", - - /** - * value: "HKD" - * @const - */ - "HKD": "HKD", - - /** - * value: "HUF" - * @const - */ - "HUF": "HUF", - - /** - * value: "IDR" - * @const - */ - "IDR": "IDR", - - /** - * value: "ILS" - * @const - */ - "ILS": "ILS", - - /** - * value: "INR" - * @const - */ - "INR": "INR", - - /** - * value: "JOD" - * @const - */ - "JOD": "JOD", - - /** - * value: "JPY" - * @const - */ - "JPY": "JPY", - - /** - * value: "KRW" - * @const - */ - "KRW": "KRW", - - /** - * value: "KWD" - * @const - */ - "KWD": "KWD", - - /** - * value: "KZT" - * @const - */ - "KZT": "KZT", - - /** - * value: "MDL" - * @const - */ - "MDL": "MDL", - - /** - * value: "MXN" - * @const - */ - "MXN": "MXN", - - /** - * value: "MYR" - * @const - */ - "MYR": "MYR", - - /** - * value: "NAD" - * @const - */ - "NAD": "NAD", - - /** - * value: "NOK" - * @const - */ - "NOK": "NOK", - - /** - * value: "NZD" - * @const - */ - "NZD": "NZD", - - /** - * value: "OMR" - * @const - */ - "OMR": "OMR", - - /** - * value: "PLN" - * @const - */ - "PLN": "PLN", - - /** - * value: "QAR" - * @const - */ - "QAR": "QAR", - - /** - * value: "RON" - * @const - */ - "RON": "RON", - - /** - * value: "RUB" - * @const - */ - "RUB": "RUB", - - /** - * value: "SAR" - * @const - */ - "SAR": "SAR", - - /** - * value: "SEK" - * @const - */ - "SEK": "SEK", - - /** - * value: "SGD" - * @const - */ - "SGD": "SGD", - - /** - * value: "THB" - * @const - */ - "THB": "THB", - - /** - * value: "TRY" - * @const - */ - "TRY": "TRY", - - /** - * value: "TWD" - * @const - */ - "TWD": "TWD", - - /** - * value: "UAH" - * @const - */ - "UAH": "UAH", - - /** - * value: "USD" - * @const - */ - "USD": "USD", - - /** - * value: "XOF" - * @const - */ - "XOF": "XOF", - - /** - * value: "ZAR" - * @const - */ - "ZAR": "ZAR" -}; - - /** * Allowed values for the featureList property. * @enum {String} * @readonly */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner['FeatureListEnum'] = { +InlineResponse2003PropertyServiceList['FeatureListEnum'] = { /** * value: "a_la_carte" @@ -3742,7 +3385,7 @@ PropertiesPropertyIdGet200ResponsePropertyServiceListInner['FeatureListEnum'] = * @enum {Number} * @readonly */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner['TypeListEnum'] = { +InlineResponse2003PropertyServiceList['TypeListEnum'] = { /** * value: 5001 @@ -3823,7 +3466,7 @@ PropertiesPropertyIdGet200ResponsePropertyServiceListInner['TypeListEnum'] = { * @enum {Number} * @readonly */ -PropertiesPropertyIdGet200ResponsePropertyServiceListInner['ItemListEnum'] = { +InlineResponse2003PropertyServiceList['ItemListEnum'] = { /** * value: 5001 @@ -3942,5 +3585,5 @@ PropertiesPropertyIdGet200ResponsePropertyServiceListInner['ItemListEnum'] = { -export default PropertiesPropertyIdGet200ResponsePropertyServiceListInner; +export default InlineResponse2003PropertyServiceList; diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList.js new file mode 100644 index 0000000..0f746b9 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList.js @@ -0,0 +1,505 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2003PropertyTaxPolicyList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList + * @version 1.2.0 + */ +class InlineResponse2003PropertyTaxPolicyList { + /** + * Constructs a new InlineResponse2003PropertyTaxPolicyList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList + * @param typeCode {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList.TypeCodeEnum} The code that represents the type of tax.

See also in the appendix.

+ * @param chargeType {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList.ChargeTypeEnum} The type of charge. + * @param chargeFrequencyCode {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList.ChargeFrequencyCodeEnum} The code that represents the frequency of charge.

See also in the appendix.

+ * @param currencyCode {String} The currency code of the currency in that the charge is applied.

See also in the appendix.

+ * @param conditionList {Array.} A list of conditions for the tax. Is empty if chargeType is not conditional. + */ + constructor(typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList) { + + InlineResponse2003PropertyTaxPolicyList.initialize(this, typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList) { + obj['typeCode'] = typeCode; + obj['chargeType'] = chargeType; + obj['chargeFrequencyCode'] = chargeFrequencyCode; + obj['currencyCode'] = currencyCode; + obj['conditionList'] = conditionList; + } + + /** + * Constructs a InlineResponse2003PropertyTaxPolicyList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList} The populated InlineResponse2003PropertyTaxPolicyList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003PropertyTaxPolicyList(); + + if (data.hasOwnProperty('typeCode')) { + obj['typeCode'] = ApiClient.convertToType(data['typeCode'], 'Number'); + } + if (data.hasOwnProperty('percent')) { + obj['percent'] = ApiClient.convertToType(data['percent'], 'Number'); + } + if (data.hasOwnProperty('chargeType')) { + obj['chargeType'] = ApiClient.convertToType(data['chargeType'], 'String'); + } + if (data.hasOwnProperty('chargeFrequencyCode')) { + obj['chargeFrequencyCode'] = ApiClient.convertToType(data['chargeFrequencyCode'], 'Number'); + } + if (data.hasOwnProperty('currencyCode')) { + obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); + } + if (data.hasOwnProperty('conditionList')) { + obj['conditionList'] = ApiClient.convertToType(data['conditionList'], ['String']); + } + } + return obj; + } + + +} + +/** + * The code that represents the type of tax.

See also in the appendix.

+ * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList.TypeCodeEnum} typeCode + */ +InlineResponse2003PropertyTaxPolicyList.prototype['typeCode'] = undefined; + +/** + * The charged percentage if applicable. + * @member {Number} percent + */ +InlineResponse2003PropertyTaxPolicyList.prototype['percent'] = undefined; + +/** + * The type of charge. + * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList.ChargeTypeEnum} chargeType + */ +InlineResponse2003PropertyTaxPolicyList.prototype['chargeType'] = undefined; + +/** + * The code that represents the frequency of charge.

See also in the appendix.

+ * @member {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList.ChargeFrequencyCodeEnum} chargeFrequencyCode + */ +InlineResponse2003PropertyTaxPolicyList.prototype['chargeFrequencyCode'] = undefined; + +/** + * The currency code of the currency in that the charge is applied.

See also in the appendix.

+ * @member {String} currencyCode + */ +InlineResponse2003PropertyTaxPolicyList.prototype['currencyCode'] = undefined; + +/** + * A list of conditions for the tax. Is empty if chargeType is not conditional. + * @member {Array.} conditionList + */ +InlineResponse2003PropertyTaxPolicyList.prototype['conditionList'] = undefined; + + + + + +/** + * Allowed values for the typeCode property. + * @enum {Number} + * @readonly + */ +InlineResponse2003PropertyTaxPolicyList['TypeCodeEnum'] = { + + /** + * value: 1 + * @const + */ + "1": 1, + + /** + * value: 3 + * @const + */ + "3": 3, + + /** + * value: 4 + * @const + */ + "4": 4, + + /** + * value: 5 + * @const + */ + "5": 5, + + /** + * value: 6 + * @const + */ + "6": 6, + + /** + * value: 7 + * @const + */ + "7": 7, + + /** + * value: 8 + * @const + */ + "8": 8, + + /** + * value: 10 + * @const + */ + "10": 10, + + /** + * value: 13 + * @const + */ + "13": 13, + + /** + * value: 15 + * @const + */ + "15": 15, + + /** + * value: 17 + * @const + */ + "17": 17, + + /** + * value: 18 + * @const + */ + "18": 18, + + /** + * value: 19 + * @const + */ + "19": 19, + + /** + * value: 28 + * @const + */ + "28": 28, + + /** + * value: 30 + * @const + */ + "30": 30, + + /** + * value: 35 + * @const + */ + "35": 35, + + /** + * value: 36 + * @const + */ + "36": 36, + + /** + * value: 39 + * @const + */ + "39": 39, + + /** + * value: 43 + * @const + */ + "43": 43, + + /** + * value: 46 + * @const + */ + "46": 46, + + /** + * value: 5001 + * @const + */ + "5001": 5001, + + /** + * value: 5002 + * @const + */ + "5002": 5002, + + /** + * value: 5004 + * @const + */ + "5004": 5004, + + /** + * value: 5007 + * @const + */ + "5007": 5007, + + /** + * value: 5008 + * @const + */ + "5008": 5008 +}; + + +/** + * Allowed values for the chargeType property. + * @enum {String} + * @readonly + */ +InlineResponse2003PropertyTaxPolicyList['ChargeTypeEnum'] = { + + /** + * value: "included" + * @const + */ + "included": "included", + + /** + * value: "excluded" + * @const + */ + "excluded": "excluded", + + /** + * value: "conditional" + * @const + */ + "conditional": "conditional" +}; + + +/** + * Allowed values for the chargeFrequencyCode property. + * @enum {Number} + * @readonly + */ +InlineResponse2003PropertyTaxPolicyList['ChargeFrequencyCodeEnum'] = { + + /** + * value: 1 + * @const + */ + "1": 1, + + /** + * value: 2 + * @const + */ + "2": 2, + + /** + * value: 7 + * @const + */ + "7": 7, + + /** + * value: 10 + * @const + */ + "10": 10, + + /** + * value: 12 + * @const + */ + "12": 12, + + /** + * value: 17 + * @const + */ + "17": 17, + + /** + * value: 19 + * @const + */ + "19": 19, + + /** + * value: 20 + * @const + */ + "20": 20, + + /** + * value: 21 + * @const + */ + "21": 21, + + /** + * value: 25 + * @const + */ + "25": 25, + + /** + * value: 31 + * @const + */ + "31": 31, + + /** + * value: 5000 + * @const + */ + "5000": 5000, + + /** + * value: 5001 + * @const + */ + "5001": 5001, + + /** + * value: 5002 + * @const + */ + "5002": 5002, + + /** + * value: 5010 + * @const + */ + "5010": 5010, + + /** + * value: 5011 + * @const + */ + "5011": 5011, + + /** + * value: 5012 + * @const + */ + "5012": 5012, + + /** + * value: 5013 + * @const + */ + "5013": 5013, + + /** + * value: 5014 + * @const + */ + "5014": 5014, + + /** + * value: 5015 + * @const + */ + "5015": 5015, + + /** + * value: 5016 + * @const + */ + "5016": 5016, + + /** + * value: 5017 + * @const + */ + "5017": 5017, + + /** + * value: 90010 + * @const + */ + "90010": 90010, + + /** + * value: 90011 + * @const + */ + "90011": 90011, + + /** + * value: 90012 + * @const + */ + "90012": 90012, + + /** + * value: 90013 + * @const + */ + "90013": 90013 +}; + + +/** + * Allowed values for the conditionList property. + * @enum {String} + * @readonly + */ +InlineResponse2003PropertyTaxPolicyList['ConditionListEnum'] = { + + /** + * value: "guest_brings_pet" + * @const + */ + "brings_pet": "guest_brings_pet", + + /** + * value: "guest_doesnt_clean_before_checkout" + * @const + */ + "doesnt_clean_before_checkout": "guest_doesnt_clean_before_checkout", + + /** + * value: "guest_smokes" + * @const + */ + "smokes": "guest_smokes" +}; + + + +export default InlineResponse2003PropertyTaxPolicyList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2003RatePlanList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2003RatePlanList.js new file mode 100644 index 0000000..628da26 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2003RatePlanList.js @@ -0,0 +1,107 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2003PricingList from './InlineResponse2003PricingList'; + +/** + * The InlineResponse2003RatePlanList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2003RatePlanList + * @version 1.2.0 + */ +class InlineResponse2003RatePlanList { + /** + * Constructs a new InlineResponse2003RatePlanList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2003RatePlanList + * @param active {Boolean} Whether the rate plan is active. + * @param name {String} The name of the rate plan. + * @param code {String} The code identifying the rate plan. + * @param pricingList {Array.} + */ + constructor(active, name, code, pricingList) { + + InlineResponse2003RatePlanList.initialize(this, active, name, code, pricingList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, active, name, code, pricingList) { + obj['active'] = active; + obj['name'] = name; + obj['code'] = code; + obj['pricingList'] = pricingList; + } + + /** + * Constructs a InlineResponse2003RatePlanList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2003RatePlanList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2003RatePlanList} The populated InlineResponse2003RatePlanList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2003RatePlanList(); + + if (data.hasOwnProperty('active')) { + obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('code')) { + obj['code'] = ApiClient.convertToType(data['code'], 'String'); + } + if (data.hasOwnProperty('pricingList')) { + obj['pricingList'] = ApiClient.convertToType(data['pricingList'], [InlineResponse2003PricingList]); + } + } + return obj; + } + + +} + +/** + * Whether the rate plan is active. + * @member {Boolean} active + */ +InlineResponse2003RatePlanList.prototype['active'] = undefined; + +/** + * The name of the rate plan. + * @member {String} name + */ +InlineResponse2003RatePlanList.prototype['name'] = undefined; + +/** + * The code identifying the rate plan. + * @member {String} code + */ +InlineResponse2003RatePlanList.prototype['code'] = undefined; + +/** + * @member {Array.} pricingList + */ +InlineResponse2003RatePlanList.prototype['pricingList'] = undefined; + + + + + + +export default InlineResponse2003RatePlanList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2004.js b/src/com.lodgea/com.lodgea.model/InlineResponse2004.js new file mode 100644 index 0000000..ebce965 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2004.js @@ -0,0 +1,75 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2004AvailabilityList from './InlineResponse2004AvailabilityList'; + +/** + * The InlineResponse2004 model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2004 + * @version 1.2.0 + */ +class InlineResponse2004 { + /** + * Constructs a new InlineResponse2004. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2004 + * @param availabilityList {Array.} An array of objects describing the available booking options. + */ + constructor(availabilityList) { + + InlineResponse2004.initialize(this, availabilityList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, availabilityList) { + obj['availabilityList'] = availabilityList; + } + + /** + * Constructs a InlineResponse2004 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2004} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2004} The populated InlineResponse2004 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2004(); + + if (data.hasOwnProperty('availabilityList')) { + obj['availabilityList'] = ApiClient.convertToType(data['availabilityList'], [InlineResponse2004AvailabilityList]); + } + } + return obj; + } + + +} + +/** + * An array of objects describing the available booking options. + * @member {Array.} availabilityList + */ +InlineResponse2004.prototype['availabilityList'] = undefined; + + + + + + +export default InlineResponse2004; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2004AvailabilityList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2004AvailabilityList.js new file mode 100644 index 0000000..5c006e0 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2004AvailabilityList.js @@ -0,0 +1,267 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2004RatePlanList from './InlineResponse2004RatePlanList'; + +/** + * The InlineResponse2004AvailabilityList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2004AvailabilityList + * @version 1.2.0 + */ +class InlineResponse2004AvailabilityList { + /** + * Constructs a new InlineResponse2004AvailabilityList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2004AvailabilityList + * @param ratePlanList {Array.} A list of available rate plans. + * @param name {String} The name of the rate plan group. + * @param mealPlanList {Array.} The available meal plans.

See also in the appendix.

+ * @param roomTypeList {Array.} The rooms this availability is for. + */ + constructor(ratePlanList, name, mealPlanList, roomTypeList) { + + InlineResponse2004AvailabilityList.initialize(this, ratePlanList, name, mealPlanList, roomTypeList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, ratePlanList, name, mealPlanList, roomTypeList) { + obj['ratePlanList'] = ratePlanList; + obj['name'] = name; + obj['mealPlanList'] = mealPlanList; + obj['roomTypeList'] = roomTypeList; + } + + /** + * Constructs a InlineResponse2004AvailabilityList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2004AvailabilityList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2004AvailabilityList} The populated InlineResponse2004AvailabilityList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2004AvailabilityList(); + + if (data.hasOwnProperty('ratePlanList')) { + obj['ratePlanList'] = ApiClient.convertToType(data['ratePlanList'], [InlineResponse2004RatePlanList]); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('mealPlanList')) { + obj['mealPlanList'] = ApiClient.convertToType(data['mealPlanList'], ['Number']); + } + if (data.hasOwnProperty('roomTypeList')) { + obj['roomTypeList'] = ApiClient.convertToType(data['roomTypeList'], ['String']); + } + } + return obj; + } + + +} + +/** + * A list of available rate plans. + * @member {Array.} ratePlanList + */ +InlineResponse2004AvailabilityList.prototype['ratePlanList'] = undefined; + +/** + * The name of the rate plan group. + * @member {String} name + */ +InlineResponse2004AvailabilityList.prototype['name'] = undefined; + +/** + * The available meal plans.

See also in the appendix.

+ * @member {Array.} mealPlanList + */ +InlineResponse2004AvailabilityList.prototype['mealPlanList'] = undefined; + +/** + * The rooms this availability is for. + * @member {Array.} roomTypeList + */ +InlineResponse2004AvailabilityList.prototype['roomTypeList'] = undefined; + + + + + +/** + * Allowed values for the mealPlanList property. + * @enum {Number} + * @readonly + */ +InlineResponse2004AvailabilityList['MealPlanListEnum'] = { + + /** + * value: 0 + * @const + */ + "0": 0, + + /** + * value: 1 + * @const + */ + "1": 1, + + /** + * value: 2 + * @const + */ + "2": 2, + + /** + * value: 3 + * @const + */ + "3": 3, + + /** + * value: 4 + * @const + */ + "4": 4, + + /** + * value: 5 + * @const + */ + "5": 5, + + /** + * value: 6 + * @const + */ + "6": 6, + + /** + * value: 7 + * @const + */ + "7": 7, + + /** + * value: 8 + * @const + */ + "8": 8, + + /** + * value: 9 + * @const + */ + "9": 9, + + /** + * value: 10 + * @const + */ + "10": 10, + + /** + * value: 11 + * @const + */ + "11": 11, + + /** + * value: 12 + * @const + */ + "12": 12, + + /** + * value: 14 + * @const + */ + "14": 14, + + /** + * value: 15 + * @const + */ + "15": 15, + + /** + * value: 16 + * @const + */ + "16": 16, + + /** + * value: 17 + * @const + */ + "17": 17, + + /** + * value: 18 + * @const + */ + "18": 18, + + /** + * value: 19 + * @const + */ + "19": 19, + + /** + * value: 20 + * @const + */ + "20": 20, + + /** + * value: 21 + * @const + */ + "21": 21, + + /** + * value: 22 + * @const + */ + "22": 22, + + /** + * value: 23 + * @const + */ + "23": 23, + + /** + * value: 24 + * @const + */ + "24": 24, + + /** + * value: 90001 + * @const + */ + "90001": 90001 +}; + + + +export default InlineResponse2004AvailabilityList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2004PricingList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2004PricingList.js new file mode 100644 index 0000000..e8aec49 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2004PricingList.js @@ -0,0 +1,107 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse2004PricingList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2004PricingList + * @version 1.2.0 + */ +class InlineResponse2004PricingList { + /** + * Constructs a new InlineResponse2004PricingList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2004PricingList + * @param dateTime {Number} The timestamp of the pricing information. + * @param occupancy {Number} The number of occupants for which the pricing applies. + * @param priceList {Object.} A mapping of number of days of stay to prices. + * @param currencyCode {String} The currency code for the prices. + */ + constructor(dateTime, occupancy, priceList, currencyCode) { + + InlineResponse2004PricingList.initialize(this, dateTime, occupancy, priceList, currencyCode); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, dateTime, occupancy, priceList, currencyCode) { + obj['dateTime'] = dateTime; + obj['occupancy'] = occupancy; + obj['priceList'] = priceList; + obj['currencyCode'] = currencyCode; + } + + /** + * Constructs a InlineResponse2004PricingList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2004PricingList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2004PricingList} The populated InlineResponse2004PricingList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2004PricingList(); + + if (data.hasOwnProperty('dateTime')) { + obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Number'); + } + if (data.hasOwnProperty('occupancy')) { + obj['occupancy'] = ApiClient.convertToType(data['occupancy'], 'Number'); + } + if (data.hasOwnProperty('priceList')) { + obj['priceList'] = ApiClient.convertToType(data['priceList'], {'String': 'Number'}); + } + if (data.hasOwnProperty('currencyCode')) { + obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); + } + } + return obj; + } + + +} + +/** + * The timestamp of the pricing information. + * @member {Number} dateTime + */ +InlineResponse2004PricingList.prototype['dateTime'] = undefined; + +/** + * The number of occupants for which the pricing applies. + * @member {Number} occupancy + */ +InlineResponse2004PricingList.prototype['occupancy'] = undefined; + +/** + * A mapping of number of days of stay to prices. + * @member {Object.} priceList + */ +InlineResponse2004PricingList.prototype['priceList'] = undefined; + +/** + * The currency code for the prices. + * @member {String} currencyCode + */ +InlineResponse2004PricingList.prototype['currencyCode'] = undefined; + + + + + + +export default InlineResponse2004PricingList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse2004RatePlanList.js b/src/com.lodgea/com.lodgea.model/InlineResponse2004RatePlanList.js new file mode 100644 index 0000000..f4e32e8 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse2004RatePlanList.js @@ -0,0 +1,107 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse2004PricingList from './InlineResponse2004PricingList'; + +/** + * The InlineResponse2004RatePlanList model module. + * @module com.lodgea/com.lodgea.model/InlineResponse2004RatePlanList + * @version 1.2.0 + */ +class InlineResponse2004RatePlanList { + /** + * Constructs a new InlineResponse2004RatePlanList. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse2004RatePlanList + * @param active {Boolean} Whether the rate plan is active. + * @param name {String} The name of the rate plan. + * @param code {String} The code identifying the rate plan. + * @param pricingList {Array.} + */ + constructor(active, name, code, pricingList) { + + InlineResponse2004RatePlanList.initialize(this, active, name, code, pricingList); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, active, name, code, pricingList) { + obj['active'] = active; + obj['name'] = name; + obj['code'] = code; + obj['pricingList'] = pricingList; + } + + /** + * Constructs a InlineResponse2004RatePlanList from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse2004RatePlanList} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse2004RatePlanList} The populated InlineResponse2004RatePlanList instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse2004RatePlanList(); + + if (data.hasOwnProperty('active')) { + obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); + } + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('code')) { + obj['code'] = ApiClient.convertToType(data['code'], 'String'); + } + if (data.hasOwnProperty('pricingList')) { + obj['pricingList'] = ApiClient.convertToType(data['pricingList'], [InlineResponse2004PricingList]); + } + } + return obj; + } + + +} + +/** + * Whether the rate plan is active. + * @member {Boolean} active + */ +InlineResponse2004RatePlanList.prototype['active'] = undefined; + +/** + * The name of the rate plan. + * @member {String} name + */ +InlineResponse2004RatePlanList.prototype['name'] = undefined; + +/** + * The code identifying the rate plan. + * @member {String} code + */ +InlineResponse2004RatePlanList.prototype['code'] = undefined; + +/** + * @member {Array.} pricingList + */ +InlineResponse2004RatePlanList.prototype['pricingList'] = undefined; + + + + + + +export default InlineResponse2004RatePlanList; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse200List.js b/src/com.lodgea/com.lodgea.model/InlineResponse200List.js new file mode 100644 index 0000000..4355b05 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse200List.js @@ -0,0 +1,248 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse200List model module. + * @module com.lodgea/com.lodgea.model/InlineResponse200List + * @version 1.2.0 + */ +class InlineResponse200List { + /** + * Constructs a new InlineResponse200List. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse200List + * @param name {String} The name of the location. + * @param currencyCode {String} The currency code of the currency of the lowest price. + * @param lowestPrice {Number} The lowest price available for this location. + * @param type {module:com.lodgea/com.lodgea.model/InlineResponse200List.TypeEnum} The type of the found location.

See also in the appendix.

+ */ + constructor(name, currencyCode, lowestPrice, type) { + + InlineResponse200List.initialize(this, name, currencyCode, lowestPrice, type); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, name, currencyCode, lowestPrice, type) { + obj['name'] = name; + obj['currencyCode'] = currencyCode; + obj['lowestPrice'] = lowestPrice; + obj['type'] = type; + } + + /** + * Constructs a InlineResponse200List from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse200List} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse200List} The populated InlineResponse200List instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse200List(); + + if (data.hasOwnProperty('name')) { + obj['name'] = ApiClient.convertToType(data['name'], 'String'); + } + if (data.hasOwnProperty('currencyCode')) { + obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); + } + if (data.hasOwnProperty('lowestPrice')) { + obj['lowestPrice'] = ApiClient.convertToType(data['lowestPrice'], 'Number'); + } + if (data.hasOwnProperty('type')) { + obj['type'] = ApiClient.convertToType(data['type'], 'String'); + } + } + return obj; + } + + +} + +/** + * The name of the location. + * @member {String} name + */ +InlineResponse200List.prototype['name'] = undefined; + +/** + * The currency code of the currency of the lowest price. + * @member {String} currencyCode + */ +InlineResponse200List.prototype['currencyCode'] = undefined; + +/** + * The lowest price available for this location. + * @member {Number} lowestPrice + */ +InlineResponse200List.prototype['lowestPrice'] = undefined; + +/** + * The type of the found location.

See also in the appendix.

+ * @member {module:com.lodgea/com.lodgea.model/InlineResponse200List.TypeEnum} type + */ +InlineResponse200List.prototype['type'] = undefined; + + + + + +/** + * Allowed values for the type property. + * @enum {String} + * @readonly + */ +InlineResponse200List['TypeEnum'] = { + + /** + * value: "formatted_address" + * @const + */ + "formatted_address": "formatted_address", + + /** + * value: "place_id" + * @const + */ + "place_id": "place_id", + + /** + * value: "locality" + * @const + */ + "locality": "locality", + + /** + * value: "administrative_area_level_1" + * @const + */ + "administrative_area_level_1": "administrative_area_level_1", + + /** + * value: "administrative_area_level_2" + * @const + */ + "administrative_area_level_2": "administrative_area_level_2", + + /** + * value: "administrative_area_level_3" + * @const + */ + "administrative_area_level_3": "administrative_area_level_3", + + /** + * value: "administrative_area_level_4" + * @const + */ + "administrative_area_level_4": "administrative_area_level_4", + + /** + * value: "administrative_area_level_5" + * @const + */ + "administrative_area_level_5": "administrative_area_level_5", + + /** + * value: "state_code" + * @const + */ + "state_code": "state_code", + + /** + * value: "country" + * @const + */ + "country": "country", + + /** + * value: "country_code" + * @const + */ + "country_code": "country_code", + + /** + * value: "postal_code" + * @const + */ + "postal_code": "postal_code", + + /** + * value: "language" + * @const + */ + "language": "language", + + /** + * value: "natural_feature" + * @const + */ + "natural_feature": "natural_feature", + + /** + * value: "establishment" + * @const + */ + "establishment": "establishment", + + /** + * value: "sublocality" + * @const + */ + "sublocality": "sublocality", + + /** + * value: "sublocality_level_1" + * @const + */ + "sublocality_level_1": "sublocality_level_1", + + /** + * value: "sublocality_level_2" + * @const + */ + "sublocality_level_2": "sublocality_level_2", + + /** + * value: "sublocality_level_3" + * @const + */ + "sublocality_level_3": "sublocality_level_3", + + /** + * value: "sublocality_level_4" + * @const + */ + "sublocality_level_4": "sublocality_level_4", + + /** + * value: "sublocality_level_5" + * @const + */ + "sublocality_level_5": "sublocality_level_5", + + /** + * value: "streetNumber" + * @const + */ + "streetNumber": "streetNumber" +}; + + + +export default InlineResponse200List; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse400.js b/src/com.lodgea/com.lodgea.model/InlineResponse400.js new file mode 100644 index 0000000..95155d9 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse400.js @@ -0,0 +1,74 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse400ValidationErrors from './InlineResponse400ValidationErrors'; + +/** + * The InlineResponse400 model module. + * @module com.lodgea/com.lodgea.model/InlineResponse400 + * @version 1.2.0 + */ +class InlineResponse400 { + /** + * Constructs a new InlineResponse400. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse400 + * @param validationErrors {Array.} + */ + constructor(validationErrors) { + + InlineResponse400.initialize(this, validationErrors); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, validationErrors) { + obj['validationErrors'] = validationErrors; + } + + /** + * Constructs a InlineResponse400 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse400} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse400} The populated InlineResponse400 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse400(); + + if (data.hasOwnProperty('validationErrors')) { + obj['validationErrors'] = ApiClient.convertToType(data['validationErrors'], [InlineResponse400ValidationErrors]); + } + } + return obj; + } + + +} + +/** + * @member {Array.} validationErrors + */ +InlineResponse400.prototype['validationErrors'] = undefined; + + + + + + +export default InlineResponse400; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse4001.js b/src/com.lodgea/com.lodgea.model/InlineResponse4001.js new file mode 100644 index 0000000..f66529f --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse4001.js @@ -0,0 +1,74 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; +import InlineResponse4001ValidationErrors from './InlineResponse4001ValidationErrors'; + +/** + * The InlineResponse4001 model module. + * @module com.lodgea/com.lodgea.model/InlineResponse4001 + * @version 1.2.0 + */ +class InlineResponse4001 { + /** + * Constructs a new InlineResponse4001. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse4001 + * @param validationErrors {Array.} + */ + constructor(validationErrors) { + + InlineResponse4001.initialize(this, validationErrors); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, validationErrors) { + obj['validationErrors'] = validationErrors; + } + + /** + * Constructs a InlineResponse4001 from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse4001} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse4001} The populated InlineResponse4001 instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse4001(); + + if (data.hasOwnProperty('validationErrors')) { + obj['validationErrors'] = ApiClient.convertToType(data['validationErrors'], [InlineResponse4001ValidationErrors]); + } + } + return obj; + } + + +} + +/** + * @member {Array.} validationErrors + */ +InlineResponse4001.prototype['validationErrors'] = undefined; + + + + + + +export default InlineResponse4001; + diff --git a/src/com.lodgea/com.lodgea.model/InlineResponse4001ValidationErrors.js b/src/com.lodgea/com.lodgea.model/InlineResponse4001ValidationErrors.js new file mode 100644 index 0000000..0ce60a5 --- /dev/null +++ b/src/com.lodgea/com.lodgea.model/InlineResponse4001ValidationErrors.js @@ -0,0 +1,202 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +import ApiClient from '../ApiClient'; + +/** + * The InlineResponse4001ValidationErrors model module. + * @module com.lodgea/com.lodgea.model/InlineResponse4001ValidationErrors + * @version 1.2.0 + */ +class InlineResponse4001ValidationErrors { + /** + * Constructs a new InlineResponse4001ValidationErrors. + * A Zod issue. More fields can be present depending on the issue type. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse4001ValidationErrors + * @param code {module:com.lodgea/com.lodgea.model/InlineResponse4001ValidationErrors.CodeEnum} The ZodIssueCode describing the issue. + * @param message {String} A message describing the error in a human readable way. + * @param path {Array.} 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. + */ + constructor(code, message, path) { + + InlineResponse4001ValidationErrors.initialize(this, code, message, path); + } + + /** + * Initializes the fields of this object. + * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). + * Only for internal use. + */ + static initialize(obj, code, message, path) { + obj['code'] = code; + obj['message'] = message; + obj['path'] = path; + } + + /** + * Constructs a InlineResponse4001ValidationErrors from a plain JavaScript object, optionally creating a new instance. + * Copies all relevant properties from data to obj if supplied or a new instance if not. + * @param {Object} data The plain JavaScript object bearing properties of interest. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse4001ValidationErrors} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse4001ValidationErrors} The populated InlineResponse4001ValidationErrors instance. + */ + static constructFromObject(data, obj) { + if (data) { + obj = obj || new InlineResponse4001ValidationErrors(); + + if (data.hasOwnProperty('code')) { + obj['code'] = ApiClient.convertToType(data['code'], 'String'); + } + if (data.hasOwnProperty('message')) { + obj['message'] = ApiClient.convertToType(data['message'], 'String'); + } + if (data.hasOwnProperty('path')) { + obj['path'] = ApiClient.convertToType(data['path'], ['String']); + } + } + return obj; + } + + +} + +/** + * The ZodIssueCode describing the issue. + * @member {module:com.lodgea/com.lodgea.model/InlineResponse4001ValidationErrors.CodeEnum} code + */ +InlineResponse4001ValidationErrors.prototype['code'] = undefined; + +/** + * A message describing the error in a human readable way. + * @member {String} message + */ +InlineResponse4001ValidationErrors.prototype['message'] = undefined; + +/** + * 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. + * @member {Array.} path + */ +InlineResponse4001ValidationErrors.prototype['path'] = undefined; + + + + + +/** + * Allowed values for the code property. + * @enum {String} + * @readonly + */ +InlineResponse4001ValidationErrors['CodeEnum'] = { + + /** + * value: "invalid_type" + * @const + */ + "invalid_type": "invalid_type", + + /** + * value: "invalid_literal" + * @const + */ + "invalid_literal": "invalid_literal", + + /** + * value: "custom" + * @const + */ + "custom": "custom", + + /** + * value: "invalid_union" + * @const + */ + "invalid_union": "invalid_union", + + /** + * value: "invalid_union_discriminator" + * @const + */ + "invalid_union_discriminator": "invalid_union_discriminator", + + /** + * value: "invalid_enum_value" + * @const + */ + "invalid_enum_value": "invalid_enum_value", + + /** + * value: "unrecognized_keys" + * @const + */ + "unrecognized_keys": "unrecognized_keys", + + /** + * value: "invalid_arguments" + * @const + */ + "invalid_arguments": "invalid_arguments", + + /** + * value: "invalid_return_type" + * @const + */ + "invalid_return_type": "invalid_return_type", + + /** + * value: "invalid_date" + * @const + */ + "invalid_date": "invalid_date", + + /** + * value: "invalid_string" + * @const + */ + "invalid_string": "invalid_string", + + /** + * value: "too_small" + * @const + */ + "too_small": "too_small", + + /** + * value: "too_big" + * @const + */ + "too_big": "too_big", + + /** + * value: "invalid_intersection_types" + * @const + */ + "invalid_intersection_types": "invalid_intersection_types", + + /** + * value: "not_multiple_of" + * @const + */ + "not_multiple_of": "not_multiple_of", + + /** + * value: "not_finite" + * @const + */ + "not_finite": "not_finite" +}; + + + +export default InlineResponse4001ValidationErrors; + diff --git a/src/com.lodgea/com.lodgea.model/LocationSearchPost400ResponseValidationErrorsInner.js b/src/com.lodgea/com.lodgea.model/InlineResponse400ValidationErrors.js similarity index 54% rename from src/com.lodgea/com.lodgea.model/LocationSearchPost400ResponseValidationErrorsInner.js rename to src/com.lodgea/com.lodgea.model/InlineResponse400ValidationErrors.js index 2cdda4b..49ec683 100644 --- a/src/com.lodgea/com.lodgea.model/LocationSearchPost400ResponseValidationErrorsInner.js +++ b/src/com.lodgea/com.lodgea.model/InlineResponse400ValidationErrors.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,22 +14,22 @@ import ApiClient from '../ApiClient'; /** - * The LocationSearchPost400ResponseValidationErrorsInner model module. - * @module com.lodgea/com.lodgea.model/LocationSearchPost400ResponseValidationErrorsInner - * @version 1.1.5 + * The InlineResponse400ValidationErrors model module. + * @module com.lodgea/com.lodgea.model/InlineResponse400ValidationErrors + * @version 1.2.0 */ -class LocationSearchPost400ResponseValidationErrorsInner { +class InlineResponse400ValidationErrors { /** - * Constructs a new LocationSearchPost400ResponseValidationErrorsInner. + * Constructs a new InlineResponse400ValidationErrors. * A Zod issue. More fields can be present depending on the issue type. - * @alias module:com.lodgea/com.lodgea.model/LocationSearchPost400ResponseValidationErrorsInner - * @param code {module:com.lodgea/com.lodgea.model/LocationSearchPost400ResponseValidationErrorsInner.CodeEnum} The ZodIssueCode describing the issue. + * @alias module:com.lodgea/com.lodgea.model/InlineResponse400ValidationErrors + * @param code {module:com.lodgea/com.lodgea.model/InlineResponse400ValidationErrors.CodeEnum} The ZodIssueCode describing the issue. * @param message {String} A message describing the error in a human readable way. * @param path {Array.} 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. */ constructor(code, message, path) { - LocationSearchPost400ResponseValidationErrorsInner.initialize(this, code, message, path); + InlineResponse400ValidationErrors.initialize(this, code, message, path); } /** @@ -44,15 +44,15 @@ class LocationSearchPost400ResponseValidationErrorsInner { } /** - * Constructs a LocationSearchPost400ResponseValidationErrorsInner from a plain JavaScript object, optionally creating a new instance. + * Constructs a InlineResponse400ValidationErrors from a plain JavaScript object, optionally creating a new instance. * Copies all relevant properties from data to obj if supplied or a new instance if not. * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/LocationSearchPost400ResponseValidationErrorsInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/LocationSearchPost400ResponseValidationErrorsInner} The populated LocationSearchPost400ResponseValidationErrorsInner instance. + * @param {module:com.lodgea/com.lodgea.model/InlineResponse400ValidationErrors} obj Optional instance to populate. + * @return {module:com.lodgea/com.lodgea.model/InlineResponse400ValidationErrors} The populated InlineResponse400ValidationErrors instance. */ static constructFromObject(data, obj) { if (data) { - obj = obj || new LocationSearchPost400ResponseValidationErrorsInner(); + obj = obj || new InlineResponse400ValidationErrors(); if (data.hasOwnProperty('code')) { obj['code'] = ApiClient.convertToType(data['code'], 'String'); @@ -67,56 +67,26 @@ class LocationSearchPost400ResponseValidationErrorsInner { return obj; } - /** - * Validates the JSON data with respect to LocationSearchPost400ResponseValidationErrorsInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to LocationSearchPost400ResponseValidationErrorsInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of LocationSearchPost400ResponseValidationErrorsInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) { - throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']); - } - // ensure the json data is a string - if (data['message'] && !(typeof data['message'] === 'string' || data['message'] instanceof String)) { - throw new Error("Expected the field `message` to be a primitive type in the JSON string but got " + data['message']); - } - // ensure the json data is an array - if (!Array.isArray(data['path'])) { - throw new Error("Expected the field `path` to be an array in the JSON data but got " + data['path']); - } - - return true; - } - } -LocationSearchPost400ResponseValidationErrorsInner.RequiredProperties = ["code", "message", "path"]; - /** * The ZodIssueCode describing the issue. - * @member {module:com.lodgea/com.lodgea.model/LocationSearchPost400ResponseValidationErrorsInner.CodeEnum} code + * @member {module:com.lodgea/com.lodgea.model/InlineResponse400ValidationErrors.CodeEnum} code */ -LocationSearchPost400ResponseValidationErrorsInner.prototype['code'] = undefined; +InlineResponse400ValidationErrors.prototype['code'] = undefined; /** * A message describing the error in a human readable way. * @member {String} message */ -LocationSearchPost400ResponseValidationErrorsInner.prototype['message'] = undefined; +InlineResponse400ValidationErrors.prototype['message'] = undefined; /** * 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. * @member {Array.} path */ -LocationSearchPost400ResponseValidationErrorsInner.prototype['path'] = undefined; +InlineResponse400ValidationErrors.prototype['path'] = undefined; @@ -127,7 +97,7 @@ LocationSearchPost400ResponseValidationErrorsInner.prototype['path'] = undefined * @enum {String} * @readonly */ -LocationSearchPost400ResponseValidationErrorsInner['CodeEnum'] = { +InlineResponse400ValidationErrors['CodeEnum'] = { /** * value: "invalid_type" @@ -228,5 +198,5 @@ LocationSearchPost400ResponseValidationErrorsInner['CodeEnum'] = { -export default LocationSearchPost400ResponseValidationErrorsInner; +export default InlineResponse400ValidationErrors; diff --git a/src/com.lodgea/com.lodgea.model/LocationSearchPost200Response.js b/src/com.lodgea/com.lodgea.model/LocationSearchPost200Response.js deleted file mode 100644 index 6676b53..0000000 --- a/src/com.lodgea/com.lodgea.model/LocationSearchPost200Response.js +++ /dev/null @@ -1,355 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import AvailablePropertiesInner from './AvailablePropertiesInner'; - -/** - * The LocationSearchPost200Response model module. - * @module com.lodgea/com.lodgea.model/LocationSearchPost200Response - * @version 1.1.5 - */ -class LocationSearchPost200Response { - /** - * Constructs a new LocationSearchPost200Response. - * @alias module:com.lodgea/com.lodgea.model/LocationSearchPost200Response - * @param languageCode {module:com.lodgea/com.lodgea.model/LocationSearchPost200Response.LanguageCodeEnum} 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.

- * @param list {Array.} A list of available properties matching the given criteria. - */ - constructor(languageCode, list) { - - LocationSearchPost200Response.initialize(this, languageCode, list); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, languageCode, list) { - obj['languageCode'] = languageCode; - obj['list'] = list; - } - - /** - * Constructs a LocationSearchPost200Response from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/LocationSearchPost200Response} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/LocationSearchPost200Response} The populated LocationSearchPost200Response instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LocationSearchPost200Response(); - - if (data.hasOwnProperty('languageCode')) { - obj['languageCode'] = ApiClient.convertToType(data['languageCode'], 'String'); - } - if (data.hasOwnProperty('list')) { - obj['list'] = ApiClient.convertToType(data['list'], [AvailablePropertiesInner]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to LocationSearchPost200Response. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to LocationSearchPost200Response. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of LocationSearchPost200Response.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['languageCode'] && !(typeof data['languageCode'] === 'string' || data['languageCode'] instanceof String)) { - throw new Error("Expected the field `languageCode` to be a primitive type in the JSON string but got " + data['languageCode']); - } - if (data['list']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['list'])) { - throw new Error("Expected the field `list` to be an array in the JSON data but got " + data['list']); - } - // validate the optional field `list` (array) - for (const item of data['list']) { - AvailablePropertiesInner.validateJsonObject(item); - }; - } - - return true; - } - - -} - -LocationSearchPost200Response.RequiredProperties = ["languageCode", "list"]; - -/** - * 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.

- * @member {module:com.lodgea/com.lodgea.model/LocationSearchPost200Response.LanguageCodeEnum} languageCode - */ -LocationSearchPost200Response.prototype['languageCode'] = undefined; - -/** - * A list of available properties matching the given criteria. - * @member {Array.} list - */ -LocationSearchPost200Response.prototype['list'] = undefined; - - - - - -/** - * Allowed values for the languageCode property. - * @enum {String} - * @readonly - */ -LocationSearchPost200Response['LanguageCodeEnum'] = { - - /** - * value: "af" - * @const - */ - "af": "af", - - /** - * value: "ar" - * @const - */ - "ar": "ar", - - /** - * value: "bg" - * @const - */ - "bg": "bg", - - /** - * value: "ca" - * @const - */ - "ca": "ca", - - /** - * value: "cs" - * @const - */ - "cs": "cs", - - /** - * value: "da" - * @const - */ - "da": "da", - - /** - * value: "de" - * @const - */ - "de": "de", - - /** - * value: "el" - * @const - */ - "el": "el", - - /** - * value: "en" - * @const - */ - "en": "en", - - /** - * value: "es" - * @const - */ - "es": "es", - - /** - * value: "et" - * @const - */ - "et": "et", - - /** - * value: "fi" - * @const - */ - "fi": "fi", - - /** - * value: "fr" - * @const - */ - "fr": "fr", - - /** - * value: "he" - * @const - */ - "he": "he", - - /** - * value: "hi" - * @const - */ - "hi": "hi", - - /** - * value: "hr" - * @const - */ - "hr": "hr", - - /** - * value: "hu" - * @const - */ - "hu": "hu", - - /** - * value: "id" - * @const - */ - "id": "id", - - /** - * value: "is" - * @const - */ - "is": "is", - - /** - * value: "it" - * @const - */ - "it": "it", - - /** - * value: "ja" - * @const - */ - "ja": "ja", - - /** - * value: "ko" - * @const - */ - "ko": "ko", - - /** - * value: "lt" - * @const - */ - "lt": "lt", - - /** - * value: "lv" - * @const - */ - "lv": "lv", - - /** - * value: "nl" - * @const - */ - "nl": "nl", - - /** - * value: "no" - * @const - */ - "no": "no", - - /** - * value: "pl" - * @const - */ - "pl": "pl", - - /** - * value: "pt" - * @const - */ - "pt": "pt", - - /** - * value: "ro" - * @const - */ - "ro": "ro", - - /** - * value: "ru" - * @const - */ - "ru": "ru", - - /** - * value: "sk" - * @const - */ - "sk": "sk", - - /** - * value: "sl" - * @const - */ - "sl": "sl", - - /** - * value: "sr" - * @const - */ - "sr": "sr", - - /** - * value: "sv" - * @const - */ - "sv": "sv", - - /** - * value: "th" - * @const - */ - "th": "th", - - /** - * value: "tr" - * @const - */ - "tr": "tr", - - /** - * value: "vi" - * @const - */ - "vi": "vi", - - /** - * value: "zh" - * @const - */ - "zh": "zh" -}; - - - -export default LocationSearchPost200Response; - diff --git a/src/com.lodgea/com.lodgea.model/LocationSearchPost400Response.js b/src/com.lodgea/com.lodgea.model/LocationSearchPost400Response.js deleted file mode 100644 index 812a0ef..0000000 --- a/src/com.lodgea/com.lodgea.model/LocationSearchPost400Response.js +++ /dev/null @@ -1,102 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import LocationSearchPost400ResponseValidationErrorsInner from './LocationSearchPost400ResponseValidationErrorsInner'; - -/** - * The LocationSearchPost400Response model module. - * @module com.lodgea/com.lodgea.model/LocationSearchPost400Response - * @version 1.1.5 - */ -class LocationSearchPost400Response { - /** - * Constructs a new LocationSearchPost400Response. - * @alias module:com.lodgea/com.lodgea.model/LocationSearchPost400Response - * @param validationErrors {Array.} - */ - constructor(validationErrors) { - - LocationSearchPost400Response.initialize(this, validationErrors); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, validationErrors) { - obj['validationErrors'] = validationErrors; - } - - /** - * Constructs a LocationSearchPost400Response from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/LocationSearchPost400Response} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/LocationSearchPost400Response} The populated LocationSearchPost400Response instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new LocationSearchPost400Response(); - - if (data.hasOwnProperty('validationErrors')) { - obj['validationErrors'] = ApiClient.convertToType(data['validationErrors'], [LocationSearchPost400ResponseValidationErrorsInner]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to LocationSearchPost400Response. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to LocationSearchPost400Response. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of LocationSearchPost400Response.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - if (data['validationErrors']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['validationErrors'])) { - throw new Error("Expected the field `validationErrors` to be an array in the JSON data but got " + data['validationErrors']); - } - // validate the optional field `validationErrors` (array) - for (const item of data['validationErrors']) { - LocationSearchPost400ResponseValidationErrorsInner.validateJsonObject(item); - }; - } - - return true; - } - - -} - -LocationSearchPost400Response.RequiredProperties = ["validationErrors"]; - -/** - * @member {Array.} validationErrors - */ -LocationSearchPost400Response.prototype['validationErrors'] = undefined; - - - - - - -export default LocationSearchPost400Response; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesGet200Response.js b/src/com.lodgea/com.lodgea.model/PropertiesGet200Response.js deleted file mode 100644 index 8a2fc01..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesGet200Response.js +++ /dev/null @@ -1,115 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import PropertiesGet200ResponseListInner from './PropertiesGet200ResponseListInner'; - -/** - * The PropertiesGet200Response model module. - * @module com.lodgea/com.lodgea.model/PropertiesGet200Response - * @version 1.1.5 - */ -class PropertiesGet200Response { - /** - * Constructs a new PropertiesGet200Response. - * @alias module:com.lodgea/com.lodgea.model/PropertiesGet200Response - * @param list {Array.} - */ - constructor(list) { - - PropertiesGet200Response.initialize(this, list); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, list) { - obj['list'] = list; - } - - /** - * Constructs a PropertiesGet200Response from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesGet200Response} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesGet200Response} The populated PropertiesGet200Response instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesGet200Response(); - - if (data.hasOwnProperty('list')) { - obj['list'] = ApiClient.convertToType(data['list'], [PropertiesGet200ResponseListInner]); - } - if (data.hasOwnProperty('pageToken')) { - obj['pageToken'] = ApiClient.convertToType(data['pageToken'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesGet200Response. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesGet200Response. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesGet200Response.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - if (data['list']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['list'])) { - throw new Error("Expected the field `list` to be an array in the JSON data but got " + data['list']); - } - // validate the optional field `list` (array) - for (const item of data['list']) { - PropertiesGet200ResponseListInner.validateJsonObject(item); - }; - } - // ensure the json data is a string - if (data['pageToken'] && !(typeof data['pageToken'] === 'string' || data['pageToken'] instanceof String)) { - throw new Error("Expected the field `pageToken` to be a primitive type in the JSON string but got " + data['pageToken']); - } - - return true; - } - - -} - -PropertiesGet200Response.RequiredProperties = ["list"]; - -/** - * @member {Array.} list - */ -PropertiesGet200Response.prototype['list'] = undefined; - -/** - * The page token to pass in the subsequent call to retrieve more results, only returned if more results are available. - * @member {String} pageToken - */ -PropertiesGet200Response.prototype['pageToken'] = undefined; - - - - - - -export default PropertiesGet200Response; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesGet200ResponseListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesGet200ResponseListInner.js deleted file mode 100644 index 5a31731..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesGet200ResponseListInner.js +++ /dev/null @@ -1,163 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesGet200ResponseListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesGet200ResponseListInner - * @version 1.1.5 - */ -class PropertiesGet200ResponseListInner { - /** - * Constructs a new PropertiesGet200ResponseListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesGet200ResponseListInner - * @param published {Boolean} Whether the property is in published state. - * @param name {String} The name of the property. - * @param propertyId {String} The unique identifier for the property. - * @param image {String} The file name of the image for the property. - * @param address {String} The address of the property. - * @param lastUpdated {Number} The timestamp of the last update to the property (Unix in ms). - */ - constructor(published, name, propertyId, image, address, lastUpdated) { - - PropertiesGet200ResponseListInner.initialize(this, published, name, propertyId, image, address, lastUpdated); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, published, name, propertyId, image, address, lastUpdated) { - obj['published'] = published; - obj['name'] = name; - obj['propertyId'] = propertyId; - obj['image'] = image; - obj['address'] = address; - obj['lastUpdated'] = lastUpdated; - } - - /** - * Constructs a PropertiesGet200ResponseListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesGet200ResponseListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesGet200ResponseListInner} The populated PropertiesGet200ResponseListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesGet200ResponseListInner(); - - if (data.hasOwnProperty('published')) { - obj['published'] = ApiClient.convertToType(data['published'], 'Boolean'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('propertyId')) { - obj['propertyId'] = ApiClient.convertToType(data['propertyId'], 'String'); - } - if (data.hasOwnProperty('image')) { - obj['image'] = ApiClient.convertToType(data['image'], 'String'); - } - if (data.hasOwnProperty('address')) { - obj['address'] = ApiClient.convertToType(data['address'], 'String'); - } - if (data.hasOwnProperty('lastUpdated')) { - obj['lastUpdated'] = ApiClient.convertToType(data['lastUpdated'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesGet200ResponseListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesGet200ResponseListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesGet200ResponseListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { - throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); - } - // ensure the json data is a string - if (data['propertyId'] && !(typeof data['propertyId'] === 'string' || data['propertyId'] instanceof String)) { - throw new Error("Expected the field `propertyId` to be a primitive type in the JSON string but got " + data['propertyId']); - } - // ensure the json data is a string - if (data['image'] && !(typeof data['image'] === 'string' || data['image'] instanceof String)) { - throw new Error("Expected the field `image` to be a primitive type in the JSON string but got " + data['image']); - } - // ensure the json data is a string - if (data['address'] && !(typeof data['address'] === 'string' || data['address'] instanceof String)) { - throw new Error("Expected the field `address` to be a primitive type in the JSON string but got " + data['address']); - } - - return true; - } - - -} - -PropertiesGet200ResponseListInner.RequiredProperties = ["published", "name", "propertyId", "image", "address", "lastUpdated"]; - -/** - * Whether the property is in published state. - * @member {Boolean} published - */ -PropertiesGet200ResponseListInner.prototype['published'] = undefined; - -/** - * The name of the property. - * @member {String} name - */ -PropertiesGet200ResponseListInner.prototype['name'] = undefined; - -/** - * The unique identifier for the property. - * @member {String} propertyId - */ -PropertiesGet200ResponseListInner.prototype['propertyId'] = undefined; - -/** - * The file name of the image for the property. - * @member {String} image - */ -PropertiesGet200ResponseListInner.prototype['image'] = undefined; - -/** - * The address of the property. - * @member {String} address - */ -PropertiesGet200ResponseListInner.prototype['address'] = undefined; - -/** - * The timestamp of the last update to the property (Unix in ms). - * @member {Number} lastUpdated - */ -PropertiesGet200ResponseListInner.prototype['lastUpdated'] = undefined; - - - - - - -export default PropertiesGet200ResponseListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response.js deleted file mode 100644 index 0b2bc82..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response.js +++ /dev/null @@ -1,103 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner from './PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner'; - -/** - * The PropertiesPropertyIdAvailabilityGet200Response model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response - * @version 1.1.5 - */ -class PropertiesPropertyIdAvailabilityGet200Response { - /** - * Constructs a new PropertiesPropertyIdAvailabilityGet200Response. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response - * @param availabilityList {Array.} An array of objects describing the available booking options. - */ - constructor(availabilityList) { - - PropertiesPropertyIdAvailabilityGet200Response.initialize(this, availabilityList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, availabilityList) { - obj['availabilityList'] = availabilityList; - } - - /** - * Constructs a PropertiesPropertyIdAvailabilityGet200Response from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response} The populated PropertiesPropertyIdAvailabilityGet200Response instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdAvailabilityGet200Response(); - - if (data.hasOwnProperty('availabilityList')) { - obj['availabilityList'] = ApiClient.convertToType(data['availabilityList'], [PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdAvailabilityGet200Response. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdAvailabilityGet200Response. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdAvailabilityGet200Response.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - if (data['availabilityList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['availabilityList'])) { - throw new Error("Expected the field `availabilityList` to be an array in the JSON data but got " + data['availabilityList']); - } - // validate the optional field `availabilityList` (array) - for (const item of data['availabilityList']) { - PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.validateJsonObject(item); - }; - } - - return true; - } - - -} - -PropertiesPropertyIdAvailabilityGet200Response.RequiredProperties = ["availabilityList"]; - -/** - * An array of objects describing the available booking options. - * @member {Array.} availabilityList - */ -PropertiesPropertyIdAvailabilityGet200Response.prototype['availabilityList'] = undefined; - - - - - - -export default PropertiesPropertyIdAvailabilityGet200Response; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.js deleted file mode 100644 index 2425895..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.js +++ /dev/null @@ -1,307 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner from './PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner'; - -/** - * The PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner { - /** - * Constructs a new PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner - * @param ratePlanList {Array.} A list of available rate plans. - * @param name {String} The name of the rate plan group. - * @param mealPlanList {Array.} The available meal plans.

See also in the appendix.

- * @param roomTypeList {Array.} The rooms this availability is for. - */ - constructor(ratePlanList, name, mealPlanList, roomTypeList) { - - PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.initialize(this, ratePlanList, name, mealPlanList, roomTypeList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, ratePlanList, name, mealPlanList, roomTypeList) { - obj['ratePlanList'] = ratePlanList; - obj['name'] = name; - obj['mealPlanList'] = mealPlanList; - obj['roomTypeList'] = roomTypeList; - } - - /** - * Constructs a PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner} The populated PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner(); - - if (data.hasOwnProperty('ratePlanList')) { - obj['ratePlanList'] = ApiClient.convertToType(data['ratePlanList'], [PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner]); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('mealPlanList')) { - obj['mealPlanList'] = ApiClient.convertToType(data['mealPlanList'], ['Number']); - } - if (data.hasOwnProperty('roomTypeList')) { - obj['roomTypeList'] = ApiClient.convertToType(data['roomTypeList'], ['String']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - if (data['ratePlanList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['ratePlanList'])) { - throw new Error("Expected the field `ratePlanList` to be an array in the JSON data but got " + data['ratePlanList']); - } - // validate the optional field `ratePlanList` (array) - for (const item of data['ratePlanList']) { - PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.validateJsonObject(item); - }; - } - // ensure the json data is a string - if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { - throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); - } - // ensure the json data is an array - if (!Array.isArray(data['mealPlanList'])) { - throw new Error("Expected the field `mealPlanList` to be an array in the JSON data but got " + data['mealPlanList']); - } - // ensure the json data is an array - if (!Array.isArray(data['roomTypeList'])) { - throw new Error("Expected the field `roomTypeList` to be an array in the JSON data but got " + data['roomTypeList']); - } - - return true; - } - - -} - -PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.RequiredProperties = ["ratePlanList", "name", "mealPlanList", "roomTypeList"]; - -/** - * A list of available rate plans. - * @member {Array.} ratePlanList - */ -PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.prototype['ratePlanList'] = undefined; - -/** - * The name of the rate plan group. - * @member {String} name - */ -PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.prototype['name'] = undefined; - -/** - * The available meal plans.

See also in the appendix.

- * @member {Array.} mealPlanList - */ -PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.prototype['mealPlanList'] = undefined; - -/** - * The rooms this availability is for. - * @member {Array.} roomTypeList - */ -PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.prototype['roomTypeList'] = undefined; - - - - - -/** - * Allowed values for the mealPlanList property. - * @enum {Number} - * @readonly - */ -PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner['MealPlanListEnum'] = { - - /** - * value: 0 - * @const - */ - "0": 0, - - /** - * value: 1 - * @const - */ - "1": 1, - - /** - * value: 2 - * @const - */ - "2": 2, - - /** - * value: 3 - * @const - */ - "3": 3, - - /** - * value: 4 - * @const - */ - "4": 4, - - /** - * value: 5 - * @const - */ - "5": 5, - - /** - * value: 6 - * @const - */ - "6": 6, - - /** - * value: 7 - * @const - */ - "7": 7, - - /** - * value: 8 - * @const - */ - "8": 8, - - /** - * value: 9 - * @const - */ - "9": 9, - - /** - * value: 10 - * @const - */ - "10": 10, - - /** - * value: 11 - * @const - */ - "11": 11, - - /** - * value: 12 - * @const - */ - "12": 12, - - /** - * value: 14 - * @const - */ - "14": 14, - - /** - * value: 15 - * @const - */ - "15": 15, - - /** - * value: 16 - * @const - */ - "16": 16, - - /** - * value: 17 - * @const - */ - "17": 17, - - /** - * value: 18 - * @const - */ - "18": 18, - - /** - * value: 19 - * @const - */ - "19": 19, - - /** - * value: 20 - * @const - */ - "20": 20, - - /** - * value: 21 - * @const - */ - "21": 21, - - /** - * value: 22 - * @const - */ - "22": 22, - - /** - * value: 23 - * @const - */ - "23": 23, - - /** - * value: 24 - * @const - */ - "24": 24, - - /** - * value: 90001 - * @const - */ - "90001": 90001 -}; - - - -export default PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200Response.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200Response.js deleted file mode 100644 index 04f85da..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200Response.js +++ /dev/null @@ -1,117 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import PropertiesPropertyIdGet200ResponseProductListInner from './PropertiesPropertyIdGet200ResponseProductListInner'; -import PropertiesPropertyIdGet200ResponseProperty from './PropertiesPropertyIdGet200ResponseProperty'; - -/** - * The PropertiesPropertyIdGet200Response model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200Response - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200Response { - /** - * Constructs a new PropertiesPropertyIdGet200Response. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200Response - * @param property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProperty} - * @param productList {Array.} - */ - constructor(property, productList) { - - PropertiesPropertyIdGet200Response.initialize(this, property, productList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, property, productList) { - obj['property'] = property; - obj['productList'] = productList; - } - - /** - * Constructs a PropertiesPropertyIdGet200Response from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200Response} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200Response} The populated PropertiesPropertyIdGet200Response instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200Response(); - - if (data.hasOwnProperty('property')) { - obj['property'] = PropertiesPropertyIdGet200ResponseProperty.constructFromObject(data['property']); - } - if (data.hasOwnProperty('productList')) { - obj['productList'] = ApiClient.convertToType(data['productList'], [PropertiesPropertyIdGet200ResponseProductListInner]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200Response. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200Response. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200Response.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // validate the optional field `property` - if (data['property']) { // data not null - PropertiesPropertyIdGet200ResponseProperty.validateJSON(data['property']); - } - if (data['productList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['productList'])) { - throw new Error("Expected the field `productList` to be an array in the JSON data but got " + data['productList']); - } - // validate the optional field `productList` (array) - for (const item of data['productList']) { - PropertiesPropertyIdGet200ResponseProductListInner.validateJsonObject(item); - }; - } - - return true; - } - - -} - -PropertiesPropertyIdGet200Response.RequiredProperties = ["property", "productList"]; - -/** - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProperty} property - */ -PropertiesPropertyIdGet200Response.prototype['property'] = undefined; - -/** - * @member {Array.} productList - */ -PropertiesPropertyIdGet200Response.prototype['productList'] = undefined; - - - - - - -export default PropertiesPropertyIdGet200Response; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInner.js deleted file mode 100644 index 277a25e..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInner.js +++ /dev/null @@ -1,354 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo from './PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo'; -import PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner from './PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner'; - -/** - * The PropertiesPropertyIdGet200ResponseProductListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponseProductListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponseProductListInner. - * A list of available products for this property. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInner - * @param propertyId {String} The ID of the property. - * @param name {String} The name of the product. - * @param mealPlanList {Array.} A list of meal type codes included in this product. - * @param roomTypeList {Array.} An array of strings describing the room types included in this product. - * @param ratePlanList {Array.} The rate plans for this product. - */ - constructor(propertyId, name, mealPlanList, roomTypeList, ratePlanList) { - - PropertiesPropertyIdGet200ResponseProductListInner.initialize(this, propertyId, name, mealPlanList, roomTypeList, ratePlanList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, propertyId, name, mealPlanList, roomTypeList, ratePlanList) { - obj['propertyId'] = propertyId; - obj['name'] = name; - obj['mealPlanList'] = mealPlanList; - obj['roomTypeList'] = roomTypeList; - obj['ratePlanList'] = ratePlanList; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponseProductListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInner} The populated PropertiesPropertyIdGet200ResponseProductListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponseProductListInner(); - - if (data.hasOwnProperty('propertyId')) { - obj['propertyId'] = ApiClient.convertToType(data['propertyId'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('mealPlanList')) { - obj['mealPlanList'] = ApiClient.convertToType(data['mealPlanList'], ['Number']); - } - if (data.hasOwnProperty('roomTypeList')) { - obj['roomTypeList'] = ApiClient.convertToType(data['roomTypeList'], ['String']); - } - if (data.hasOwnProperty('isLOSPricing')) { - obj['isLOSPricing'] = ApiClient.convertToType(data['isLOSPricing'], 'Boolean'); - } - if (data.hasOwnProperty('isOBPPricing')) { - obj['isOBPPricing'] = ApiClient.convertToType(data['isOBPPricing'], 'Boolean'); - } - if (data.hasOwnProperty('ratePlanList')) { - obj['ratePlanList'] = ApiClient.convertToType(data['ratePlanList'], [PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner]); - } - if (data.hasOwnProperty('policyInfo')) { - obj['policyInfo'] = PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.constructFromObject(data['policyInfo']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponseProductListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponseProductListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponseProductListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['propertyId'] && !(typeof data['propertyId'] === 'string' || data['propertyId'] instanceof String)) { - throw new Error("Expected the field `propertyId` to be a primitive type in the JSON string but got " + data['propertyId']); - } - // ensure the json data is a string - if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { - throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); - } - // ensure the json data is an array - if (!Array.isArray(data['mealPlanList'])) { - throw new Error("Expected the field `mealPlanList` to be an array in the JSON data but got " + data['mealPlanList']); - } - // ensure the json data is an array - if (!Array.isArray(data['roomTypeList'])) { - throw new Error("Expected the field `roomTypeList` to be an array in the JSON data but got " + data['roomTypeList']); - } - if (data['ratePlanList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['ratePlanList'])) { - throw new Error("Expected the field `ratePlanList` to be an array in the JSON data but got " + data['ratePlanList']); - } - // validate the optional field `ratePlanList` (array) - for (const item of data['ratePlanList']) { - PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.validateJsonObject(item); - }; - } - // validate the optional field `policyInfo` - if (data['policyInfo']) { // data not null - PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.validateJSON(data['policyInfo']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponseProductListInner.RequiredProperties = ["propertyId", "name", "mealPlanList", "roomTypeList", "ratePlanList"]; - -/** - * The ID of the property. - * @member {String} propertyId - */ -PropertiesPropertyIdGet200ResponseProductListInner.prototype['propertyId'] = undefined; - -/** - * The name of the product. - * @member {String} name - */ -PropertiesPropertyIdGet200ResponseProductListInner.prototype['name'] = undefined; - -/** - * A list of meal type codes included in this product. - * @member {Array.} mealPlanList - */ -PropertiesPropertyIdGet200ResponseProductListInner.prototype['mealPlanList'] = undefined; - -/** - * An array of strings describing the room types included in this product. - * @member {Array.} roomTypeList - */ -PropertiesPropertyIdGet200ResponseProductListInner.prototype['roomTypeList'] = undefined; - -/** - * Whether this product is length of stay pricing. - * @member {Boolean} isLOSPricing - */ -PropertiesPropertyIdGet200ResponseProductListInner.prototype['isLOSPricing'] = undefined; - -/** - * Whether this product is occupancy based pricing. - * @member {Boolean} isOBPPricing - */ -PropertiesPropertyIdGet200ResponseProductListInner.prototype['isOBPPricing'] = undefined; - -/** - * The rate plans for this product. - * @member {Array.} ratePlanList - */ -PropertiesPropertyIdGet200ResponseProductListInner.prototype['ratePlanList'] = undefined; - -/** - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo} policyInfo - */ -PropertiesPropertyIdGet200ResponseProductListInner.prototype['policyInfo'] = undefined; - - - - - -/** - * Allowed values for the mealPlanList property. - * @enum {Number} - * @readonly - */ -PropertiesPropertyIdGet200ResponseProductListInner['MealPlanListEnum'] = { - - /** - * value: 0 - * @const - */ - "0": 0, - - /** - * value: 1 - * @const - */ - "1": 1, - - /** - * value: 2 - * @const - */ - "2": 2, - - /** - * value: 3 - * @const - */ - "3": 3, - - /** - * value: 4 - * @const - */ - "4": 4, - - /** - * value: 5 - * @const - */ - "5": 5, - - /** - * value: 6 - * @const - */ - "6": 6, - - /** - * value: 7 - * @const - */ - "7": 7, - - /** - * value: 8 - * @const - */ - "8": 8, - - /** - * value: 9 - * @const - */ - "9": 9, - - /** - * value: 10 - * @const - */ - "10": 10, - - /** - * value: 11 - * @const - */ - "11": 11, - - /** - * value: 12 - * @const - */ - "12": 12, - - /** - * value: 14 - * @const - */ - "14": 14, - - /** - * value: 15 - * @const - */ - "15": 15, - - /** - * value: 16 - * @const - */ - "16": 16, - - /** - * value: 17 - * @const - */ - "17": 17, - - /** - * value: 18 - * @const - */ - "18": 18, - - /** - * value: 19 - * @const - */ - "19": 19, - - /** - * value: 20 - * @const - */ - "20": 20, - - /** - * value: 21 - * @const - */ - "21": 21, - - /** - * value: 22 - * @const - */ - "22": 22, - - /** - * value: 23 - * @const - */ - "23": 23, - - /** - * value: 24 - * @const - */ - "24": 24, - - /** - * value: 90001 - * @const - */ - "90001": 90001 -}; - - - -export default PropertiesPropertyIdGet200ResponseProductListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.js deleted file mode 100644 index 7fbccca..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.js +++ /dev/null @@ -1,274 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner from './PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner from './PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy from './PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy from './PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner from './PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner'; - -/** - * The PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo { - /** - * Constructs a new PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo. - * The policy info for this product. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo - * @param checkInTime {Number} Check-in time (unix timestamp in ms). - * @param checkOutTime {Number} Check-out time (unix timestamp in ms). - * @param cancellationPolicyList {Array.} List of cancellation policies. - * @param advanceBookingMin {Number} The minimum number of days in advance a booking must be made - * @param advanceBookingMax {Number} The maximum number of days in advance a booking can be made - * @param taxPolicyList {Array.} A list of taxes and their policies. - * @param feePolicyList {Array.} A list of fees and their policies. - */ - constructor(checkInTime, checkOutTime, cancellationPolicyList, advanceBookingMin, advanceBookingMax, taxPolicyList, feePolicyList) { - - PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.initialize(this, checkInTime, checkOutTime, cancellationPolicyList, advanceBookingMin, advanceBookingMax, taxPolicyList, feePolicyList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, checkInTime, checkOutTime, cancellationPolicyList, advanceBookingMin, advanceBookingMax, taxPolicyList, feePolicyList) { - obj['checkInTime'] = checkInTime; - obj['checkOutTime'] = checkOutTime; - obj['cancellationPolicyList'] = cancellationPolicyList; - obj['advanceBookingMin'] = advanceBookingMin; - obj['advanceBookingMax'] = advanceBookingMax; - obj['taxPolicyList'] = taxPolicyList; - obj['feePolicyList'] = feePolicyList; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo} The populated PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); - - if (data.hasOwnProperty('checkInTime')) { - obj['checkInTime'] = ApiClient.convertToType(data['checkInTime'], 'Number'); - } - if (data.hasOwnProperty('checkOutTime')) { - obj['checkOutTime'] = ApiClient.convertToType(data['checkOutTime'], 'Number'); - } - if (data.hasOwnProperty('totalGuestCount')) { - obj['totalGuestCount'] = ApiClient.convertToType(data['totalGuestCount'], 'Number'); - } - if (data.hasOwnProperty('cancellationPolicyList')) { - obj['cancellationPolicyList'] = ApiClient.convertToType(data['cancellationPolicyList'], [PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner]); - } - if (data.hasOwnProperty('advanceBookingMin')) { - obj['advanceBookingMin'] = ApiClient.convertToType(data['advanceBookingMin'], 'Number'); - } - if (data.hasOwnProperty('advanceBookingMax')) { - obj['advanceBookingMax'] = ApiClient.convertToType(data['advanceBookingMax'], 'Number'); - } - if (data.hasOwnProperty('petsPolicy')) { - obj['petsPolicy'] = PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.constructFromObject(data['petsPolicy']); - } - if (data.hasOwnProperty('prepaymentPolicy')) { - obj['prepaymentPolicy'] = ApiClient.convertToType(data['prepaymentPolicy'], 'String'); - } - if (data.hasOwnProperty('guaranteePolicy')) { - obj['guaranteePolicy'] = PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.constructFromObject(data['guaranteePolicy']); - } - if (data.hasOwnProperty('taxPolicyList')) { - obj['taxPolicyList'] = ApiClient.convertToType(data['taxPolicyList'], [PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner]); - } - if (data.hasOwnProperty('feePolicyList')) { - obj['feePolicyList'] = ApiClient.convertToType(data['feePolicyList'], [PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner]); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - if (data['cancellationPolicyList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['cancellationPolicyList'])) { - throw new Error("Expected the field `cancellationPolicyList` to be an array in the JSON data but got " + data['cancellationPolicyList']); - } - // validate the optional field `cancellationPolicyList` (array) - for (const item of data['cancellationPolicyList']) { - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.validateJsonObject(item); - }; - } - // validate the optional field `petsPolicy` - if (data['petsPolicy']) { // data not null - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.validateJSON(data['petsPolicy']); - } - // ensure the json data is a string - if (data['prepaymentPolicy'] && !(typeof data['prepaymentPolicy'] === 'string' || data['prepaymentPolicy'] instanceof String)) { - throw new Error("Expected the field `prepaymentPolicy` to be a primitive type in the JSON string but got " + data['prepaymentPolicy']); - } - // validate the optional field `guaranteePolicy` - if (data['guaranteePolicy']) { // data not null - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.validateJSON(data['guaranteePolicy']); - } - if (data['taxPolicyList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['taxPolicyList'])) { - throw new Error("Expected the field `taxPolicyList` to be an array in the JSON data but got " + data['taxPolicyList']); - } - // validate the optional field `taxPolicyList` (array) - for (const item of data['taxPolicyList']) { - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.validateJsonObject(item); - }; - } - if (data['feePolicyList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['feePolicyList'])) { - throw new Error("Expected the field `feePolicyList` to be an array in the JSON data but got " + data['feePolicyList']); - } - // validate the optional field `feePolicyList` (array) - for (const item of data['feePolicyList']) { - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.validateJsonObject(item); - }; - } - // ensure the json data is a string - if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { - throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.RequiredProperties = ["checkInTime", "checkOutTime", "cancellationPolicyList", "advanceBookingMin", "advanceBookingMax", "taxPolicyList", "feePolicyList"]; - -/** - * Check-in time (unix timestamp in ms). - * @member {Number} checkInTime - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prototype['checkInTime'] = undefined; - -/** - * Check-out time (unix timestamp in ms). - * @member {Number} checkOutTime - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prototype['checkOutTime'] = undefined; - -/** - * The maximum number of guests allowed. - * @member {Number} totalGuestCount - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prototype['totalGuestCount'] = undefined; - -/** - * List of cancellation policies. - * @member {Array.} cancellationPolicyList - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prototype['cancellationPolicyList'] = undefined; - -/** - * The minimum number of days in advance a booking must be made - * @member {Number} advanceBookingMin - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prototype['advanceBookingMin'] = undefined; - -/** - * The maximum number of days in advance a booking can be made - * @member {Number} advanceBookingMax - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prototype['advanceBookingMax'] = undefined; - -/** - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy} petsPolicy - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prototype['petsPolicy'] = undefined; - -/** - * The type of the prepayment policy. - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.PrepaymentPolicyEnum} prepaymentPolicy - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prototype['prepaymentPolicy'] = undefined; - -/** - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy} guaranteePolicy - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prototype['guaranteePolicy'] = undefined; - -/** - * A list of taxes and their policies. - * @member {Array.} taxPolicyList - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prototype['taxPolicyList'] = undefined; - -/** - * A list of fees and their policies. - * @member {Array.} feePolicyList - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prototype['feePolicyList'] = undefined; - -/** - * The name of this policy. - * @member {String} name - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.prototype['name'] = undefined; - - - - - -/** - * Allowed values for the prepaymentPolicy property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo['PrepaymentPolicyEnum'] = { - - /** - * value: "after_cancellation_fee_begins" - * @const - */ - "cancellation_fee_begins": "after_cancellation_fee_begins", - - /** - * value: "after_reservation_is_made" - * @const - */ - "reservation_is_made": "after_reservation_is_made" -}; - - - -export default PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.js deleted file mode 100644 index 8954665..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.js +++ /dev/null @@ -1,143 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner from './PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner'; - -/** - * The PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner - * @param active {Boolean} Whether the rate plan is active. - * @param name {String} The name of the rate plan. - * @param code {String} The code identifying the rate plan. - * @param pricingList {Array.} - */ - constructor(active, name, code, pricingList) { - - PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.initialize(this, active, name, code, pricingList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, active, name, code, pricingList) { - obj['active'] = active; - obj['name'] = name; - obj['code'] = code; - obj['pricingList'] = pricingList; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner} The populated PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner(); - - if (data.hasOwnProperty('active')) { - obj['active'] = ApiClient.convertToType(data['active'], 'Boolean'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - } - if (data.hasOwnProperty('pricingList')) { - obj['pricingList'] = ApiClient.convertToType(data['pricingList'], [PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { - throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); - } - // ensure the json data is a string - if (data['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) { - throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']); - } - if (data['pricingList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['pricingList'])) { - throw new Error("Expected the field `pricingList` to be an array in the JSON data but got " + data['pricingList']); - } - // validate the optional field `pricingList` (array) - for (const item of data['pricingList']) { - PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.validateJsonObject(item); - }; - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.RequiredProperties = ["active", "name", "code", "pricingList"]; - -/** - * Whether the rate plan is active. - * @member {Boolean} active - */ -PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.prototype['active'] = undefined; - -/** - * The name of the rate plan. - * @member {String} name - */ -PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.prototype['name'] = undefined; - -/** - * The code identifying the rate plan. - * @member {String} code - */ -PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.prototype['code'] = undefined; - -/** - * @member {Array.} pricingList - */ -PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.prototype['pricingList'] = undefined; - - - - - - -export default PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.js deleted file mode 100644 index 1c9fbf3..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.js +++ /dev/null @@ -1,129 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner - * @param dateTime {Number} The timestamp of the pricing information. - * @param occupancy {Number} The number of occupants for which the pricing applies. - * @param priceList {Object.} A mapping of number of days of stay to prices. - * @param currencyCode {String} The currency code for the prices. - */ - constructor(dateTime, occupancy, priceList, currencyCode) { - - PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.initialize(this, dateTime, occupancy, priceList, currencyCode); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, dateTime, occupancy, priceList, currencyCode) { - obj['dateTime'] = dateTime; - obj['occupancy'] = occupancy; - obj['priceList'] = priceList; - obj['currencyCode'] = currencyCode; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner} The populated PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner(); - - if (data.hasOwnProperty('dateTime')) { - obj['dateTime'] = ApiClient.convertToType(data['dateTime'], 'Number'); - } - if (data.hasOwnProperty('occupancy')) { - obj['occupancy'] = ApiClient.convertToType(data['occupancy'], 'Number'); - } - if (data.hasOwnProperty('priceList')) { - obj['priceList'] = ApiClient.convertToType(data['priceList'], {'String': 'Number'}); - } - if (data.hasOwnProperty('currencyCode')) { - obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['currencyCode'] && !(typeof data['currencyCode'] === 'string' || data['currencyCode'] instanceof String)) { - throw new Error("Expected the field `currencyCode` to be a primitive type in the JSON string but got " + data['currencyCode']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.RequiredProperties = ["dateTime", "occupancy", "priceList", "currencyCode"]; - -/** - * The timestamp of the pricing information. - * @member {Number} dateTime - */ -PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.prototype['dateTime'] = undefined; - -/** - * The number of occupants for which the pricing applies. - * @member {Number} occupancy - */ -PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.prototype['occupancy'] = undefined; - -/** - * A mapping of number of days of stay to prices. - * @member {Object.} priceList - */ -PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.prototype['priceList'] = undefined; - -/** - * The currency code for the prices. - * @member {String} currencyCode - */ -PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.prototype['currencyCode'] = undefined; - - - - - - -export default PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProperty.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProperty.js deleted file mode 100644 index 2fa82cb..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProperty.js +++ /dev/null @@ -1,340 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import AvailablePropertiesInner1Geo from './AvailablePropertiesInner1Geo'; -import PropertiesPropertyIdGet200ResponsePropertyAwardListInner from './PropertiesPropertyIdGet200ResponsePropertyAwardListInner'; -import PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod from './PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod'; -import PropertiesPropertyIdGet200ResponsePropertyContactListInner from './PropertiesPropertyIdGet200ResponsePropertyContactListInner'; -import PropertiesPropertyIdGet200ResponsePropertyFacilityInfo from './PropertiesPropertyIdGet200ResponsePropertyFacilityInfo'; -import PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner from './PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner'; -import PropertiesPropertyIdGet200ResponsePropertyGuestInfo from './PropertiesPropertyIdGet200ResponsePropertyGuestInfo'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInner from './PropertiesPropertyIdGet200ResponsePropertyPolicyListInner'; -import PropertiesPropertyIdGet200ResponsePropertyPropertyInfo from './PropertiesPropertyIdGet200ResponsePropertyPropertyInfo'; -import PropertiesPropertyIdGet200ResponsePropertyRecordCreated from './PropertiesPropertyIdGet200ResponsePropertyRecordCreated'; -import PropertiesPropertyIdGet200ResponsePropertyRecordModified from './PropertiesPropertyIdGet200ResponsePropertyRecordModified'; -import PropertiesPropertyIdGet200ResponsePropertyServiceListInner from './PropertiesPropertyIdGet200ResponsePropertyServiceListInner'; - -/** - * The PropertiesPropertyIdGet200ResponseProperty model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProperty - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponseProperty { - /** - * Constructs a new PropertiesPropertyIdGet200ResponseProperty. - * An object containing all available base data for the requested property. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProperty - * @param code {String} The properties unique identifier. - * @param name {String} The properties name. - * @param recordCreated {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated} - * @param recordModified {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordModified} - * @param propertyInfo {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo} - * @param awardList {Array.} A list of the ratings available for this property. - * @param contactList {Array.} A contact with a profile type and a list of addresses - * @param mediaList {Array.} A list of media objects for the property. - * @param published {Boolean} Indicates whether the policy has been published or not. - * @param policyList {Array.} A list of policies associated with the property. - * @param serviceList {Array.} A list of objects each describing an available service, its pricing and its availability. - */ - constructor(code, name, recordCreated, recordModified, propertyInfo, awardList, contactList, mediaList, published, policyList, serviceList) { - - PropertiesPropertyIdGet200ResponseProperty.initialize(this, code, name, recordCreated, recordModified, propertyInfo, awardList, contactList, mediaList, published, policyList, serviceList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, code, name, recordCreated, recordModified, propertyInfo, awardList, contactList, mediaList, published, policyList, serviceList) { - obj['code'] = code; - obj['name'] = name; - obj['recordCreated'] = recordCreated; - obj['recordModified'] = recordModified; - obj['propertyInfo'] = propertyInfo; - obj['awardList'] = awardList; - obj['contactList'] = contactList; - obj['mediaList'] = mediaList; - obj['published'] = published; - obj['policyList'] = policyList; - obj['serviceList'] = serviceList; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponseProperty from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProperty} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProperty} The populated PropertiesPropertyIdGet200ResponseProperty instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponseProperty(); - - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('recordCreated')) { - obj['recordCreated'] = PropertiesPropertyIdGet200ResponsePropertyRecordCreated.constructFromObject(data['recordCreated']); - } - if (data.hasOwnProperty('recordModified')) { - obj['recordModified'] = PropertiesPropertyIdGet200ResponsePropertyRecordModified.constructFromObject(data['recordModified']); - } - if (data.hasOwnProperty('propertyInfo')) { - obj['propertyInfo'] = PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.constructFromObject(data['propertyInfo']); - } - if (data.hasOwnProperty('guestInfo')) { - obj['guestInfo'] = PropertiesPropertyIdGet200ResponsePropertyGuestInfo.constructFromObject(data['guestInfo']); - } - if (data.hasOwnProperty('awardList')) { - obj['awardList'] = ApiClient.convertToType(data['awardList'], [PropertiesPropertyIdGet200ResponsePropertyAwardListInner]); - } - if (data.hasOwnProperty('contactList')) { - obj['contactList'] = ApiClient.convertToType(data['contactList'], [PropertiesPropertyIdGet200ResponsePropertyContactListInner]); - } - if (data.hasOwnProperty('facilityInfo')) { - obj['facilityInfo'] = PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.constructFromObject(data['facilityInfo']); - } - if (data.hasOwnProperty('mediaList')) { - obj['mediaList'] = ApiClient.convertToType(data['mediaList'], [PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner]); - } - if (data.hasOwnProperty('geo')) { - obj['geo'] = ApiClient.convertToType(data['geo'], {'String': AvailablePropertiesInner1Geo}); - } - if (data.hasOwnProperty('published')) { - obj['published'] = ApiClient.convertToType(data['published'], 'Boolean'); - } - if (data.hasOwnProperty('policyList')) { - obj['policyList'] = ApiClient.convertToType(data['policyList'], [PropertiesPropertyIdGet200ResponsePropertyPolicyListInner]); - } - if (data.hasOwnProperty('uri')) { - obj['uri'] = ApiClient.convertToType(data['uri'], 'String'); - } - if (data.hasOwnProperty('cancellationGracePeriod')) { - obj['cancellationGracePeriod'] = PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.constructFromObject(data['cancellationGracePeriod']); - } - if (data.hasOwnProperty('serviceList')) { - obj['serviceList'] = ApiClient.convertToType(data['serviceList'], [PropertiesPropertyIdGet200ResponsePropertyServiceListInner]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponseProperty. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponseProperty. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponseProperty.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) { - throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']); - } - // ensure the json data is a string - if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { - throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); - } - // validate the optional field `recordCreated` - if (data['recordCreated']) { // data not null - PropertiesPropertyIdGet200ResponsePropertyRecordCreated.validateJSON(data['recordCreated']); - } - // validate the optional field `recordModified` - if (data['recordModified']) { // data not null - PropertiesPropertyIdGet200ResponsePropertyRecordModified.validateJSON(data['recordModified']); - } - // validate the optional field `propertyInfo` - if (data['propertyInfo']) { // data not null - PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.validateJSON(data['propertyInfo']); - } - // validate the optional field `guestInfo` - if (data['guestInfo']) { // data not null - PropertiesPropertyIdGet200ResponsePropertyGuestInfo.validateJSON(data['guestInfo']); - } - if (data['awardList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['awardList'])) { - throw new Error("Expected the field `awardList` to be an array in the JSON data but got " + data['awardList']); - } - // validate the optional field `awardList` (array) - for (const item of data['awardList']) { - PropertiesPropertyIdGet200ResponsePropertyAwardListInner.validateJsonObject(item); - }; - } - if (data['contactList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['contactList'])) { - throw new Error("Expected the field `contactList` to be an array in the JSON data but got " + data['contactList']); - } - // validate the optional field `contactList` (array) - for (const item of data['contactList']) { - PropertiesPropertyIdGet200ResponsePropertyContactListInner.validateJsonObject(item); - }; - } - // validate the optional field `facilityInfo` - if (data['facilityInfo']) { // data not null - PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.validateJSON(data['facilityInfo']); - } - if (data['mediaList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['mediaList'])) { - throw new Error("Expected the field `mediaList` to be an array in the JSON data but got " + data['mediaList']); - } - // validate the optional field `mediaList` (array) - for (const item of data['mediaList']) { - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.validateJsonObject(item); - }; - } - if (data['policyList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['policyList'])) { - throw new Error("Expected the field `policyList` to be an array in the JSON data but got " + data['policyList']); - } - // validate the optional field `policyList` (array) - for (const item of data['policyList']) { - PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.validateJsonObject(item); - }; - } - // ensure the json data is a string - if (data['uri'] && !(typeof data['uri'] === 'string' || data['uri'] instanceof String)) { - throw new Error("Expected the field `uri` to be a primitive type in the JSON string but got " + data['uri']); - } - // validate the optional field `cancellationGracePeriod` - if (data['cancellationGracePeriod']) { // data not null - PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.validateJSON(data['cancellationGracePeriod']); - } - if (data['serviceList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['serviceList'])) { - throw new Error("Expected the field `serviceList` to be an array in the JSON data but got " + data['serviceList']); - } - // validate the optional field `serviceList` (array) - for (const item of data['serviceList']) { - PropertiesPropertyIdGet200ResponsePropertyServiceListInner.validateJsonObject(item); - }; - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponseProperty.RequiredProperties = ["code", "name", "recordCreated", "recordModified", "propertyInfo", "awardList", "contactList", "mediaList", "published", "policyList", "serviceList"]; - -/** - * The properties unique identifier. - * @member {String} code - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['code'] = undefined; - -/** - * The properties name. - * @member {String} name - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['name'] = undefined; - -/** - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated} recordCreated - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['recordCreated'] = undefined; - -/** - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordModified} recordModified - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['recordModified'] = undefined; - -/** - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo} propertyInfo - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['propertyInfo'] = undefined; - -/** - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo} guestInfo - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['guestInfo'] = undefined; - -/** - * A list of the ratings available for this property. - * @member {Array.} awardList - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['awardList'] = undefined; - -/** - * A contact with a profile type and a list of addresses - * @member {Array.} contactList - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['contactList'] = undefined; - -/** - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo} facilityInfo - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['facilityInfo'] = undefined; - -/** - * A list of media objects for the property. - * @member {Array.} mediaList - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['mediaList'] = undefined; - -/** - * An object containing language codes as keys and objects describing the properties geographical location as values. - * @member {Object.} geo - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['geo'] = undefined; - -/** - * Indicates whether the policy has been published or not. - * @member {Boolean} published - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['published'] = undefined; - -/** - * A list of policies associated with the property. - * @member {Array.} policyList - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['policyList'] = undefined; - -/** - * A unique identifier for the accommodation. - * @member {String} uri - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['uri'] = undefined; - -/** - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod} cancellationGracePeriod - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['cancellationGracePeriod'] = undefined; - -/** - * A list of objects each describing an available service, its pricing and its availability. - * @member {Array.} serviceList - */ -PropertiesPropertyIdGet200ResponseProperty.prototype['serviceList'] = undefined; - - - - - - -export default PropertiesPropertyIdGet200ResponseProperty; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.js deleted file mode 100644 index d9bb8c1..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyAwardListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyAwardListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyAwardListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner - * @param provider {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.ProviderEnum} The source of this rating. Currently only star-rating is possible. - * @param rating {Number} The value of this rating - */ - constructor(provider, rating) { - - PropertiesPropertyIdGet200ResponsePropertyAwardListInner.initialize(this, provider, rating); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, provider, rating) { - obj['provider'] = provider; - obj['rating'] = rating; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyAwardListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner} The populated PropertiesPropertyIdGet200ResponsePropertyAwardListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyAwardListInner(); - - if (data.hasOwnProperty('provider')) { - obj['provider'] = ApiClient.convertToType(data['provider'], 'String'); - } - if (data.hasOwnProperty('rating')) { - obj['rating'] = ApiClient.convertToType(data['rating'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyAwardListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyAwardListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyAwardListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['provider'] && !(typeof data['provider'] === 'string' || data['provider'] instanceof String)) { - throw new Error("Expected the field `provider` to be a primitive type in the JSON string but got " + data['provider']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyAwardListInner.RequiredProperties = ["provider", "rating"]; - -/** - * The source of this rating. Currently only star-rating is possible. - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.ProviderEnum} provider - */ -PropertiesPropertyIdGet200ResponsePropertyAwardListInner.prototype['provider'] = undefined; - -/** - * The value of this rating - * @member {Number} rating - */ -PropertiesPropertyIdGet200ResponsePropertyAwardListInner.prototype['rating'] = undefined; - - - - - -/** - * Allowed values for the provider property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyAwardListInner['ProviderEnum'] = { - - /** - * value: "star-rating" - * @const - */ - "star-rating": "star-rating" -}; - - - -export default PropertiesPropertyIdGet200ResponsePropertyAwardListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.js deleted file mode 100644 index 5833a0b..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod. - * An object describing the cancellation grace periods. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod - * @param hoursAfterBooking {Number} The number of hours after booking that the cancellation grace period starts. - * @param weeksBeforeCheckIn {Number} The number of weeks before check-in that the cancellation grace period starts. - */ - constructor(hoursAfterBooking, weeksBeforeCheckIn) { - - PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.initialize(this, hoursAfterBooking, weeksBeforeCheckIn); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, hoursAfterBooking, weeksBeforeCheckIn) { - obj['hoursAfterBooking'] = hoursAfterBooking; - obj['weeksBeforeCheckIn'] = weeksBeforeCheckIn; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod} The populated PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod(); - - if (data.hasOwnProperty('hoursAfterBooking')) { - obj['hoursAfterBooking'] = ApiClient.convertToType(data['hoursAfterBooking'], 'Number'); - } - if (data.hasOwnProperty('weeksBeforeCheckIn')) { - obj['weeksBeforeCheckIn'] = ApiClient.convertToType(data['weeksBeforeCheckIn'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.RequiredProperties = ["hoursAfterBooking", "weeksBeforeCheckIn"]; - -/** - * The number of hours after booking that the cancellation grace period starts. - * @member {Number} hoursAfterBooking - */ -PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.prototype['hoursAfterBooking'] = undefined; - -/** - * The number of weeks before check-in that the cancellation grace period starts. - * @member {Number} weeksBeforeCheckIn - */ -PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.prototype['weeksBeforeCheckIn'] = undefined; - - - - - - -export default PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.js deleted file mode 100644 index d64b212..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.js +++ /dev/null @@ -1,187 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner from './PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyContactListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyContactListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyContactListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInner - * @param profileType {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.ProfileTypeEnum} The type of profile this contact belongs to. - * @param addressList {Array.} A list of addresses for this contact - */ - constructor(profileType, addressList) { - - PropertiesPropertyIdGet200ResponsePropertyContactListInner.initialize(this, profileType, addressList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, profileType, addressList) { - obj['profileType'] = profileType; - obj['addressList'] = addressList; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyContactListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInner} The populated PropertiesPropertyIdGet200ResponsePropertyContactListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyContactListInner(); - - if (data.hasOwnProperty('profileType')) { - obj['profileType'] = ApiClient.convertToType(data['profileType'], 'String'); - } - if (data.hasOwnProperty('addressList')) { - obj['addressList'] = ApiClient.convertToType(data['addressList'], [PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyContactListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyContactListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyContactListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['profileType'] && !(typeof data['profileType'] === 'string' || data['profileType'] instanceof String)) { - throw new Error("Expected the field `profileType` to be a primitive type in the JSON string but got " + data['profileType']); - } - if (data['addressList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['addressList'])) { - throw new Error("Expected the field `addressList` to be an array in the JSON data but got " + data['addressList']); - } - // validate the optional field `addressList` (array) - for (const item of data['addressList']) { - PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.validateJsonObject(item); - }; - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyContactListInner.RequiredProperties = ["profileType", "addressList"]; - -/** - * The type of profile this contact belongs to. - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.ProfileTypeEnum} profileType - */ -PropertiesPropertyIdGet200ResponsePropertyContactListInner.prototype['profileType'] = undefined; - -/** - * A list of addresses for this contact - * @member {Array.} addressList - */ -PropertiesPropertyIdGet200ResponsePropertyContactListInner.prototype['addressList'] = undefined; - - - - - -/** - * Allowed values for the profileType property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyContactListInner['ProfileTypeEnum'] = { - - /** - * value: "general" - * @const - */ - "general": "general", - - /** - * value: "contract" - * @const - */ - "contract": "contract", - - /** - * value: "reservations" - * @const - */ - "reservations": "reservations", - - /** - * value: "invoices" - * @const - */ - "invoices": "invoices", - - /** - * value: "availability" - * @const - */ - "availability": "availability", - - /** - * value: "site_content" - * @const - */ - "site_content": "site_content", - - /** - * value: "parity" - * @const - */ - "parity": "parity", - - /** - * value: "requests" - * @const - */ - "requests": "requests", - - /** - * value: "central_reservations" - * @const - */ - "central_reservations": "central_reservations", - - /** - * value: "physicallocation" - * @const - */ - "physicallocation": "physicallocation" -}; - - - -export default PropertiesPropertyIdGet200ResponsePropertyContactListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.js deleted file mode 100644 index a35dd88..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.js +++ /dev/null @@ -1,165 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner - * @param addressLine {String} The first line of the address for this contact - * @param cityName {String} The city of this contact - * @param postalCode {String} The postal code of this contact - */ - constructor(addressLine, cityName, postalCode) { - - PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.initialize(this, addressLine, cityName, postalCode); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, addressLine, cityName, postalCode) { - obj['addressLine'] = addressLine; - obj['cityName'] = cityName; - obj['postalCode'] = postalCode; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner} The populated PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner(); - - if (data.hasOwnProperty('addressLine')) { - obj['addressLine'] = ApiClient.convertToType(data['addressLine'], 'String'); - } - if (data.hasOwnProperty('propertyName')) { - obj['propertyName'] = ApiClient.convertToType(data['propertyName'], 'String'); - } - if (data.hasOwnProperty('cityName')) { - obj['cityName'] = ApiClient.convertToType(data['cityName'], 'String'); - } - if (data.hasOwnProperty('postalCode')) { - obj['postalCode'] = ApiClient.convertToType(data['postalCode'], 'String'); - } - if (data.hasOwnProperty('state')) { - obj['state'] = ApiClient.convertToType(data['state'], 'String'); - } - if (data.hasOwnProperty('countryCode')) { - obj['countryCode'] = ApiClient.convertToType(data['countryCode'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['addressLine'] && !(typeof data['addressLine'] === 'string' || data['addressLine'] instanceof String)) { - throw new Error("Expected the field `addressLine` to be a primitive type in the JSON string but got " + data['addressLine']); - } - // ensure the json data is a string - if (data['propertyName'] && !(typeof data['propertyName'] === 'string' || data['propertyName'] instanceof String)) { - throw new Error("Expected the field `propertyName` to be a primitive type in the JSON string but got " + data['propertyName']); - } - // ensure the json data is a string - if (data['cityName'] && !(typeof data['cityName'] === 'string' || data['cityName'] instanceof String)) { - throw new Error("Expected the field `cityName` to be a primitive type in the JSON string but got " + data['cityName']); - } - // ensure the json data is a string - if (data['postalCode'] && !(typeof data['postalCode'] === 'string' || data['postalCode'] instanceof String)) { - throw new Error("Expected the field `postalCode` to be a primitive type in the JSON string but got " + data['postalCode']); - } - // ensure the json data is a string - if (data['state'] && !(typeof data['state'] === 'string' || data['state'] instanceof String)) { - throw new Error("Expected the field `state` to be a primitive type in the JSON string but got " + data['state']); - } - // ensure the json data is a string - if (data['countryCode'] && !(typeof data['countryCode'] === 'string' || data['countryCode'] instanceof String)) { - throw new Error("Expected the field `countryCode` to be a primitive type in the JSON string but got " + data['countryCode']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.RequiredProperties = ["addressLine", "cityName", "postalCode"]; - -/** - * The first line of the address for this contact - * @member {String} addressLine - */ -PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.prototype['addressLine'] = undefined; - -/** - * The name of the property for this contact - * @member {String} propertyName - */ -PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.prototype['propertyName'] = undefined; - -/** - * The city of this contact - * @member {String} cityName - */ -PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.prototype['cityName'] = undefined; - -/** - * The postal code of this contact - * @member {String} postalCode - */ -PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.prototype['postalCode'] = undefined; - -/** - * The state/region of this contact - * @member {String} state - */ -PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.prototype['state'] = undefined; - -/** - * The country code of this contact - * @member {String} countryCode - */ -PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.prototype['countryCode'] = undefined; - - - - - - -export default PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.js deleted file mode 100644 index 8461547..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.js +++ /dev/null @@ -1,104 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner from './PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyFacilityInfo model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyFacilityInfo { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyFacilityInfo. - * Further information regarding the facility. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo - * @param guestRoomList {Array.} An array of objects representing a room in the property. - */ - constructor(guestRoomList) { - - PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.initialize(this, guestRoomList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, guestRoomList) { - obj['guestRoomList'] = guestRoomList; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyFacilityInfo from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo} The populated PropertiesPropertyIdGet200ResponsePropertyFacilityInfo instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyFacilityInfo(); - - if (data.hasOwnProperty('guestRoomList')) { - obj['guestRoomList'] = ApiClient.convertToType(data['guestRoomList'], [PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner]); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfo. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfo. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - if (data['guestRoomList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['guestRoomList'])) { - throw new Error("Expected the field `guestRoomList` to be an array in the JSON data but got " + data['guestRoomList']); - } - // validate the optional field `guestRoomList` (array) - for (const item of data['guestRoomList']) { - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.validateJsonObject(item); - }; - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.RequiredProperties = ["guestRoomList"]; - -/** - * An array of objects representing a room in the property. - * @member {Array.} guestRoomList - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.prototype['guestRoomList'] = undefined; - - - - - - -export default PropertiesPropertyIdGet200ResponsePropertyFacilityInfo; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.js deleted file mode 100644 index 390bf3e..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.js +++ /dev/null @@ -1,361 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner from './PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner'; -import PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner from './PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner'; -import PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner from './PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner. - * An object representing a room in the property. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner - * @param isActive {Boolean} Indicates whether the room is active or not. - * @param roomId {String} The unique identifier for the room. - * @param name {String} The name of the room. - * @param mediaList {Array.} A list of media objects for the room. - * @param roomTypeCode {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.RoomTypeCodeEnum} The unit and room type code.

See also in the appendix.

- * @param isNonSmoking {Boolean} Indicates whether the room is designated as non-smoking. - * @param amenityList {Array.} A list of amenities provided in the room. - * @param messageList {Array.} A list of messages associated with the room. - * @param maxOccupancy {Number} The maximum occupancy of the room. - * @param maxAdultOccupancy {Number} The maximum number of adults that can occupy the room. - * @param maxChildOccupancy {Number} The maximum number of children that can occupy the room. - */ - constructor(isActive, roomId, name, mediaList, roomTypeCode, isNonSmoking, amenityList, messageList, maxOccupancy, maxAdultOccupancy, maxChildOccupancy) { - - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.initialize(this, isActive, roomId, name, mediaList, roomTypeCode, isNonSmoking, amenityList, messageList, maxOccupancy, maxAdultOccupancy, maxChildOccupancy); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, isActive, roomId, name, mediaList, roomTypeCode, isNonSmoking, amenityList, messageList, maxOccupancy, maxAdultOccupancy, maxChildOccupancy) { - obj['isActive'] = isActive; - obj['roomId'] = roomId; - obj['name'] = name; - obj['mediaList'] = mediaList; - obj['roomTypeCode'] = roomTypeCode; - obj['isNonSmoking'] = isNonSmoking; - obj['amenityList'] = amenityList; - obj['messageList'] = messageList; - obj['maxOccupancy'] = maxOccupancy; - obj['maxAdultOccupancy'] = maxAdultOccupancy; - obj['maxChildOccupancy'] = maxChildOccupancy; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner} The populated PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); - - if (data.hasOwnProperty('isActive')) { - obj['isActive'] = ApiClient.convertToType(data['isActive'], 'Boolean'); - } - if (data.hasOwnProperty('roomId')) { - obj['roomId'] = ApiClient.convertToType(data['roomId'], 'String'); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - if (data.hasOwnProperty('mediaList')) { - obj['mediaList'] = ApiClient.convertToType(data['mediaList'], [PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner]); - } - if (data.hasOwnProperty('roomTypeCode')) { - obj['roomTypeCode'] = ApiClient.convertToType(data['roomTypeCode'], 'Number'); - } - if (data.hasOwnProperty('isNonSmoking')) { - obj['isNonSmoking'] = ApiClient.convertToType(data['isNonSmoking'], 'Boolean'); - } - if (data.hasOwnProperty('amenityList')) { - obj['amenityList'] = ApiClient.convertToType(data['amenityList'], [PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner]); - } - if (data.hasOwnProperty('messageList')) { - obj['messageList'] = ApiClient.convertToType(data['messageList'], [PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner]); - } - if (data.hasOwnProperty('maxOccupancy')) { - obj['maxOccupancy'] = ApiClient.convertToType(data['maxOccupancy'], 'Number'); - } - if (data.hasOwnProperty('maxAdultOccupancy')) { - obj['maxAdultOccupancy'] = ApiClient.convertToType(data['maxAdultOccupancy'], 'Number'); - } - if (data.hasOwnProperty('maxChildOccupancy')) { - obj['maxChildOccupancy'] = ApiClient.convertToType(data['maxChildOccupancy'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['roomId'] && !(typeof data['roomId'] === 'string' || data['roomId'] instanceof String)) { - throw new Error("Expected the field `roomId` to be a primitive type in the JSON string but got " + data['roomId']); - } - // ensure the json data is a string - if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { - throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); - } - if (data['mediaList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['mediaList'])) { - throw new Error("Expected the field `mediaList` to be an array in the JSON data but got " + data['mediaList']); - } - // validate the optional field `mediaList` (array) - for (const item of data['mediaList']) { - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.validateJsonObject(item); - }; - } - if (data['amenityList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['amenityList'])) { - throw new Error("Expected the field `amenityList` to be an array in the JSON data but got " + data['amenityList']); - } - // validate the optional field `amenityList` (array) - for (const item of data['amenityList']) { - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.validateJsonObject(item); - }; - } - if (data['messageList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['messageList'])) { - throw new Error("Expected the field `messageList` to be an array in the JSON data but got " + data['messageList']); - } - // validate the optional field `messageList` (array) - for (const item of data['messageList']) { - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.validateJsonObject(item); - }; - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.RequiredProperties = ["isActive", "roomId", "name", "mediaList", "roomTypeCode", "isNonSmoking", "amenityList", "messageList", "maxOccupancy", "maxAdultOccupancy", "maxChildOccupancy"]; - -/** - * Indicates whether the room is active or not. - * @member {Boolean} isActive - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.prototype['isActive'] = undefined; - -/** - * The unique identifier for the room. - * @member {String} roomId - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.prototype['roomId'] = undefined; - -/** - * The name of the room. - * @member {String} name - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.prototype['name'] = undefined; - -/** - * A list of media objects for the room. - * @member {Array.} mediaList - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.prototype['mediaList'] = undefined; - -/** - * The unit and room type code.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.RoomTypeCodeEnum} roomTypeCode - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.prototype['roomTypeCode'] = undefined; - -/** - * Indicates whether the room is designated as non-smoking. - * @member {Boolean} isNonSmoking - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.prototype['isNonSmoking'] = undefined; - -/** - * A list of amenities provided in the room. - * @member {Array.} amenityList - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.prototype['amenityList'] = undefined; - -/** - * A list of messages associated with the room. - * @member {Array.} messageList - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.prototype['messageList'] = undefined; - -/** - * The maximum occupancy of the room. - * @member {Number} maxOccupancy - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.prototype['maxOccupancy'] = undefined; - -/** - * The maximum number of adults that can occupy the room. - * @member {Number} maxAdultOccupancy - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.prototype['maxAdultOccupancy'] = undefined; - -/** - * The maximum number of children that can occupy the room. - * @member {Number} maxChildOccupancy - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.prototype['maxChildOccupancy'] = undefined; - - - - - -/** - * Allowed values for the roomTypeCode property. - * @enum {Number} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner['RoomTypeCodeEnum'] = { - - /** - * value: 1 - * @const - */ - "1": 1, - - /** - * value: 4 - * @const - */ - "4": 4, - - /** - * value: 5 - * @const - */ - "5": 5, - - /** - * value: 7 - * @const - */ - "7": 7, - - /** - * value: 8 - * @const - */ - "8": 8, - - /** - * value: 9 - * @const - */ - "9": 9, - - /** - * value: 10 - * @const - */ - "10": 10, - - /** - * value: 12 - * @const - */ - "12": 12, - - /** - * value: 13 - * @const - */ - "13": 13, - - /** - * value: 24 - * @const - */ - "24": 24, - - /** - * value: 25 - * @const - */ - "25": 25, - - /** - * value: 26 - * @const - */ - "26": 26, - - /** - * value: 27 - * @const - */ - "27": 27, - - /** - * value: 28 - * @const - */ - "28": 28, - - /** - * value: 29 - * @const - */ - "29": 29, - - /** - * value: 31 - * @const - */ - "31": 31, - - /** - * value: 32 - * @const - */ - "32": 32, - - /** - * value: 33 - * @const - */ - "33": 33 -}; - - - -export default PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.js deleted file mode 100644 index 96cdb91..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.js +++ /dev/null @@ -1,348 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner - * @param languageCode {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.LanguageCodeEnum} 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.

- * @param text {String} The message text. - */ - constructor(languageCode, text) { - - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.initialize(this, languageCode, text); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, languageCode, text) { - obj['languageCode'] = languageCode; - obj['text'] = text; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner} The populated PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner(); - - if (data.hasOwnProperty('languageCode')) { - obj['languageCode'] = ApiClient.convertToType(data['languageCode'], 'String'); - } - if (data.hasOwnProperty('text')) { - obj['text'] = ApiClient.convertToType(data['text'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['languageCode'] && !(typeof data['languageCode'] === 'string' || data['languageCode'] instanceof String)) { - throw new Error("Expected the field `languageCode` to be a primitive type in the JSON string but got " + data['languageCode']); - } - // ensure the json data is a string - if (data['text'] && !(typeof data['text'] === 'string' || data['text'] instanceof String)) { - throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data['text']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.RequiredProperties = ["languageCode", "text"]; - -/** - * 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.

- * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.LanguageCodeEnum} languageCode - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.prototype['languageCode'] = undefined; - -/** - * The message text. - * @member {String} text - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.prototype['text'] = undefined; - - - - - -/** - * Allowed values for the languageCode property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner['LanguageCodeEnum'] = { - - /** - * value: "af" - * @const - */ - "af": "af", - - /** - * value: "ar" - * @const - */ - "ar": "ar", - - /** - * value: "bg" - * @const - */ - "bg": "bg", - - /** - * value: "ca" - * @const - */ - "ca": "ca", - - /** - * value: "cs" - * @const - */ - "cs": "cs", - - /** - * value: "da" - * @const - */ - "da": "da", - - /** - * value: "de" - * @const - */ - "de": "de", - - /** - * value: "el" - * @const - */ - "el": "el", - - /** - * value: "en" - * @const - */ - "en": "en", - - /** - * value: "es" - * @const - */ - "es": "es", - - /** - * value: "et" - * @const - */ - "et": "et", - - /** - * value: "fi" - * @const - */ - "fi": "fi", - - /** - * value: "fr" - * @const - */ - "fr": "fr", - - /** - * value: "he" - * @const - */ - "he": "he", - - /** - * value: "hi" - * @const - */ - "hi": "hi", - - /** - * value: "hr" - * @const - */ - "hr": "hr", - - /** - * value: "hu" - * @const - */ - "hu": "hu", - - /** - * value: "id" - * @const - */ - "id": "id", - - /** - * value: "is" - * @const - */ - "is": "is", - - /** - * value: "it" - * @const - */ - "it": "it", - - /** - * value: "ja" - * @const - */ - "ja": "ja", - - /** - * value: "ko" - * @const - */ - "ko": "ko", - - /** - * value: "lt" - * @const - */ - "lt": "lt", - - /** - * value: "lv" - * @const - */ - "lv": "lv", - - /** - * value: "nl" - * @const - */ - "nl": "nl", - - /** - * value: "no" - * @const - */ - "no": "no", - - /** - * value: "pl" - * @const - */ - "pl": "pl", - - /** - * value: "pt" - * @const - */ - "pt": "pt", - - /** - * value: "ro" - * @const - */ - "ro": "ro", - - /** - * value: "ru" - * @const - */ - "ru": "ru", - - /** - * value: "sk" - * @const - */ - "sk": "sk", - - /** - * value: "sl" - * @const - */ - "sl": "sl", - - /** - * value: "sr" - * @const - */ - "sr": "sr", - - /** - * value: "sv" - * @const - */ - "sv": "sv", - - /** - * value: "th" - * @const - */ - "th": "th", - - /** - * value: "tr" - * @const - */ - "tr": "tr", - - /** - * value: "vi" - * @const - */ - "vi": "vi", - - /** - * value: "zh" - * @const - */ - "zh": "zh" -}; - - - -export default PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.js deleted file mode 100644 index bed5289..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.js +++ /dev/null @@ -1,273 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner from './PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner from './PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy from './PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy from './PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner from './PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyPolicyListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyPolicyListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyPolicyListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner - * @param checkInTime {Number} Check-in time (unix timestamp in ms). - * @param checkOutTime {Number} Check-out time (unix timestamp in ms). - * @param cancellationPolicyList {Array.} List of cancellation policies. - * @param advanceBookingMin {Number} The minimum number of days in advance a booking must be made - * @param advanceBookingMax {Number} The maximum number of days in advance a booking can be made - * @param taxPolicyList {Array.} A list of taxes and their policies. - * @param feePolicyList {Array.} A list of fees and their policies. - */ - constructor(checkInTime, checkOutTime, cancellationPolicyList, advanceBookingMin, advanceBookingMax, taxPolicyList, feePolicyList) { - - PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.initialize(this, checkInTime, checkOutTime, cancellationPolicyList, advanceBookingMin, advanceBookingMax, taxPolicyList, feePolicyList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, checkInTime, checkOutTime, cancellationPolicyList, advanceBookingMin, advanceBookingMax, taxPolicyList, feePolicyList) { - obj['checkInTime'] = checkInTime; - obj['checkOutTime'] = checkOutTime; - obj['cancellationPolicyList'] = cancellationPolicyList; - obj['advanceBookingMin'] = advanceBookingMin; - obj['advanceBookingMax'] = advanceBookingMax; - obj['taxPolicyList'] = taxPolicyList; - obj['feePolicyList'] = feePolicyList; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyPolicyListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner} The populated PropertiesPropertyIdGet200ResponsePropertyPolicyListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); - - if (data.hasOwnProperty('checkInTime')) { - obj['checkInTime'] = ApiClient.convertToType(data['checkInTime'], 'Number'); - } - if (data.hasOwnProperty('checkOutTime')) { - obj['checkOutTime'] = ApiClient.convertToType(data['checkOutTime'], 'Number'); - } - if (data.hasOwnProperty('totalGuestCount')) { - obj['totalGuestCount'] = ApiClient.convertToType(data['totalGuestCount'], 'Number'); - } - if (data.hasOwnProperty('cancellationPolicyList')) { - obj['cancellationPolicyList'] = ApiClient.convertToType(data['cancellationPolicyList'], [PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner]); - } - if (data.hasOwnProperty('advanceBookingMin')) { - obj['advanceBookingMin'] = ApiClient.convertToType(data['advanceBookingMin'], 'Number'); - } - if (data.hasOwnProperty('advanceBookingMax')) { - obj['advanceBookingMax'] = ApiClient.convertToType(data['advanceBookingMax'], 'Number'); - } - if (data.hasOwnProperty('petsPolicy')) { - obj['petsPolicy'] = PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.constructFromObject(data['petsPolicy']); - } - if (data.hasOwnProperty('prepaymentPolicy')) { - obj['prepaymentPolicy'] = ApiClient.convertToType(data['prepaymentPolicy'], 'String'); - } - if (data.hasOwnProperty('guaranteePolicy')) { - obj['guaranteePolicy'] = PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.constructFromObject(data['guaranteePolicy']); - } - if (data.hasOwnProperty('taxPolicyList')) { - obj['taxPolicyList'] = ApiClient.convertToType(data['taxPolicyList'], [PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner]); - } - if (data.hasOwnProperty('feePolicyList')) { - obj['feePolicyList'] = ApiClient.convertToType(data['feePolicyList'], [PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner]); - } - if (data.hasOwnProperty('name')) { - obj['name'] = ApiClient.convertToType(data['name'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - if (data['cancellationPolicyList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['cancellationPolicyList'])) { - throw new Error("Expected the field `cancellationPolicyList` to be an array in the JSON data but got " + data['cancellationPolicyList']); - } - // validate the optional field `cancellationPolicyList` (array) - for (const item of data['cancellationPolicyList']) { - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.validateJsonObject(item); - }; - } - // validate the optional field `petsPolicy` - if (data['petsPolicy']) { // data not null - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.validateJSON(data['petsPolicy']); - } - // ensure the json data is a string - if (data['prepaymentPolicy'] && !(typeof data['prepaymentPolicy'] === 'string' || data['prepaymentPolicy'] instanceof String)) { - throw new Error("Expected the field `prepaymentPolicy` to be a primitive type in the JSON string but got " + data['prepaymentPolicy']); - } - // validate the optional field `guaranteePolicy` - if (data['guaranteePolicy']) { // data not null - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.validateJSON(data['guaranteePolicy']); - } - if (data['taxPolicyList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['taxPolicyList'])) { - throw new Error("Expected the field `taxPolicyList` to be an array in the JSON data but got " + data['taxPolicyList']); - } - // validate the optional field `taxPolicyList` (array) - for (const item of data['taxPolicyList']) { - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.validateJsonObject(item); - }; - } - if (data['feePolicyList']) { // data not null - // ensure the json data is an array - if (!Array.isArray(data['feePolicyList'])) { - throw new Error("Expected the field `feePolicyList` to be an array in the JSON data but got " + data['feePolicyList']); - } - // validate the optional field `feePolicyList` (array) - for (const item of data['feePolicyList']) { - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.validateJsonObject(item); - }; - } - // ensure the json data is a string - if (data['name'] && !(typeof data['name'] === 'string' || data['name'] instanceof String)) { - throw new Error("Expected the field `name` to be a primitive type in the JSON string but got " + data['name']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.RequiredProperties = ["checkInTime", "checkOutTime", "cancellationPolicyList", "advanceBookingMin", "advanceBookingMax", "taxPolicyList", "feePolicyList"]; - -/** - * Check-in time (unix timestamp in ms). - * @member {Number} checkInTime - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.prototype['checkInTime'] = undefined; - -/** - * Check-out time (unix timestamp in ms). - * @member {Number} checkOutTime - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.prototype['checkOutTime'] = undefined; - -/** - * The maximum number of guests allowed. - * @member {Number} totalGuestCount - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.prototype['totalGuestCount'] = undefined; - -/** - * List of cancellation policies. - * @member {Array.} cancellationPolicyList - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.prototype['cancellationPolicyList'] = undefined; - -/** - * The minimum number of days in advance a booking must be made - * @member {Number} advanceBookingMin - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.prototype['advanceBookingMin'] = undefined; - -/** - * The maximum number of days in advance a booking can be made - * @member {Number} advanceBookingMax - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.prototype['advanceBookingMax'] = undefined; - -/** - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy} petsPolicy - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.prototype['petsPolicy'] = undefined; - -/** - * The type of the prepayment policy. - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.PrepaymentPolicyEnum} prepaymentPolicy - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.prototype['prepaymentPolicy'] = undefined; - -/** - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy} guaranteePolicy - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.prototype['guaranteePolicy'] = undefined; - -/** - * A list of taxes and their policies. - * @member {Array.} taxPolicyList - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.prototype['taxPolicyList'] = undefined; - -/** - * A list of fees and their policies. - * @member {Array.} feePolicyList - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.prototype['feePolicyList'] = undefined; - -/** - * The name of this policy. - * @member {String} name - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.prototype['name'] = undefined; - - - - - -/** - * Allowed values for the prepaymentPolicy property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInner['PrepaymentPolicyEnum'] = { - - /** - * value: "after_cancellation_fee_begins" - * @const - */ - "cancellation_fee_begins": "after_cancellation_fee_begins", - - /** - * value: "after_reservation_is_made" - * @const - */ - "reservation_is_made": "after_reservation_is_made" -}; - - - -export default PropertiesPropertyIdGet200ResponsePropertyPolicyListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.js deleted file mode 100644 index ab3be81..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.js +++ /dev/null @@ -1,162 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner - * @param percentAfterReservation {Number} Percentage of refund after reservation. - * @param nightsAfterReservation {Number} Number of nights after reservation. - * @param deadlineDays {Number} Deadline in days. - * @param deadlineHours {Number} Deadline in hours. - * @param percentAfterDeadline {Number} Percentage of refund after deadline. - * @param nightsAfterDeadline {Number} Number of nights after deadline. - * @param noShowPolicy {String} No-show policy - */ - constructor(percentAfterReservation, nightsAfterReservation, deadlineDays, deadlineHours, percentAfterDeadline, nightsAfterDeadline, noShowPolicy) { - - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.initialize(this, percentAfterReservation, nightsAfterReservation, deadlineDays, deadlineHours, percentAfterDeadline, nightsAfterDeadline, noShowPolicy); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, percentAfterReservation, nightsAfterReservation, deadlineDays, deadlineHours, percentAfterDeadline, nightsAfterDeadline, noShowPolicy) { - obj['percentAfterReservation'] = percentAfterReservation; - obj['nightsAfterReservation'] = nightsAfterReservation; - obj['deadlineDays'] = deadlineDays; - obj['deadlineHours'] = deadlineHours; - obj['percentAfterDeadline'] = percentAfterDeadline; - obj['nightsAfterDeadline'] = nightsAfterDeadline; - obj['noShowPolicy'] = noShowPolicy; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner} The populated PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner(); - - if (data.hasOwnProperty('percentAfterReservation')) { - obj['percentAfterReservation'] = ApiClient.convertToType(data['percentAfterReservation'], 'Number'); - } - if (data.hasOwnProperty('nightsAfterReservation')) { - obj['nightsAfterReservation'] = ApiClient.convertToType(data['nightsAfterReservation'], 'Number'); - } - if (data.hasOwnProperty('deadlineDays')) { - obj['deadlineDays'] = ApiClient.convertToType(data['deadlineDays'], 'Number'); - } - if (data.hasOwnProperty('deadlineHours')) { - obj['deadlineHours'] = ApiClient.convertToType(data['deadlineHours'], 'Number'); - } - if (data.hasOwnProperty('percentAfterDeadline')) { - obj['percentAfterDeadline'] = ApiClient.convertToType(data['percentAfterDeadline'], 'Number'); - } - if (data.hasOwnProperty('nightsAfterDeadline')) { - obj['nightsAfterDeadline'] = ApiClient.convertToType(data['nightsAfterDeadline'], 'Number'); - } - if (data.hasOwnProperty('noShowPolicy')) { - obj['noShowPolicy'] = ApiClient.convertToType(data['noShowPolicy'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['noShowPolicy'] && !(typeof data['noShowPolicy'] === 'string' || data['noShowPolicy'] instanceof String)) { - throw new Error("Expected the field `noShowPolicy` to be a primitive type in the JSON string but got " + data['noShowPolicy']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.RequiredProperties = ["percentAfterReservation", "nightsAfterReservation", "deadlineDays", "deadlineHours", "percentAfterDeadline", "nightsAfterDeadline", "noShowPolicy"]; - -/** - * Percentage of refund after reservation. - * @member {Number} percentAfterReservation - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.prototype['percentAfterReservation'] = undefined; - -/** - * Number of nights after reservation. - * @member {Number} nightsAfterReservation - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.prototype['nightsAfterReservation'] = undefined; - -/** - * Deadline in days. - * @member {Number} deadlineDays - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.prototype['deadlineDays'] = undefined; - -/** - * Deadline in hours. - * @member {Number} deadlineHours - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.prototype['deadlineHours'] = undefined; - -/** - * Percentage of refund after deadline. - * @member {Number} percentAfterDeadline - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.prototype['percentAfterDeadline'] = undefined; - -/** - * Number of nights after deadline. - * @member {Number} nightsAfterDeadline - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.prototype['nightsAfterDeadline'] = undefined; - -/** - * No-show policy - * @member {String} noShowPolicy - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.prototype['noShowPolicy'] = undefined; - - - - - - -export default PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.js deleted file mode 100644 index 23e7957..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.js +++ /dev/null @@ -1,1042 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner - * @param typeCode {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.TypeCodeEnum} The code that represents the type of fee.

See also in the appendix.

- * @param chargeType {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.ChargeTypeEnum} The type of charge. - * @param chargeFrequencyCode {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.ChargeFrequencyCodeEnum} The code that represents the frequency of charge.

See also in the appendix.

- * @param currencyCode {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.CurrencyCodeEnum} The currency code of the currency in that the charge is applied.

See also in the appendix.

- * @param conditionList {Array.} A list of conditions for the tax. Is empty if chargeType is not conditional. - */ - constructor(typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList) { - - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.initialize(this, typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList) { - obj['typeCode'] = typeCode; - obj['chargeType'] = chargeType; - obj['chargeFrequencyCode'] = chargeFrequencyCode; - obj['currencyCode'] = currencyCode; - obj['conditionList'] = conditionList; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner} The populated PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner(); - - if (data.hasOwnProperty('typeCode')) { - obj['typeCode'] = ApiClient.convertToType(data['typeCode'], 'Number'); - } - if (data.hasOwnProperty('percent')) { - obj['percent'] = ApiClient.convertToType(data['percent'], 'Number'); - } - if (data.hasOwnProperty('chargeType')) { - obj['chargeType'] = ApiClient.convertToType(data['chargeType'], 'String'); - } - if (data.hasOwnProperty('chargeFrequencyCode')) { - obj['chargeFrequencyCode'] = ApiClient.convertToType(data['chargeFrequencyCode'], 'Number'); - } - if (data.hasOwnProperty('currencyCode')) { - obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); - } - if (data.hasOwnProperty('conditionList')) { - obj['conditionList'] = ApiClient.convertToType(data['conditionList'], ['String']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['chargeType'] && !(typeof data['chargeType'] === 'string' || data['chargeType'] instanceof String)) { - throw new Error("Expected the field `chargeType` to be a primitive type in the JSON string but got " + data['chargeType']); - } - // ensure the json data is a string - if (data['currencyCode'] && !(typeof data['currencyCode'] === 'string' || data['currencyCode'] instanceof String)) { - throw new Error("Expected the field `currencyCode` to be a primitive type in the JSON string but got " + data['currencyCode']); - } - // ensure the json data is an array - if (!Array.isArray(data['conditionList'])) { - throw new Error("Expected the field `conditionList` to be an array in the JSON data but got " + data['conditionList']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.RequiredProperties = ["typeCode", "chargeType", "chargeFrequencyCode", "currencyCode", "conditionList"]; - -/** - * The code that represents the type of fee.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.TypeCodeEnum} typeCode - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.prototype['typeCode'] = undefined; - -/** - * The charged percentage if applicable. - * @member {Number} percent - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.prototype['percent'] = undefined; - -/** - * The type of charge. - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.ChargeTypeEnum} chargeType - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.prototype['chargeType'] = undefined; - -/** - * The code that represents the frequency of charge.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.ChargeFrequencyCodeEnum} chargeFrequencyCode - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.prototype['chargeFrequencyCode'] = undefined; - -/** - * The currency code of the currency in that the charge is applied.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.CurrencyCodeEnum} currencyCode - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.prototype['currencyCode'] = undefined; - -/** - * A list of conditions for the tax. Is empty if chargeType is not conditional. - * @member {Array.} conditionList - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.prototype['conditionList'] = undefined; - - - - - -/** - * Allowed values for the typeCode property. - * @enum {Number} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner['TypeCodeEnum'] = { - - /** - * value: 2 - * @const - */ - "2": 2, - - /** - * value: 9 - * @const - */ - "9": 9, - - /** - * value: 11 - * @const - */ - "11": 11, - - /** - * value: 12 - * @const - */ - "12": 12, - - /** - * value: 14 - * @const - */ - "14": 14, - - /** - * value: 16 - * @const - */ - "16": 16, - - /** - * value: 27 - * @const - */ - "27": 27, - - /** - * value: 29 - * @const - */ - "29": 29, - - /** - * value: 31 - * @const - */ - "31": 31, - - /** - * value: 32 - * @const - */ - "32": 32, - - /** - * value: 33 - * @const - */ - "33": 33, - - /** - * value: 34 - * @const - */ - "34": 34, - - /** - * value: 37 - * @const - */ - "37": 37, - - /** - * value: 38 - * @const - */ - "38": 38, - - /** - * value: 40 - * @const - */ - "40": 40, - - /** - * value: 41 - * @const - */ - "41": 41, - - /** - * value: 42 - * @const - */ - "42": 42, - - /** - * value: 44 - * @const - */ - "44": 44, - - /** - * value: 45 - * @const - */ - "45": 45, - - /** - * value: 47 - * @const - */ - "47": 47, - - /** - * value: 51 - * @const - */ - "51": 51, - - /** - * value: 52 - * @const - */ - "52": 52, - - /** - * value: 53 - * @const - */ - "53": 53, - - /** - * value: 54 - * @const - */ - "54": 54, - - /** - * value: 55 - * @const - */ - "55": 55, - - /** - * value: 56 - * @const - */ - "56": 56, - - /** - * value: 5000 - * @const - */ - "5000": 5000, - - /** - * value: 5003 - * @const - */ - "5003": 5003, - - /** - * value: 5005 - * @const - */ - "5005": 5005, - - /** - * value: 5006 - * @const - */ - "5006": 5006, - - /** - * value: 5009 - * @const - */ - "5009": 5009, - - /** - * value: 5010 - * @const - */ - "5010": 5010, - - /** - * value: 5011 - * @const - */ - "5011": 5011, - - /** - * value: 5012 - * @const - */ - "5012": 5012, - - /** - * value: 5013 - * @const - */ - "5013": 5013, - - /** - * value: 5014 - * @const - */ - "5014": 5014, - - /** - * value: 5015 - * @const - */ - "5015": 5015, - - /** - * value: 5016 - * @const - */ - "5016": 5016, - - /** - * value: 5017 - * @const - */ - "5017": 5017, - - /** - * value: 5018 - * @const - */ - "5018": 5018, - - /** - * value: 5019 - * @const - */ - "5019": 5019, - - /** - * value: 5020 - * @const - */ - "5020": 5020, - - /** - * value: 5021 - * @const - */ - "5021": 5021, - - /** - * value: 5022 - * @const - */ - "5022": 5022, - - /** - * value: 5023 - * @const - */ - "5023": 5023, - - /** - * value: 5024 - * @const - */ - "5024": 5024, - - /** - * value: 5025 - * @const - */ - "5025": 5025, - - /** - * value: 5026 - * @const - */ - "5026": 5026, - - /** - * value: 5027 - * @const - */ - "5027": 5027, - - /** - * value: 5028 - * @const - */ - "5028": 5028, - - /** - * value: 5029 - * @const - */ - "5029": 5029, - - /** - * value: 5030 - * @const - */ - "5030": 5030, - - /** - * value: 5031 - * @const - */ - "5031": 5031, - - /** - * value: 5032 - * @const - */ - "5032": 5032, - - /** - * value: 5033 - * @const - */ - "5033": 5033, - - /** - * value: 5035 - * @const - */ - "5035": 5035, - - /** - * value: 5036 - * @const - */ - "5036": 5036, - - /** - * value: 20001 - * @const - */ - "20001": 20001 -}; - - -/** - * Allowed values for the chargeType property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner['ChargeTypeEnum'] = { - - /** - * value: "included" - * @const - */ - "included": "included", - - /** - * value: "excluded" - * @const - */ - "excluded": "excluded", - - /** - * value: "conditional" - * @const - */ - "conditional": "conditional" -}; - - -/** - * Allowed values for the chargeFrequencyCode property. - * @enum {Number} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner['ChargeFrequencyCodeEnum'] = { - - /** - * value: 1 - * @const - */ - "1": 1, - - /** - * value: 2 - * @const - */ - "2": 2, - - /** - * value: 7 - * @const - */ - "7": 7, - - /** - * value: 10 - * @const - */ - "10": 10, - - /** - * value: 12 - * @const - */ - "12": 12, - - /** - * value: 17 - * @const - */ - "17": 17, - - /** - * value: 19 - * @const - */ - "19": 19, - - /** - * value: 20 - * @const - */ - "20": 20, - - /** - * value: 21 - * @const - */ - "21": 21, - - /** - * value: 25 - * @const - */ - "25": 25, - - /** - * value: 31 - * @const - */ - "31": 31, - - /** - * value: 5000 - * @const - */ - "5000": 5000, - - /** - * value: 5001 - * @const - */ - "5001": 5001, - - /** - * value: 5002 - * @const - */ - "5002": 5002, - - /** - * value: 5010 - * @const - */ - "5010": 5010, - - /** - * value: 5011 - * @const - */ - "5011": 5011, - - /** - * value: 5012 - * @const - */ - "5012": 5012, - - /** - * value: 5013 - * @const - */ - "5013": 5013, - - /** - * value: 5014 - * @const - */ - "5014": 5014, - - /** - * value: 5015 - * @const - */ - "5015": 5015, - - /** - * value: 5016 - * @const - */ - "5016": 5016, - - /** - * value: 5017 - * @const - */ - "5017": 5017, - - /** - * value: 90010 - * @const - */ - "90010": 90010, - - /** - * value: 90011 - * @const - */ - "90011": 90011, - - /** - * value: 90012 - * @const - */ - "90012": 90012, - - /** - * value: 90013 - * @const - */ - "90013": 90013 -}; - - -/** - * Allowed values for the currencyCode property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner['CurrencyCodeEnum'] = { - - /** - * value: "AED" - * @const - */ - "AED": "AED", - - /** - * value: "ARS" - * @const - */ - "ARS": "ARS", - - /** - * value: "AUD" - * @const - */ - "AUD": "AUD", - - /** - * value: "AZN" - * @const - */ - "AZN": "AZN", - - /** - * value: "BGN" - * @const - */ - "BGN": "BGN", - - /** - * value: "BHD" - * @const - */ - "BHD": "BHD", - - /** - * value: "BRL" - * @const - */ - "BRL": "BRL", - - /** - * value: "CAD" - * @const - */ - "CAD": "CAD", - - /** - * value: "CHF" - * @const - */ - "CHF": "CHF", - - /** - * value: "CLP" - * @const - */ - "CLP": "CLP", - - /** - * value: "CNY" - * @const - */ - "CNY": "CNY", - - /** - * value: "COP" - * @const - */ - "COP": "COP", - - /** - * value: "CZK" - * @const - */ - "CZK": "CZK", - - /** - * value: "DKK" - * @const - */ - "DKK": "DKK", - - /** - * value: "EGP" - * @const - */ - "EGP": "EGP", - - /** - * value: "EUR" - * @const - */ - "EUR": "EUR", - - /** - * value: "FJD" - * @const - */ - "FJD": "FJD", - - /** - * value: "GBP" - * @const - */ - "GBP": "GBP", - - /** - * value: "GEL" - * @const - */ - "GEL": "GEL", - - /** - * value: "HKD" - * @const - */ - "HKD": "HKD", - - /** - * value: "HUF" - * @const - */ - "HUF": "HUF", - - /** - * value: "IDR" - * @const - */ - "IDR": "IDR", - - /** - * value: "ILS" - * @const - */ - "ILS": "ILS", - - /** - * value: "INR" - * @const - */ - "INR": "INR", - - /** - * value: "JOD" - * @const - */ - "JOD": "JOD", - - /** - * value: "JPY" - * @const - */ - "JPY": "JPY", - - /** - * value: "KRW" - * @const - */ - "KRW": "KRW", - - /** - * value: "KWD" - * @const - */ - "KWD": "KWD", - - /** - * value: "KZT" - * @const - */ - "KZT": "KZT", - - /** - * value: "MDL" - * @const - */ - "MDL": "MDL", - - /** - * value: "MXN" - * @const - */ - "MXN": "MXN", - - /** - * value: "MYR" - * @const - */ - "MYR": "MYR", - - /** - * value: "NAD" - * @const - */ - "NAD": "NAD", - - /** - * value: "NOK" - * @const - */ - "NOK": "NOK", - - /** - * value: "NZD" - * @const - */ - "NZD": "NZD", - - /** - * value: "OMR" - * @const - */ - "OMR": "OMR", - - /** - * value: "PLN" - * @const - */ - "PLN": "PLN", - - /** - * value: "QAR" - * @const - */ - "QAR": "QAR", - - /** - * value: "RON" - * @const - */ - "RON": "RON", - - /** - * value: "RUB" - * @const - */ - "RUB": "RUB", - - /** - * value: "SAR" - * @const - */ - "SAR": "SAR", - - /** - * value: "SEK" - * @const - */ - "SEK": "SEK", - - /** - * value: "SGD" - * @const - */ - "SGD": "SGD", - - /** - * value: "THB" - * @const - */ - "THB": "THB", - - /** - * value: "TRY" - * @const - */ - "TRY": "TRY", - - /** - * value: "TWD" - * @const - */ - "TWD": "TWD", - - /** - * value: "UAH" - * @const - */ - "UAH": "UAH", - - /** - * value: "USD" - * @const - */ - "USD": "USD", - - /** - * value: "XOF" - * @const - */ - "XOF": "XOF", - - /** - * value: "ZAR" - * @const - */ - "ZAR": "ZAR" -}; - - -/** - * Allowed values for the conditionList property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner['ConditionListEnum'] = { - - /** - * value: "guest_brings_pet" - * @const - */ - "brings_pet": "guest_brings_pet", - - /** - * value: "guest_doesnt_clean_before_checkout" - * @const - */ - "doesnt_clean_before_checkout": "guest_doesnt_clean_before_checkout", - - /** - * value: "guest_smokes" - * @const - */ - "smokes": "guest_smokes" -}; - - - -export default PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.js deleted file mode 100644 index 793657f..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.js +++ /dev/null @@ -1,115 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy. - * Contains information about the pets policy of the property - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy - * @param allowed {Boolean} Indicates if pets are allowed in the property. - * @param byArrangement {Boolean} Indicates if pets are allowed by arrangement. - * @param freeOfCharge {Boolean} Indicates if pets are allowed without any additional charge. - */ - constructor(allowed, byArrangement, freeOfCharge) { - - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.initialize(this, allowed, byArrangement, freeOfCharge); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, allowed, byArrangement, freeOfCharge) { - obj['allowed'] = allowed; - obj['byArrangement'] = byArrangement; - obj['freeOfCharge'] = freeOfCharge; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy} The populated PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy(); - - if (data.hasOwnProperty('allowed')) { - obj['allowed'] = ApiClient.convertToType(data['allowed'], 'Boolean'); - } - if (data.hasOwnProperty('byArrangement')) { - obj['byArrangement'] = ApiClient.convertToType(data['byArrangement'], 'Boolean'); - } - if (data.hasOwnProperty('freeOfCharge')) { - obj['freeOfCharge'] = ApiClient.convertToType(data['freeOfCharge'], 'Boolean'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.RequiredProperties = ["allowed", "byArrangement", "freeOfCharge"]; - -/** - * Indicates if pets are allowed in the property. - * @member {Boolean} allowed - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.prototype['allowed'] = undefined; - -/** - * Indicates if pets are allowed by arrangement. - * @member {Boolean} byArrangement - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.prototype['byArrangement'] = undefined; - -/** - * Indicates if pets are allowed without any additional charge. - * @member {Boolean} freeOfCharge - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.prototype['freeOfCharge'] = undefined; - - - - - - -export default PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.js deleted file mode 100644 index 91d5b94..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.js +++ /dev/null @@ -1,844 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner - * @param typeCode {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.TypeCodeEnum} The code that represents the type of tax.

See also in the appendix.

- * @param chargeType {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.ChargeTypeEnum} The type of charge. - * @param chargeFrequencyCode {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.ChargeFrequencyCodeEnum} The code that represents the frequency of charge.

See also in the appendix.

- * @param currencyCode {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.CurrencyCodeEnum} The currency code of the currency in that the charge is applied.

See also in the appendix.

- * @param conditionList {Array.} A list of conditions for the tax. Is empty if chargeType is not conditional. - */ - constructor(typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList) { - - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.initialize(this, typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, typeCode, chargeType, chargeFrequencyCode, currencyCode, conditionList) { - obj['typeCode'] = typeCode; - obj['chargeType'] = chargeType; - obj['chargeFrequencyCode'] = chargeFrequencyCode; - obj['currencyCode'] = currencyCode; - obj['conditionList'] = conditionList; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner} The populated PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner(); - - if (data.hasOwnProperty('typeCode')) { - obj['typeCode'] = ApiClient.convertToType(data['typeCode'], 'Number'); - } - if (data.hasOwnProperty('percent')) { - obj['percent'] = ApiClient.convertToType(data['percent'], 'Number'); - } - if (data.hasOwnProperty('chargeType')) { - obj['chargeType'] = ApiClient.convertToType(data['chargeType'], 'String'); - } - if (data.hasOwnProperty('chargeFrequencyCode')) { - obj['chargeFrequencyCode'] = ApiClient.convertToType(data['chargeFrequencyCode'], 'Number'); - } - if (data.hasOwnProperty('currencyCode')) { - obj['currencyCode'] = ApiClient.convertToType(data['currencyCode'], 'String'); - } - if (data.hasOwnProperty('conditionList')) { - obj['conditionList'] = ApiClient.convertToType(data['conditionList'], ['String']); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['chargeType'] && !(typeof data['chargeType'] === 'string' || data['chargeType'] instanceof String)) { - throw new Error("Expected the field `chargeType` to be a primitive type in the JSON string but got " + data['chargeType']); - } - // ensure the json data is a string - if (data['currencyCode'] && !(typeof data['currencyCode'] === 'string' || data['currencyCode'] instanceof String)) { - throw new Error("Expected the field `currencyCode` to be a primitive type in the JSON string but got " + data['currencyCode']); - } - // ensure the json data is an array - if (!Array.isArray(data['conditionList'])) { - throw new Error("Expected the field `conditionList` to be an array in the JSON data but got " + data['conditionList']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.RequiredProperties = ["typeCode", "chargeType", "chargeFrequencyCode", "currencyCode", "conditionList"]; - -/** - * The code that represents the type of tax.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.TypeCodeEnum} typeCode - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.prototype['typeCode'] = undefined; - -/** - * The charged percentage if applicable. - * @member {Number} percent - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.prototype['percent'] = undefined; - -/** - * The type of charge. - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.ChargeTypeEnum} chargeType - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.prototype['chargeType'] = undefined; - -/** - * The code that represents the frequency of charge.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.ChargeFrequencyCodeEnum} chargeFrequencyCode - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.prototype['chargeFrequencyCode'] = undefined; - -/** - * The currency code of the currency in that the charge is applied.

See also in the appendix.

- * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.CurrencyCodeEnum} currencyCode - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.prototype['currencyCode'] = undefined; - -/** - * A list of conditions for the tax. Is empty if chargeType is not conditional. - * @member {Array.} conditionList - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.prototype['conditionList'] = undefined; - - - - - -/** - * Allowed values for the typeCode property. - * @enum {Number} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner['TypeCodeEnum'] = { - - /** - * value: 1 - * @const - */ - "1": 1, - - /** - * value: 3 - * @const - */ - "3": 3, - - /** - * value: 4 - * @const - */ - "4": 4, - - /** - * value: 5 - * @const - */ - "5": 5, - - /** - * value: 6 - * @const - */ - "6": 6, - - /** - * value: 7 - * @const - */ - "7": 7, - - /** - * value: 8 - * @const - */ - "8": 8, - - /** - * value: 10 - * @const - */ - "10": 10, - - /** - * value: 13 - * @const - */ - "13": 13, - - /** - * value: 15 - * @const - */ - "15": 15, - - /** - * value: 17 - * @const - */ - "17": 17, - - /** - * value: 18 - * @const - */ - "18": 18, - - /** - * value: 19 - * @const - */ - "19": 19, - - /** - * value: 28 - * @const - */ - "28": 28, - - /** - * value: 30 - * @const - */ - "30": 30, - - /** - * value: 35 - * @const - */ - "35": 35, - - /** - * value: 36 - * @const - */ - "36": 36, - - /** - * value: 39 - * @const - */ - "39": 39, - - /** - * value: 43 - * @const - */ - "43": 43, - - /** - * value: 46 - * @const - */ - "46": 46, - - /** - * value: 5001 - * @const - */ - "5001": 5001, - - /** - * value: 5002 - * @const - */ - "5002": 5002, - - /** - * value: 5004 - * @const - */ - "5004": 5004, - - /** - * value: 5007 - * @const - */ - "5007": 5007, - - /** - * value: 5008 - * @const - */ - "5008": 5008 -}; - - -/** - * Allowed values for the chargeType property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner['ChargeTypeEnum'] = { - - /** - * value: "included" - * @const - */ - "included": "included", - - /** - * value: "excluded" - * @const - */ - "excluded": "excluded", - - /** - * value: "conditional" - * @const - */ - "conditional": "conditional" -}; - - -/** - * Allowed values for the chargeFrequencyCode property. - * @enum {Number} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner['ChargeFrequencyCodeEnum'] = { - - /** - * value: 1 - * @const - */ - "1": 1, - - /** - * value: 2 - * @const - */ - "2": 2, - - /** - * value: 7 - * @const - */ - "7": 7, - - /** - * value: 10 - * @const - */ - "10": 10, - - /** - * value: 12 - * @const - */ - "12": 12, - - /** - * value: 17 - * @const - */ - "17": 17, - - /** - * value: 19 - * @const - */ - "19": 19, - - /** - * value: 20 - * @const - */ - "20": 20, - - /** - * value: 21 - * @const - */ - "21": 21, - - /** - * value: 25 - * @const - */ - "25": 25, - - /** - * value: 31 - * @const - */ - "31": 31, - - /** - * value: 5000 - * @const - */ - "5000": 5000, - - /** - * value: 5001 - * @const - */ - "5001": 5001, - - /** - * value: 5002 - * @const - */ - "5002": 5002, - - /** - * value: 5010 - * @const - */ - "5010": 5010, - - /** - * value: 5011 - * @const - */ - "5011": 5011, - - /** - * value: 5012 - * @const - */ - "5012": 5012, - - /** - * value: 5013 - * @const - */ - "5013": 5013, - - /** - * value: 5014 - * @const - */ - "5014": 5014, - - /** - * value: 5015 - * @const - */ - "5015": 5015, - - /** - * value: 5016 - * @const - */ - "5016": 5016, - - /** - * value: 5017 - * @const - */ - "5017": 5017, - - /** - * value: 90010 - * @const - */ - "90010": 90010, - - /** - * value: 90011 - * @const - */ - "90011": 90011, - - /** - * value: 90012 - * @const - */ - "90012": 90012, - - /** - * value: 90013 - * @const - */ - "90013": 90013 -}; - - -/** - * Allowed values for the currencyCode property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner['CurrencyCodeEnum'] = { - - /** - * value: "AED" - * @const - */ - "AED": "AED", - - /** - * value: "ARS" - * @const - */ - "ARS": "ARS", - - /** - * value: "AUD" - * @const - */ - "AUD": "AUD", - - /** - * value: "AZN" - * @const - */ - "AZN": "AZN", - - /** - * value: "BGN" - * @const - */ - "BGN": "BGN", - - /** - * value: "BHD" - * @const - */ - "BHD": "BHD", - - /** - * value: "BRL" - * @const - */ - "BRL": "BRL", - - /** - * value: "CAD" - * @const - */ - "CAD": "CAD", - - /** - * value: "CHF" - * @const - */ - "CHF": "CHF", - - /** - * value: "CLP" - * @const - */ - "CLP": "CLP", - - /** - * value: "CNY" - * @const - */ - "CNY": "CNY", - - /** - * value: "COP" - * @const - */ - "COP": "COP", - - /** - * value: "CZK" - * @const - */ - "CZK": "CZK", - - /** - * value: "DKK" - * @const - */ - "DKK": "DKK", - - /** - * value: "EGP" - * @const - */ - "EGP": "EGP", - - /** - * value: "EUR" - * @const - */ - "EUR": "EUR", - - /** - * value: "FJD" - * @const - */ - "FJD": "FJD", - - /** - * value: "GBP" - * @const - */ - "GBP": "GBP", - - /** - * value: "GEL" - * @const - */ - "GEL": "GEL", - - /** - * value: "HKD" - * @const - */ - "HKD": "HKD", - - /** - * value: "HUF" - * @const - */ - "HUF": "HUF", - - /** - * value: "IDR" - * @const - */ - "IDR": "IDR", - - /** - * value: "ILS" - * @const - */ - "ILS": "ILS", - - /** - * value: "INR" - * @const - */ - "INR": "INR", - - /** - * value: "JOD" - * @const - */ - "JOD": "JOD", - - /** - * value: "JPY" - * @const - */ - "JPY": "JPY", - - /** - * value: "KRW" - * @const - */ - "KRW": "KRW", - - /** - * value: "KWD" - * @const - */ - "KWD": "KWD", - - /** - * value: "KZT" - * @const - */ - "KZT": "KZT", - - /** - * value: "MDL" - * @const - */ - "MDL": "MDL", - - /** - * value: "MXN" - * @const - */ - "MXN": "MXN", - - /** - * value: "MYR" - * @const - */ - "MYR": "MYR", - - /** - * value: "NAD" - * @const - */ - "NAD": "NAD", - - /** - * value: "NOK" - * @const - */ - "NOK": "NOK", - - /** - * value: "NZD" - * @const - */ - "NZD": "NZD", - - /** - * value: "OMR" - * @const - */ - "OMR": "OMR", - - /** - * value: "PLN" - * @const - */ - "PLN": "PLN", - - /** - * value: "QAR" - * @const - */ - "QAR": "QAR", - - /** - * value: "RON" - * @const - */ - "RON": "RON", - - /** - * value: "RUB" - * @const - */ - "RUB": "RUB", - - /** - * value: "SAR" - * @const - */ - "SAR": "SAR", - - /** - * value: "SEK" - * @const - */ - "SEK": "SEK", - - /** - * value: "SGD" - * @const - */ - "SGD": "SGD", - - /** - * value: "THB" - * @const - */ - "THB": "THB", - - /** - * value: "TRY" - * @const - */ - "TRY": "TRY", - - /** - * value: "TWD" - * @const - */ - "TWD": "TWD", - - /** - * value: "UAH" - * @const - */ - "UAH": "UAH", - - /** - * value: "USD" - * @const - */ - "USD": "USD", - - /** - * value: "XOF" - * @const - */ - "XOF": "XOF", - - /** - * value: "ZAR" - * @const - */ - "ZAR": "ZAR" -}; - - -/** - * Allowed values for the conditionList property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner['ConditionListEnum'] = { - - /** - * value: "guest_brings_pet" - * @const - */ - "brings_pet": "guest_brings_pet", - - /** - * value: "guest_doesnt_clean_before_checkout" - * @const - */ - "doesnt_clean_before_checkout": "guest_doesnt_clean_before_checkout", - - /** - * value: "guest_smokes" - * @const - */ - "smokes": "guest_smokes" -}; - - - -export default PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.js deleted file mode 100644 index 6a07e31..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.js +++ /dev/null @@ -1,303 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner - * @param code {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.CodeEnum} The code of the payment option. - * @param type {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.TypeEnum} The type of the payment option. - */ - constructor(code, type) { - - PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.initialize(this, code, type); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, code, type) { - obj['code'] = code; - obj['type'] = type; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner} The populated PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner(); - - if (data.hasOwnProperty('code')) { - obj['code'] = ApiClient.convertToType(data['code'], 'String'); - } - if (data.hasOwnProperty('type')) { - obj['type'] = ApiClient.convertToType(data['type'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['code'] && !(typeof data['code'] === 'string' || data['code'] instanceof String)) { - throw new Error("Expected the field `code` to be a primitive type in the JSON string but got " + data['code']); - } - // ensure the json data is a string - if (data['type'] && !(typeof data['type'] === 'string' || data['type'] instanceof String)) { - throw new Error("Expected the field `type` to be a primitive type in the JSON string but got " + data['type']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.RequiredProperties = ["code", "type"]; - -/** - * The code of the payment option. - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.CodeEnum} code - */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.prototype['code'] = undefined; - -/** - * The type of the payment option. - * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.TypeEnum} type - */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.prototype['type'] = undefined; - - - - - -/** - * Allowed values for the code property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner['CodeEnum'] = { - - /** - * value: "amex" - * @const - */ - "amex": "amex", - - /** - * value: "visa" - * @const - */ - "visa": "visa", - - /** - * value: "mastercard" - * @const - */ - "mastercard": "mastercard", - - /** - * value: "diners" - * @const - */ - "diners": "diners", - - /** - * value: "jcb" - * @const - */ - "jcb": "jcb", - - /** - * value: "maestro" - * @const - */ - "maestro": "maestro", - - /** - * value: "discover" - * @const - */ - "discover": "discover", - - /** - * value: "bancontact" - * @const - */ - "bancontact": "bancontact", - - /** - * value: "cashonly" - * @const - */ - "cashonly": "cashonly", - - /** - * value: "bankcard" - * @const - */ - "bankcard": "bankcard", - - /** - * value: "cartasi" - * @const - */ - "cartasi": "cartasi", - - /** - * value: "argencard" - * @const - */ - "argencard": "argencard", - - /** - * value: "cabal" - * @const - */ - "cabal": "cabal", - - /** - * value: "redcompra" - * @const - */ - "redcompra": "redcompra", - - /** - * value: "other" - * @const - */ - "other": "other", - - /** - * value: "greatwall" - * @const - */ - "greatwall": "greatwall", - - /** - * value: "dragonpay" - * @const - */ - "dragonpay": "dragonpay", - - /** - * value: "eftpos" - * @const - */ - "eftpos": "eftpos", - - /** - * value: "hipercard" - * @const - */ - "hipercard": "hipercard", - - /** - * value: "unionpaydebit" - * @const - */ - "unionpaydebit": "unionpaydebit", - - /** - * value: "eccard" - * @const - */ - "eccard": "eccard", - - /** - * value: "bccard" - * @const - */ - "bccard": "bccard", - - /** - * value: "mastercardvirtual" - * @const - */ - "mastercardvirtual": "mastercardvirtual", - - /** - * value: "mastercardgoogle" - * @const - */ - "mastercardgoogle": "mastercardgoogle", - - /** - * value: "unionpaycredit" - * @const - */ - "unionpaycredit": "unionpaycredit" -}; - - -/** - * Allowed values for the type property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner['TypeEnum'] = { - - /** - * value: "creditcard" - * @const - */ - "creditcard": "creditcard", - - /** - * value: "debitcard" - * @const - */ - "debitcard": "debitcard", - - /** - * value: "paymentservice" - * @const - */ - "paymentservice": "paymentservice", - - /** - * value: "cash" - * @const - */ - "cash": "cash" -}; - - - -export default PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.js deleted file mode 100644 index 2d58ac5..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.js +++ /dev/null @@ -1,348 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner - * @param languageCode {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.LanguageCodeEnum} 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.

- * @param text {String} The text of this message. - */ - constructor(languageCode, text) { - - PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.initialize(this, languageCode, text); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, languageCode, text) { - obj['languageCode'] = languageCode; - obj['text'] = text; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner} The populated PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner(); - - if (data.hasOwnProperty('languageCode')) { - obj['languageCode'] = ApiClient.convertToType(data['languageCode'], 'String'); - } - if (data.hasOwnProperty('text')) { - obj['text'] = ApiClient.convertToType(data['text'], 'String'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['languageCode'] && !(typeof data['languageCode'] === 'string' || data['languageCode'] instanceof String)) { - throw new Error("Expected the field `languageCode` to be a primitive type in the JSON string but got " + data['languageCode']); - } - // ensure the json data is a string - if (data['text'] && !(typeof data['text'] === 'string' || data['text'] instanceof String)) { - throw new Error("Expected the field `text` to be a primitive type in the JSON string but got " + data['text']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.RequiredProperties = ["languageCode", "text"]; - -/** - * 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.

- * @member {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.LanguageCodeEnum} languageCode - */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.prototype['languageCode'] = undefined; - -/** - * The text of this message. - * @member {String} text - */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.prototype['text'] = undefined; - - - - - -/** - * Allowed values for the languageCode property. - * @enum {String} - * @readonly - */ -PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner['LanguageCodeEnum'] = { - - /** - * value: "af" - * @const - */ - "af": "af", - - /** - * value: "ar" - * @const - */ - "ar": "ar", - - /** - * value: "bg" - * @const - */ - "bg": "bg", - - /** - * value: "ca" - * @const - */ - "ca": "ca", - - /** - * value: "cs" - * @const - */ - "cs": "cs", - - /** - * value: "da" - * @const - */ - "da": "da", - - /** - * value: "de" - * @const - */ - "de": "de", - - /** - * value: "el" - * @const - */ - "el": "el", - - /** - * value: "en" - * @const - */ - "en": "en", - - /** - * value: "es" - * @const - */ - "es": "es", - - /** - * value: "et" - * @const - */ - "et": "et", - - /** - * value: "fi" - * @const - */ - "fi": "fi", - - /** - * value: "fr" - * @const - */ - "fr": "fr", - - /** - * value: "he" - * @const - */ - "he": "he", - - /** - * value: "hi" - * @const - */ - "hi": "hi", - - /** - * value: "hr" - * @const - */ - "hr": "hr", - - /** - * value: "hu" - * @const - */ - "hu": "hu", - - /** - * value: "id" - * @const - */ - "id": "id", - - /** - * value: "is" - * @const - */ - "is": "is", - - /** - * value: "it" - * @const - */ - "it": "it", - - /** - * value: "ja" - * @const - */ - "ja": "ja", - - /** - * value: "ko" - * @const - */ - "ko": "ko", - - /** - * value: "lt" - * @const - */ - "lt": "lt", - - /** - * value: "lv" - * @const - */ - "lv": "lv", - - /** - * value: "nl" - * @const - */ - "nl": "nl", - - /** - * value: "no" - * @const - */ - "no": "no", - - /** - * value: "pl" - * @const - */ - "pl": "pl", - - /** - * value: "pt" - * @const - */ - "pt": "pt", - - /** - * value: "ro" - * @const - */ - "ro": "ro", - - /** - * value: "ru" - * @const - */ - "ru": "ru", - - /** - * value: "sk" - * @const - */ - "sk": "sk", - - /** - * value: "sl" - * @const - */ - "sl": "sl", - - /** - * value: "sr" - * @const - */ - "sr": "sr", - - /** - * value: "sv" - * @const - */ - "sv": "sv", - - /** - * value: "th" - * @const - */ - "th": "th", - - /** - * value: "tr" - * @const - */ - "tr": "tr", - - /** - * value: "vi" - * @const - */ - "vi": "vi", - - /** - * value: "zh" - * @const - */ - "zh": "zh" -}; - - - -export default PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.js deleted file mode 100644 index 6aab7ed..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.js +++ /dev/null @@ -1,136 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyRecordCreated model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyRecordCreated { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyRecordCreated. - * Information regarding the creation of the property object. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated - * @param user {String} The user that performed the edit action on the property. - * @param tenant {String} The tenant for which the user performed the edit action on the property. - * @param time {Number} The timestamp at which the edit action was performed. - */ - constructor(user, tenant, time) { - - PropertiesPropertyIdGet200ResponsePropertyRecordCreated.initialize(this, user, tenant, time); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, user, tenant, time) { - obj['user'] = user; - obj['tenant'] = tenant; - obj['time'] = time; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyRecordCreated from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated} The populated PropertiesPropertyIdGet200ResponsePropertyRecordCreated instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyRecordCreated(); - - if (data.hasOwnProperty('user')) { - obj['user'] = ApiClient.convertToType(data['user'], 'String'); - } - if (data.hasOwnProperty('tenant')) { - obj['tenant'] = ApiClient.convertToType(data['tenant'], 'String'); - } - if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String'); - } - if (data.hasOwnProperty('time')) { - obj['time'] = ApiClient.convertToType(data['time'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyRecordCreated. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyRecordCreated. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyRecordCreated.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['user'] && !(typeof data['user'] === 'string' || data['user'] instanceof String)) { - throw new Error("Expected the field `user` to be a primitive type in the JSON string but got " + data['user']); - } - // ensure the json data is a string - if (data['tenant'] && !(typeof data['tenant'] === 'string' || data['tenant'] instanceof String)) { - throw new Error("Expected the field `tenant` to be a primitive type in the JSON string but got " + data['tenant']); - } - // ensure the json data is a string - if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) { - throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyRecordCreated.RequiredProperties = ["user", "tenant", "time"]; - -/** - * The user that performed the edit action on the property. - * @member {String} user - */ -PropertiesPropertyIdGet200ResponsePropertyRecordCreated.prototype['user'] = undefined; - -/** - * The tenant for which the user performed the edit action on the property. - * @member {String} tenant - */ -PropertiesPropertyIdGet200ResponsePropertyRecordCreated.prototype['tenant'] = undefined; - -/** - * The role of the user that performed the edit action on the property. - * @member {String} role - */ -PropertiesPropertyIdGet200ResponsePropertyRecordCreated.prototype['role'] = undefined; - -/** - * The timestamp at which the edit action was performed. - * @member {Number} time - */ -PropertiesPropertyIdGet200ResponsePropertyRecordCreated.prototype['time'] = undefined; - - - - - - -export default PropertiesPropertyIdGet200ResponsePropertyRecordCreated; - diff --git a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.js b/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.js deleted file mode 100644 index d214757..0000000 --- a/src/com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.js +++ /dev/null @@ -1,136 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -import ApiClient from '../ApiClient'; - -/** - * The PropertiesPropertyIdGet200ResponsePropertyRecordModified model module. - * @module com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordModified - * @version 1.1.5 - */ -class PropertiesPropertyIdGet200ResponsePropertyRecordModified { - /** - * Constructs a new PropertiesPropertyIdGet200ResponsePropertyRecordModified. - * Information regarding the last modification of the property object. - * @alias module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordModified - * @param user {String} The user that performed the edit action on the property. - * @param tenant {String} The tenant for which the user performed the edit action on the property. - * @param time {Number} The timestamp at which the edit action was performed. - */ - constructor(user, tenant, time) { - - PropertiesPropertyIdGet200ResponsePropertyRecordModified.initialize(this, user, tenant, time); - } - - /** - * Initializes the fields of this object. - * This method is used by the constructors of any subclasses, in order to implement multiple inheritance (mix-ins). - * Only for internal use. - */ - static initialize(obj, user, tenant, time) { - obj['user'] = user; - obj['tenant'] = tenant; - obj['time'] = time; - } - - /** - * Constructs a PropertiesPropertyIdGet200ResponsePropertyRecordModified from a plain JavaScript object, optionally creating a new instance. - * Copies all relevant properties from data to obj if supplied or a new instance if not. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @param {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordModified} obj Optional instance to populate. - * @return {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordModified} The populated PropertiesPropertyIdGet200ResponsePropertyRecordModified instance. - */ - static constructFromObject(data, obj) { - if (data) { - obj = obj || new PropertiesPropertyIdGet200ResponsePropertyRecordModified(); - - if (data.hasOwnProperty('user')) { - obj['user'] = ApiClient.convertToType(data['user'], 'String'); - } - if (data.hasOwnProperty('tenant')) { - obj['tenant'] = ApiClient.convertToType(data['tenant'], 'String'); - } - if (data.hasOwnProperty('role')) { - obj['role'] = ApiClient.convertToType(data['role'], 'String'); - } - if (data.hasOwnProperty('time')) { - obj['time'] = ApiClient.convertToType(data['time'], 'Number'); - } - } - return obj; - } - - /** - * Validates the JSON data with respect to PropertiesPropertyIdGet200ResponsePropertyRecordModified. - * @param {Object} data The plain JavaScript object bearing properties of interest. - * @return {boolean} to indicate whether the JSON data is valid with respect to PropertiesPropertyIdGet200ResponsePropertyRecordModified. - */ - static validateJSON(data) { - // check to make sure all required properties are present in the JSON string - for (const property of PropertiesPropertyIdGet200ResponsePropertyRecordModified.RequiredProperties) { - if (!data[property]) { - throw new Error("The required field `" + property + "` is not found in the JSON data: " + JSON.stringify(data)); - } - } - // ensure the json data is a string - if (data['user'] && !(typeof data['user'] === 'string' || data['user'] instanceof String)) { - throw new Error("Expected the field `user` to be a primitive type in the JSON string but got " + data['user']); - } - // ensure the json data is a string - if (data['tenant'] && !(typeof data['tenant'] === 'string' || data['tenant'] instanceof String)) { - throw new Error("Expected the field `tenant` to be a primitive type in the JSON string but got " + data['tenant']); - } - // ensure the json data is a string - if (data['role'] && !(typeof data['role'] === 'string' || data['role'] instanceof String)) { - throw new Error("Expected the field `role` to be a primitive type in the JSON string but got " + data['role']); - } - - return true; - } - - -} - -PropertiesPropertyIdGet200ResponsePropertyRecordModified.RequiredProperties = ["user", "tenant", "time"]; - -/** - * The user that performed the edit action on the property. - * @member {String} user - */ -PropertiesPropertyIdGet200ResponsePropertyRecordModified.prototype['user'] = undefined; - -/** - * The tenant for which the user performed the edit action on the property. - * @member {String} tenant - */ -PropertiesPropertyIdGet200ResponsePropertyRecordModified.prototype['tenant'] = undefined; - -/** - * The role of the user that performed the edit action on the property. - * @member {String} role - */ -PropertiesPropertyIdGet200ResponsePropertyRecordModified.prototype['role'] = undefined; - -/** - * The timestamp at which the edit action was performed. - * @member {Number} time - */ -PropertiesPropertyIdGet200ResponsePropertyRecordModified.prototype['time'] = undefined; - - - - - - -export default PropertiesPropertyIdGet200ResponsePropertyRecordModified; - diff --git a/src/com.lodgea/index.js b/src/com.lodgea/index.js index 06afad5..0fdee37 100644 --- a/src/com.lodgea/index.js +++ b/src/com.lodgea/index.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,58 +13,65 @@ import ApiClient from './ApiClient'; -import AvailabilitySearchPost200Response from './com.lodgea.model/AvailabilitySearchPost200Response'; -import AvailabilitySearchPostRequest from './com.lodgea.model/AvailabilitySearchPostRequest'; -import AvailablePropertiesInner from './com.lodgea.model/AvailablePropertiesInner'; -import AvailablePropertiesInner1 from './com.lodgea.model/AvailablePropertiesInner1'; -import AvailablePropertiesInner1AttractionListInner from './com.lodgea.model/AvailablePropertiesInner1AttractionListInner'; -import AvailablePropertiesInner1AttractionListInnerDistance from './com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance'; -import AvailablePropertiesInner1Geo from './com.lodgea.model/AvailablePropertiesInner1Geo'; -import AvailablePropertiesInner1GeoLocation from './com.lodgea.model/AvailablePropertiesInner1GeoLocation'; -import AvailablePropertiesInner1LowestPrice from './com.lodgea.model/AvailablePropertiesInner1LowestPrice'; -import AvailablePropertiesInner1MediaListInner from './com.lodgea.model/AvailablePropertiesInner1MediaListInner'; -import LocationSearchPost200Response from './com.lodgea.model/LocationSearchPost200Response'; -import LocationSearchPost400Response from './com.lodgea.model/LocationSearchPost400Response'; -import LocationSearchPost400ResponseValidationErrorsInner from './com.lodgea.model/LocationSearchPost400ResponseValidationErrorsInner'; -import LocationSearchPostRequest from './com.lodgea.model/LocationSearchPostRequest'; -import PropertiesGet200Response from './com.lodgea.model/PropertiesGet200Response'; -import PropertiesGet200ResponseListInner from './com.lodgea.model/PropertiesGet200ResponseListInner'; -import PropertiesPropertyIdAvailabilityGet200Response from './com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response'; -import PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner from './com.lodgea.model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner'; -import PropertiesPropertyIdGet200Response from './com.lodgea.model/PropertiesPropertyIdGet200Response'; -import PropertiesPropertyIdGet200ResponseProductListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInner'; -import PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo from './com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo'; -import PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner'; -import PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner'; -import PropertiesPropertyIdGet200ResponseProperty from './com.lodgea.model/PropertiesPropertyIdGet200ResponseProperty'; -import PropertiesPropertyIdGet200ResponsePropertyAwardListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner'; -import PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod'; -import PropertiesPropertyIdGet200ResponsePropertyContactListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInner'; -import PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner'; -import PropertiesPropertyIdGet200ResponsePropertyFacilityInfo from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo'; -import PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner'; -import PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner'; -import PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner'; -import PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner'; -import PropertiesPropertyIdGet200ResponsePropertyGuestInfo from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy'; -import PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner'; -import PropertiesPropertyIdGet200ResponsePropertyPropertyInfo from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo'; -import PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner'; -import PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner'; -import PropertiesPropertyIdGet200ResponsePropertyRecordCreated from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated'; -import PropertiesPropertyIdGet200ResponsePropertyRecordModified from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordModified'; -import PropertiesPropertyIdGet200ResponsePropertyServiceListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner'; -import PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner from './com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner'; +import InlineObject from './com.lodgea.model/InlineObject'; +import InlineObject1 from './com.lodgea.model/InlineObject1'; +import InlineResponse200 from './com.lodgea.model/InlineResponse200'; +import InlineResponse2001 from './com.lodgea.model/InlineResponse2001'; +import InlineResponse2001AttractionList from './com.lodgea.model/InlineResponse2001AttractionList'; +import InlineResponse2001Distance from './com.lodgea.model/InlineResponse2001Distance'; +import InlineResponse2001Geo from './com.lodgea.model/InlineResponse2001Geo'; +import InlineResponse2001GeoLocation from './com.lodgea.model/InlineResponse2001GeoLocation'; +import InlineResponse2001List from './com.lodgea.model/InlineResponse2001List'; +import InlineResponse2001LowestPrice from './com.lodgea.model/InlineResponse2001LowestPrice'; +import InlineResponse2001MediaList from './com.lodgea.model/InlineResponse2001MediaList'; +import InlineResponse2002 from './com.lodgea.model/InlineResponse2002'; +import InlineResponse2002List from './com.lodgea.model/InlineResponse2002List'; +import InlineResponse2003 from './com.lodgea.model/InlineResponse2003'; +import InlineResponse2003PolicyInfo from './com.lodgea.model/InlineResponse2003PolicyInfo'; +import InlineResponse2003PolicyInfoFeePolicyList from './com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList'; +import InlineResponse2003PolicyInfoTaxPolicyList from './com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList'; +import InlineResponse2003PricingList from './com.lodgea.model/InlineResponse2003PricingList'; +import InlineResponse2003ProductList from './com.lodgea.model/InlineResponse2003ProductList'; +import InlineResponse2003Property from './com.lodgea.model/InlineResponse2003Property'; +import InlineResponse2003PropertyAddressList from './com.lodgea.model/InlineResponse2003PropertyAddressList'; +import InlineResponse2003PropertyAwardList from './com.lodgea.model/InlineResponse2003PropertyAwardList'; +import InlineResponse2003PropertyCancellationGracePeriod from './com.lodgea.model/InlineResponse2003PropertyCancellationGracePeriod'; +import InlineResponse2003PropertyCancellationPolicyList from './com.lodgea.model/InlineResponse2003PropertyCancellationPolicyList'; +import InlineResponse2003PropertyContactList from './com.lodgea.model/InlineResponse2003PropertyContactList'; +import InlineResponse2003PropertyFacilityInfo from './com.lodgea.model/InlineResponse2003PropertyFacilityInfo'; +import InlineResponse2003PropertyFacilityInfoAmenityList from './com.lodgea.model/InlineResponse2003PropertyFacilityInfoAmenityList'; +import InlineResponse2003PropertyFacilityInfoGuestRoomList from './com.lodgea.model/InlineResponse2003PropertyFacilityInfoGuestRoomList'; +import InlineResponse2003PropertyFacilityInfoMediaList from './com.lodgea.model/InlineResponse2003PropertyFacilityInfoMediaList'; +import InlineResponse2003PropertyFacilityInfoMessageList from './com.lodgea.model/InlineResponse2003PropertyFacilityInfoMessageList'; +import InlineResponse2003PropertyFeePolicyList from './com.lodgea.model/InlineResponse2003PropertyFeePolicyList'; +import InlineResponse2003PropertyGuaranteePolicy from './com.lodgea.model/InlineResponse2003PropertyGuaranteePolicy'; +import InlineResponse2003PropertyGuestInfo from './com.lodgea.model/InlineResponse2003PropertyGuestInfo'; +import InlineResponse2003PropertyMediaList from './com.lodgea.model/InlineResponse2003PropertyMediaList'; +import InlineResponse2003PropertyOperationTimeList from './com.lodgea.model/InlineResponse2003PropertyOperationTimeList'; +import InlineResponse2003PropertyPetsPolicy from './com.lodgea.model/InlineResponse2003PropertyPetsPolicy'; +import InlineResponse2003PropertyPolicyList from './com.lodgea.model/InlineResponse2003PropertyPolicyList'; +import InlineResponse2003PropertyPropertyInfo from './com.lodgea.model/InlineResponse2003PropertyPropertyInfo'; +import InlineResponse2003PropertyPropertyInfoAcceptedPaymentList from './com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList'; +import InlineResponse2003PropertyPropertyInfoMessageList from './com.lodgea.model/InlineResponse2003PropertyPropertyInfoMessageList'; +import InlineResponse2003PropertyRecordCreated from './com.lodgea.model/InlineResponse2003PropertyRecordCreated'; +import InlineResponse2003PropertyRecordModified from './com.lodgea.model/InlineResponse2003PropertyRecordModified'; +import InlineResponse2003PropertyServiceList from './com.lodgea.model/InlineResponse2003PropertyServiceList'; +import InlineResponse2003PropertyTaxPolicyList from './com.lodgea.model/InlineResponse2003PropertyTaxPolicyList'; +import InlineResponse2003RatePlanList from './com.lodgea.model/InlineResponse2003RatePlanList'; +import InlineResponse2004 from './com.lodgea.model/InlineResponse2004'; +import InlineResponse2004AvailabilityList from './com.lodgea.model/InlineResponse2004AvailabilityList'; +import InlineResponse2004PricingList from './com.lodgea.model/InlineResponse2004PricingList'; +import InlineResponse2004RatePlanList from './com.lodgea.model/InlineResponse2004RatePlanList'; +import InlineResponse200List from './com.lodgea.model/InlineResponse200List'; +import InlineResponse400 from './com.lodgea.model/InlineResponse400'; +import InlineResponse4001 from './com.lodgea.model/InlineResponse4001'; +import InlineResponse4001ValidationErrors from './com.lodgea.model/InlineResponse4001ValidationErrors'; +import InlineResponse400ValidationErrors from './com.lodgea.model/InlineResponse400ValidationErrors'; import DefaultApi from './com.lodgea.controllers/DefaultApi'; /** -* LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information..
+* LODGEA_SDK_for_javascript__Check_out_https__docs_lodgea_io_for_more_information_.
* The index module provides access to constructors for all the classes which comprise the public API. *

* An AMD (recommended!) or CommonJS application will generally do something equivalent to the following: @@ -92,7 +99,7 @@ import DefaultApi from './com.lodgea.controllers/DefaultApi'; * *

* @module com.lodgea/index -* @version 1.1.5 +* @version 1.2.0 */ export { /** @@ -102,286 +109,328 @@ export { ApiClient, /** - * The AvailabilitySearchPost200Response model constructor. - * @property {module:com.lodgea/com.lodgea.model/AvailabilitySearchPost200Response} + * The InlineObject model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineObject} */ - AvailabilitySearchPost200Response, + InlineObject, /** - * The AvailabilitySearchPostRequest model constructor. - * @property {module:com.lodgea/com.lodgea.model/AvailabilitySearchPostRequest} + * The InlineObject1 model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineObject1} */ - AvailabilitySearchPostRequest, + InlineObject1, /** - * The AvailablePropertiesInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner} + * The InlineResponse200 model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse200} */ - AvailablePropertiesInner, + InlineResponse200, /** - * The AvailablePropertiesInner1 model constructor. - * @property {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1} + * The InlineResponse2001 model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2001} */ - AvailablePropertiesInner1, + InlineResponse2001, /** - * The AvailablePropertiesInner1AttractionListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInner} + * The InlineResponse2001AttractionList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2001AttractionList} */ - AvailablePropertiesInner1AttractionListInner, + InlineResponse2001AttractionList, /** - * The AvailablePropertiesInner1AttractionListInnerDistance model constructor. - * @property {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1AttractionListInnerDistance} + * The InlineResponse2001Distance model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2001Distance} */ - AvailablePropertiesInner1AttractionListInnerDistance, + InlineResponse2001Distance, /** - * The AvailablePropertiesInner1Geo model constructor. - * @property {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1Geo} + * The InlineResponse2001Geo model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2001Geo} */ - AvailablePropertiesInner1Geo, + InlineResponse2001Geo, /** - * The AvailablePropertiesInner1GeoLocation model constructor. - * @property {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1GeoLocation} + * The InlineResponse2001GeoLocation model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2001GeoLocation} */ - AvailablePropertiesInner1GeoLocation, + InlineResponse2001GeoLocation, /** - * The AvailablePropertiesInner1LowestPrice model constructor. - * @property {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1LowestPrice} + * The InlineResponse2001List model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2001List} */ - AvailablePropertiesInner1LowestPrice, + InlineResponse2001List, /** - * The AvailablePropertiesInner1MediaListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/AvailablePropertiesInner1MediaListInner} + * The InlineResponse2001LowestPrice model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2001LowestPrice} */ - AvailablePropertiesInner1MediaListInner, + InlineResponse2001LowestPrice, /** - * The LocationSearchPost200Response model constructor. - * @property {module:com.lodgea/com.lodgea.model/LocationSearchPost200Response} + * The InlineResponse2001MediaList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2001MediaList} */ - LocationSearchPost200Response, + InlineResponse2001MediaList, /** - * The LocationSearchPost400Response model constructor. - * @property {module:com.lodgea/com.lodgea.model/LocationSearchPost400Response} + * The InlineResponse2002 model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2002} */ - LocationSearchPost400Response, + InlineResponse2002, /** - * The LocationSearchPost400ResponseValidationErrorsInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/LocationSearchPost400ResponseValidationErrorsInner} + * The InlineResponse2002List model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2002List} */ - LocationSearchPost400ResponseValidationErrorsInner, + InlineResponse2002List, /** - * The LocationSearchPostRequest model constructor. - * @property {module:com.lodgea/com.lodgea.model/LocationSearchPostRequest} + * The InlineResponse2003 model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003} */ - LocationSearchPostRequest, + InlineResponse2003, /** - * The PropertiesGet200Response model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesGet200Response} + * The InlineResponse2003PolicyInfo model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfo} */ - PropertiesGet200Response, + InlineResponse2003PolicyInfo, /** - * The PropertiesGet200ResponseListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesGet200ResponseListInner} + * The InlineResponse2003PolicyInfoFeePolicyList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoFeePolicyList} */ - PropertiesGet200ResponseListInner, + InlineResponse2003PolicyInfoFeePolicyList, /** - * The PropertiesPropertyIdAvailabilityGet200Response model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200Response} + * The InlineResponse2003PolicyInfoTaxPolicyList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PolicyInfoTaxPolicyList} */ - PropertiesPropertyIdAvailabilityGet200Response, + InlineResponse2003PolicyInfoTaxPolicyList, /** - * The PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner} + * The InlineResponse2003PricingList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PricingList} */ - PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner, + InlineResponse2003PricingList, /** - * The PropertiesPropertyIdGet200Response model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200Response} + * The InlineResponse2003ProductList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003ProductList} */ - PropertiesPropertyIdGet200Response, + InlineResponse2003ProductList, /** - * The PropertiesPropertyIdGet200ResponseProductListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInner} + * The InlineResponse2003Property model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003Property} */ - PropertiesPropertyIdGet200ResponseProductListInner, + InlineResponse2003Property, /** - * The PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo} + * The InlineResponse2003PropertyAddressList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyAddressList} */ - PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo, + InlineResponse2003PropertyAddressList, /** - * The PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner} + * The InlineResponse2003PropertyAwardList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyAwardList} */ - PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner, + InlineResponse2003PropertyAwardList, /** - * The PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner} + * The InlineResponse2003PropertyCancellationGracePeriod model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationGracePeriod} */ - PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner, + InlineResponse2003PropertyCancellationGracePeriod, /** - * The PropertiesPropertyIdGet200ResponseProperty model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponseProperty} + * The InlineResponse2003PropertyCancellationPolicyList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyCancellationPolicyList} */ - PropertiesPropertyIdGet200ResponseProperty, + InlineResponse2003PropertyCancellationPolicyList, /** - * The PropertiesPropertyIdGet200ResponsePropertyAwardListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner} + * The InlineResponse2003PropertyContactList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyContactList} */ - PropertiesPropertyIdGet200ResponsePropertyAwardListInner, + InlineResponse2003PropertyContactList, /** - * The PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod} + * The InlineResponse2003PropertyFacilityInfo model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfo} */ - PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod, + InlineResponse2003PropertyFacilityInfo, /** - * The PropertiesPropertyIdGet200ResponsePropertyContactListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInner} + * The InlineResponse2003PropertyFacilityInfoAmenityList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoAmenityList} */ - PropertiesPropertyIdGet200ResponsePropertyContactListInner, + InlineResponse2003PropertyFacilityInfoAmenityList, /** - * The PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner} + * The InlineResponse2003PropertyFacilityInfoGuestRoomList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoGuestRoomList} */ - PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner, + InlineResponse2003PropertyFacilityInfoGuestRoomList, /** - * The PropertiesPropertyIdGet200ResponsePropertyFacilityInfo model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo} + * The InlineResponse2003PropertyFacilityInfoMediaList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMediaList} */ - PropertiesPropertyIdGet200ResponsePropertyFacilityInfo, + InlineResponse2003PropertyFacilityInfoMediaList, /** - * The PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner} + * The InlineResponse2003PropertyFacilityInfoMessageList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFacilityInfoMessageList} */ - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner, + InlineResponse2003PropertyFacilityInfoMessageList, /** - * The PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner} + * The InlineResponse2003PropertyFeePolicyList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyFeePolicyList} */ - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner, + InlineResponse2003PropertyFeePolicyList, /** - * The PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner} + * The InlineResponse2003PropertyGuaranteePolicy model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuaranteePolicy} */ - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner, + InlineResponse2003PropertyGuaranteePolicy, /** - * The PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner} + * The InlineResponse2003PropertyGuestInfo model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyGuestInfo} */ - PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner, + InlineResponse2003PropertyGuestInfo, /** - * The PropertiesPropertyIdGet200ResponsePropertyGuestInfo model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo} + * The InlineResponse2003PropertyMediaList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyMediaList} */ - PropertiesPropertyIdGet200ResponsePropertyGuestInfo, + InlineResponse2003PropertyMediaList, /** - * The PropertiesPropertyIdGet200ResponsePropertyPolicyListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner} + * The InlineResponse2003PropertyOperationTimeList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyOperationTimeList} */ - PropertiesPropertyIdGet200ResponsePropertyPolicyListInner, + InlineResponse2003PropertyOperationTimeList, /** - * The PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner} + * The InlineResponse2003PropertyPetsPolicy model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPetsPolicy} */ - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner, + InlineResponse2003PropertyPetsPolicy, /** - * The PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner} + * The InlineResponse2003PropertyPolicyList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPolicyList} */ - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner, + InlineResponse2003PropertyPolicyList, /** - * The PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy} + * The InlineResponse2003PropertyPropertyInfo model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfo} */ - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy, + InlineResponse2003PropertyPropertyInfo, /** - * The PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy} + * The InlineResponse2003PropertyPropertyInfoAcceptedPaymentList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList} */ - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy, + InlineResponse2003PropertyPropertyInfoAcceptedPaymentList, /** - * The PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner} + * The InlineResponse2003PropertyPropertyInfoMessageList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyPropertyInfoMessageList} */ - PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner, + InlineResponse2003PropertyPropertyInfoMessageList, /** - * The PropertiesPropertyIdGet200ResponsePropertyPropertyInfo model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo} + * The InlineResponse2003PropertyRecordCreated model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordCreated} */ - PropertiesPropertyIdGet200ResponsePropertyPropertyInfo, + InlineResponse2003PropertyRecordCreated, /** - * The PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner} + * The InlineResponse2003PropertyRecordModified model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyRecordModified} */ - PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner, + InlineResponse2003PropertyRecordModified, /** - * The PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner} + * The InlineResponse2003PropertyServiceList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyServiceList} */ - PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner, + InlineResponse2003PropertyServiceList, /** - * The PropertiesPropertyIdGet200ResponsePropertyRecordCreated model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated} + * The InlineResponse2003PropertyTaxPolicyList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003PropertyTaxPolicyList} */ - PropertiesPropertyIdGet200ResponsePropertyRecordCreated, + InlineResponse2003PropertyTaxPolicyList, /** - * The PropertiesPropertyIdGet200ResponsePropertyRecordModified model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyRecordModified} + * The InlineResponse2003RatePlanList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2003RatePlanList} */ - PropertiesPropertyIdGet200ResponsePropertyRecordModified, + InlineResponse2003RatePlanList, /** - * The PropertiesPropertyIdGet200ResponsePropertyServiceListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner} + * The InlineResponse2004 model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2004} */ - PropertiesPropertyIdGet200ResponsePropertyServiceListInner, + InlineResponse2004, /** - * The PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner model constructor. - * @property {module:com.lodgea/com.lodgea.model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner} + * The InlineResponse2004AvailabilityList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2004AvailabilityList} */ - PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner, + InlineResponse2004AvailabilityList, + + /** + * The InlineResponse2004PricingList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2004PricingList} + */ + InlineResponse2004PricingList, + + /** + * The InlineResponse2004RatePlanList model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse2004RatePlanList} + */ + InlineResponse2004RatePlanList, + + /** + * The InlineResponse200List model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse200List} + */ + InlineResponse200List, + + /** + * The InlineResponse400 model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse400} + */ + InlineResponse400, + + /** + * The InlineResponse4001 model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse4001} + */ + InlineResponse4001, + + /** + * The InlineResponse4001ValidationErrors model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse4001ValidationErrors} + */ + InlineResponse4001ValidationErrors, + + /** + * The InlineResponse400ValidationErrors model constructor. + * @property {module:com.lodgea/com.lodgea.model/InlineResponse400ValidationErrors} + */ + InlineResponse400ValidationErrors, /** * The DefaultApi service constructor. diff --git a/test/com.lodgea/api/DefaultApi.spec.js b/test/com.lodgea/api/DefaultApi.spec.js index 8c84af8..479c62e 100644 --- a/test/com.lodgea/api/DefaultApi.spec.js +++ b/test/com.lodgea/api/DefaultApi.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/test/com.lodgea/model/LocationSearchPostRequest.spec.js b/test/com.lodgea/model/InlineObject.spec.js similarity index 76% rename from test/com.lodgea/model/LocationSearchPostRequest.spec.js rename to test/com.lodgea/model/InlineObject.spec.js index 70c9eb5..2225f3b 100644 --- a/test/com.lodgea/model/LocationSearchPostRequest.spec.js +++ b/test/com.lodgea/model/InlineObject.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.LocationSearchPostRequest(); + instance = new LodgeaJs.InlineObject(); }); var getProperty = function(object, getter, property) { @@ -47,28 +47,28 @@ object[property] = value; } - describe('LocationSearchPostRequest', function() { - it('should create an instance of LocationSearchPostRequest', function() { - // uncomment below and update the code to test LocationSearchPostRequest - //var instance = new LodgeaJs.LocationSearchPostRequest(); - //expect(instance).to.be.a(LodgeaJs.LocationSearchPostRequest); + describe('InlineObject', function() { + it('should create an instance of InlineObject', function() { + // uncomment below and update the code to test InlineObject + //var instance = new LodgeaJs.InlineObject(); + //expect(instance).to.be.a(LodgeaJs.InlineObject); }); it('should have the property searchText (base name: "searchText")', function() { // uncomment below and update the code to test the property searchText - //var instance = new LodgeaJs.LocationSearchPostRequest(); + //var instance = new LodgeaJs.InlineObject(); //expect(instance).to.be(); }); it('should have the property currencyCode (base name: "currencyCode")', function() { // uncomment below and update the code to test the property currencyCode - //var instance = new LodgeaJs.LocationSearchPostRequest(); + //var instance = new LodgeaJs.InlineObject(); //expect(instance).to.be(); }); it('should have the property languageCode (base name: "languageCode")', function() { // uncomment below and update the code to test the property languageCode - //var instance = new LodgeaJs.LocationSearchPostRequest(); + //var instance = new LodgeaJs.InlineObject(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/AvailabilitySearchPostRequest.spec.js b/test/com.lodgea/model/InlineObject1.spec.js similarity index 75% rename from test/com.lodgea/model/AvailabilitySearchPostRequest.spec.js rename to test/com.lodgea/model/InlineObject1.spec.js index 1d55004..278c4d7 100644 --- a/test/com.lodgea/model/AvailabilitySearchPostRequest.spec.js +++ b/test/com.lodgea/model/InlineObject1.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.AvailabilitySearchPostRequest(); + instance = new LodgeaJs.InlineObject1(); }); var getProperty = function(object, getter, property) { @@ -47,118 +47,118 @@ object[property] = value; } - describe('AvailabilitySearchPostRequest', function() { - it('should create an instance of AvailabilitySearchPostRequest', function() { - // uncomment below and update the code to test AvailabilitySearchPostRequest - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); - //expect(instance).to.be.a(LodgeaJs.AvailabilitySearchPostRequest); + describe('InlineObject1', function() { + it('should create an instance of InlineObject1', function() { + // uncomment below and update the code to test InlineObject1 + //var instance = new LodgeaJs.InlineObject1(); + //expect(instance).to.be.a(LodgeaJs.InlineObject1); }); it('should have the property adultCount (base name: "adultCount")', function() { // uncomment below and update the code to test the property adultCount - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property childCount (base name: "childCount")', function() { // uncomment below and update the code to test the property childCount - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property childAgeList (base name: "childAgeList")', function() { // uncomment below and update the code to test the property childAgeList - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property currencyCode (base name: "currencyCode")', function() { // uncomment below and update the code to test the property currencyCode - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property languageCode (base name: "languageCode")', function() { // uncomment below and update the code to test the property languageCode - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property unitSystem (base name: "unitSystem")', function() { // uncomment below and update the code to test the property unitSystem - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property minLengthOfStay (base name: "minLengthOfStay")', function() { // uncomment below and update the code to test the property minLengthOfStay - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property maxLengthOfStay (base name: "maxLengthOfStay")', function() { // uncomment below and update the code to test the property maxLengthOfStay - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property locationName (base name: "locationName")', function() { // uncomment below and update the code to test the property locationName - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property locationType (base name: "locationType")', function() { // uncomment below and update the code to test the property locationType - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property earliestArrival (base name: "earliestArrival")', function() { // uncomment below and update the code to test the property earliestArrival - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property latestReturn (base name: "latestReturn")', function() { // uncomment below and update the code to test the property latestReturn - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property sort (base name: "sort")', function() { // uncomment below and update the code to test the property sort - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property serviceList (base name: "serviceList")', function() { // uncomment below and update the code to test the property serviceList - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property typeList (base name: "typeList")', function() { // uncomment below and update the code to test the property typeList - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property unitTypeList (base name: "unitTypeList")', function() { // uncomment below and update the code to test the property unitTypeList - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property unitAmenityList (base name: "unitAmenityList")', function() { // uncomment below and update the code to test the property unitAmenityList - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); it('should have the property mealPlanList (base name: "mealPlanList")', function() { // uncomment below and update the code to test the property mealPlanList - //var instance = new LodgeaJs.AvailabilitySearchPostRequest(); + //var instance = new LodgeaJs.InlineObject1(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/LocationSearchPost200Response.spec.js b/test/com.lodgea/model/InlineResponse200.spec.js similarity index 74% rename from test/com.lodgea/model/LocationSearchPost200Response.spec.js rename to test/com.lodgea/model/InlineResponse200.spec.js index da49e50..45c1b53 100644 --- a/test/com.lodgea/model/LocationSearchPost200Response.spec.js +++ b/test/com.lodgea/model/InlineResponse200.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.LocationSearchPost200Response(); + instance = new LodgeaJs.InlineResponse200(); }); var getProperty = function(object, getter, property) { @@ -47,22 +47,22 @@ object[property] = value; } - describe('LocationSearchPost200Response', function() { - it('should create an instance of LocationSearchPost200Response', function() { - // uncomment below and update the code to test LocationSearchPost200Response - //var instance = new LodgeaJs.LocationSearchPost200Response(); - //expect(instance).to.be.a(LodgeaJs.LocationSearchPost200Response); + describe('InlineResponse200', function() { + it('should create an instance of InlineResponse200', function() { + // uncomment below and update the code to test InlineResponse200 + //var instance = new LodgeaJs.InlineResponse200(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse200); }); it('should have the property languageCode (base name: "languageCode")', function() { // uncomment below and update the code to test the property languageCode - //var instance = new LodgeaJs.LocationSearchPost200Response(); + //var instance = new LodgeaJs.InlineResponse200(); //expect(instance).to.be(); }); it('should have the property list (base name: "list")', function() { // uncomment below and update the code to test the property list - //var instance = new LodgeaJs.LocationSearchPost200Response(); + //var instance = new LodgeaJs.InlineResponse200(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/AvailabilitySearchPost200Response.spec.js b/test/com.lodgea/model/InlineResponse2001.spec.js similarity index 73% rename from test/com.lodgea/model/AvailabilitySearchPost200Response.spec.js rename to test/com.lodgea/model/InlineResponse2001.spec.js index a1d9155..dcca1a1 100644 --- a/test/com.lodgea/model/AvailabilitySearchPost200Response.spec.js +++ b/test/com.lodgea/model/InlineResponse2001.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.AvailabilitySearchPost200Response(); + instance = new LodgeaJs.InlineResponse2001(); }); var getProperty = function(object, getter, property) { @@ -47,22 +47,22 @@ object[property] = value; } - describe('AvailabilitySearchPost200Response', function() { - it('should create an instance of AvailabilitySearchPost200Response', function() { - // uncomment below and update the code to test AvailabilitySearchPost200Response - //var instance = new LodgeaJs.AvailabilitySearchPost200Response(); - //expect(instance).to.be.a(LodgeaJs.AvailabilitySearchPost200Response); + describe('InlineResponse2001', function() { + it('should create an instance of InlineResponse2001', function() { + // uncomment below and update the code to test InlineResponse2001 + //var instance = new LodgeaJs.InlineResponse2001(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2001); }); it('should have the property languageCode (base name: "languageCode")', function() { // uncomment below and update the code to test the property languageCode - //var instance = new LodgeaJs.AvailabilitySearchPost200Response(); + //var instance = new LodgeaJs.InlineResponse2001(); //expect(instance).to.be(); }); it('should have the property list (base name: "list")', function() { // uncomment below and update the code to test the property list - //var instance = new LodgeaJs.AvailabilitySearchPost200Response(); + //var instance = new LodgeaJs.InlineResponse2001(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/AvailablePropertiesInner1AttractionListInner.spec.js b/test/com.lodgea/model/InlineResponse2001AttractionList.spec.js similarity index 71% rename from test/com.lodgea/model/AvailablePropertiesInner1AttractionListInner.spec.js rename to test/com.lodgea/model/InlineResponse2001AttractionList.spec.js index 5911994..85f2b0d 100644 --- a/test/com.lodgea/model/AvailablePropertiesInner1AttractionListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2001AttractionList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.AvailablePropertiesInner1AttractionListInner(); + instance = new LodgeaJs.InlineResponse2001AttractionList(); }); var getProperty = function(object, getter, property) { @@ -47,28 +47,28 @@ object[property] = value; } - describe('AvailablePropertiesInner1AttractionListInner', function() { - it('should create an instance of AvailablePropertiesInner1AttractionListInner', function() { - // uncomment below and update the code to test AvailablePropertiesInner1AttractionListInner - //var instance = new LodgeaJs.AvailablePropertiesInner1AttractionListInner(); - //expect(instance).to.be.a(LodgeaJs.AvailablePropertiesInner1AttractionListInner); + describe('InlineResponse2001AttractionList', function() { + it('should create an instance of InlineResponse2001AttractionList', function() { + // uncomment below and update the code to test InlineResponse2001AttractionList + //var instance = new LodgeaJs.InlineResponse2001AttractionList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2001AttractionList); }); it('should have the property typeCode (base name: "typeCode")', function() { // uncomment below and update the code to test the property typeCode - //var instance = new LodgeaJs.AvailablePropertiesInner1AttractionListInner(); + //var instance = new LodgeaJs.InlineResponse2001AttractionList(); //expect(instance).to.be(); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name - //var instance = new LodgeaJs.AvailablePropertiesInner1AttractionListInner(); + //var instance = new LodgeaJs.InlineResponse2001AttractionList(); //expect(instance).to.be(); }); it('should have the property distance (base name: "distance")', function() { // uncomment below and update the code to test the property distance - //var instance = new LodgeaJs.AvailablePropertiesInner1AttractionListInner(); + //var instance = new LodgeaJs.InlineResponse2001AttractionList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/AvailablePropertiesInner1AttractionListInnerDistance.spec.js b/test/com.lodgea/model/InlineResponse2001Distance.spec.js similarity index 69% rename from test/com.lodgea/model/AvailablePropertiesInner1AttractionListInnerDistance.spec.js rename to test/com.lodgea/model/InlineResponse2001Distance.spec.js index e71db48..548d317 100644 --- a/test/com.lodgea/model/AvailablePropertiesInner1AttractionListInnerDistance.spec.js +++ b/test/com.lodgea/model/InlineResponse2001Distance.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.AvailablePropertiesInner1AttractionListInnerDistance(); + instance = new LodgeaJs.InlineResponse2001Distance(); }); var getProperty = function(object, getter, property) { @@ -47,22 +47,22 @@ object[property] = value; } - describe('AvailablePropertiesInner1AttractionListInnerDistance', function() { - it('should create an instance of AvailablePropertiesInner1AttractionListInnerDistance', function() { - // uncomment below and update the code to test AvailablePropertiesInner1AttractionListInnerDistance - //var instance = new LodgeaJs.AvailablePropertiesInner1AttractionListInnerDistance(); - //expect(instance).to.be.a(LodgeaJs.AvailablePropertiesInner1AttractionListInnerDistance); + describe('InlineResponse2001Distance', function() { + it('should create an instance of InlineResponse2001Distance', function() { + // uncomment below and update the code to test InlineResponse2001Distance + //var instance = new LodgeaJs.InlineResponse2001Distance(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2001Distance); }); it('should have the property value (base name: "value")', function() { // uncomment below and update the code to test the property value - //var instance = new LodgeaJs.AvailablePropertiesInner1AttractionListInnerDistance(); + //var instance = new LodgeaJs.InlineResponse2001Distance(); //expect(instance).to.be(); }); it('should have the property unit (base name: "unit")', function() { // uncomment below and update the code to test the property unit - //var instance = new LodgeaJs.AvailablePropertiesInner1AttractionListInnerDistance(); + //var instance = new LodgeaJs.InlineResponse2001Distance(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/AvailablePropertiesInner1Geo.spec.js b/test/com.lodgea/model/InlineResponse2001Geo.spec.js similarity index 76% rename from test/com.lodgea/model/AvailablePropertiesInner1Geo.spec.js rename to test/com.lodgea/model/InlineResponse2001Geo.spec.js index c8bcc64..4f8da65 100644 --- a/test/com.lodgea/model/AvailablePropertiesInner1Geo.spec.js +++ b/test/com.lodgea/model/InlineResponse2001Geo.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + instance = new LodgeaJs.InlineResponse2001Geo(); }); var getProperty = function(object, getter, property) { @@ -47,142 +47,142 @@ object[property] = value; } - describe('AvailablePropertiesInner1Geo', function() { - it('should create an instance of AvailablePropertiesInner1Geo', function() { - // uncomment below and update the code to test AvailablePropertiesInner1Geo - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); - //expect(instance).to.be.a(LodgeaJs.AvailablePropertiesInner1Geo); + describe('InlineResponse2001Geo', function() { + it('should create an instance of InlineResponse2001Geo', function() { + // uncomment below and update the code to test InlineResponse2001Geo + //var instance = new LodgeaJs.InlineResponse2001Geo(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2001Geo); }); it('should have the property language (base name: "language")', function() { // uncomment below and update the code to test the property language - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property formattedAddress (base name: "formatted_address")', function() { // uncomment below and update the code to test the property formattedAddress - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property route (base name: "route")', function() { // uncomment below and update the code to test the property route - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property streetNumber (base name: "street_number")', function() { // uncomment below and update the code to test the property streetNumber - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property postalCode (base name: "postal_code")', function() { // uncomment below and update the code to test the property postalCode - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property locality (base name: "locality")', function() { // uncomment below and update the code to test the property locality - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property sublocality (base name: "sublocality")', function() { // uncomment below and update the code to test the property sublocality - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property sublocalityLevel1 (base name: "sublocality_level_1")', function() { // uncomment below and update the code to test the property sublocalityLevel1 - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property sublocalityLevel2 (base name: "sublocality_level_2")', function() { // uncomment below and update the code to test the property sublocalityLevel2 - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property sublocalityLevel3 (base name: "sublocality_level_3")', function() { // uncomment below and update the code to test the property sublocalityLevel3 - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property sublocalityLevel4 (base name: "sublocality_level_4")', function() { // uncomment below and update the code to test the property sublocalityLevel4 - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property sublocalityLevel5 (base name: "sublocality_level_5")', function() { // uncomment below and update the code to test the property sublocalityLevel5 - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property administrativeAreaLevel1 (base name: "administrative_area_level_1")', function() { // uncomment below and update the code to test the property administrativeAreaLevel1 - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property administrativeAreaLevel2 (base name: "administrative_area_level_2")', function() { // uncomment below and update the code to test the property administrativeAreaLevel2 - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property administrativeAreaLevel3 (base name: "administrative_area_level_3")', function() { // uncomment below and update the code to test the property administrativeAreaLevel3 - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property administrativeAreaLevel4 (base name: "administrative_area_level_4")', function() { // uncomment below and update the code to test the property administrativeAreaLevel4 - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property administrativeAreaLevel5 (base name: "administrative_area_level_5")', function() { // uncomment below and update the code to test the property administrativeAreaLevel5 - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property stateCode (base name: "state_code")', function() { // uncomment below and update the code to test the property stateCode - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property country (base name: "country")', function() { // uncomment below and update the code to test the property country - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property countryCode (base name: "country_code")', function() { // uncomment below and update the code to test the property countryCode - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property location (base name: "location")', function() { // uncomment below and update the code to test the property location - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); it('should have the property placeId (base name: "place_id")', function() { // uncomment below and update the code to test the property placeId - //var instance = new LodgeaJs.AvailablePropertiesInner1Geo(); + //var instance = new LodgeaJs.InlineResponse2001Geo(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/AvailablePropertiesInner1GeoLocation.spec.js b/test/com.lodgea/model/InlineResponse2001GeoLocation.spec.js similarity index 72% rename from test/com.lodgea/model/AvailablePropertiesInner1GeoLocation.spec.js rename to test/com.lodgea/model/InlineResponse2001GeoLocation.spec.js index cbc78b8..439af7b 100644 --- a/test/com.lodgea/model/AvailablePropertiesInner1GeoLocation.spec.js +++ b/test/com.lodgea/model/InlineResponse2001GeoLocation.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.AvailablePropertiesInner1GeoLocation(); + instance = new LodgeaJs.InlineResponse2001GeoLocation(); }); var getProperty = function(object, getter, property) { @@ -47,22 +47,22 @@ object[property] = value; } - describe('AvailablePropertiesInner1GeoLocation', function() { - it('should create an instance of AvailablePropertiesInner1GeoLocation', function() { - // uncomment below and update the code to test AvailablePropertiesInner1GeoLocation - //var instance = new LodgeaJs.AvailablePropertiesInner1GeoLocation(); - //expect(instance).to.be.a(LodgeaJs.AvailablePropertiesInner1GeoLocation); + describe('InlineResponse2001GeoLocation', function() { + it('should create an instance of InlineResponse2001GeoLocation', function() { + // uncomment below and update the code to test InlineResponse2001GeoLocation + //var instance = new LodgeaJs.InlineResponse2001GeoLocation(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2001GeoLocation); }); it('should have the property lng (base name: "lng")', function() { // uncomment below and update the code to test the property lng - //var instance = new LodgeaJs.AvailablePropertiesInner1GeoLocation(); + //var instance = new LodgeaJs.InlineResponse2001GeoLocation(); //expect(instance).to.be(); }); it('should have the property lat (base name: "lat")', function() { // uncomment below and update the code to test the property lat - //var instance = new LodgeaJs.AvailablePropertiesInner1GeoLocation(); + //var instance = new LodgeaJs.InlineResponse2001GeoLocation(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/AvailablePropertiesInner1.spec.js b/test/com.lodgea/model/InlineResponse2001List.spec.js similarity index 75% rename from test/com.lodgea/model/AvailablePropertiesInner1.spec.js rename to test/com.lodgea/model/InlineResponse2001List.spec.js index 5d69402..964e6f6 100644 --- a/test/com.lodgea/model/AvailablePropertiesInner1.spec.js +++ b/test/com.lodgea/model/InlineResponse2001List.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.AvailablePropertiesInner1(); + instance = new LodgeaJs.InlineResponse2001List(); }); var getProperty = function(object, getter, property) { @@ -47,94 +47,94 @@ object[property] = value; } - describe('AvailablePropertiesInner1', function() { - it('should create an instance of AvailablePropertiesInner1', function() { - // uncomment below and update the code to test AvailablePropertiesInner1 - //var instance = new LodgeaJs.AvailablePropertiesInner1(); - //expect(instance).to.be.a(LodgeaJs.AvailablePropertiesInner1); + describe('InlineResponse2001List', function() { + it('should create an instance of InlineResponse2001List', function() { + // uncomment below and update the code to test InlineResponse2001List + //var instance = new LodgeaJs.InlineResponse2001List(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2001List); }); it('should have the property code (base name: "code")', function() { // uncomment below and update the code to test the property code - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property languageCode (base name: "languageCode")', function() { // uncomment below and update the code to test the property languageCode - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property currencyCode (base name: "currencyCode")', function() { // uncomment below and update the code to test the property currencyCode - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property unitSystem (base name: "unitSystem")', function() { // uncomment below and update the code to test the property unitSystem - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property uri (base name: "uri")', function() { // uncomment below and update the code to test the property uri - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property serviceList (base name: "serviceList")', function() { // uncomment below and update the code to test the property serviceList - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property categoryList (base name: "categoryList")', function() { // uncomment below and update the code to test the property categoryList - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property uriPath (base name: "uriPath")', function() { // uncomment below and update the code to test the property uriPath - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property text (base name: "text")', function() { // uncomment below and update the code to test the property text - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property geo (base name: "geo")', function() { // uncomment below and update the code to test the property geo - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property mediaList (base name: "mediaList")', function() { // uncomment below and update the code to test the property mediaList - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property attractionList (base name: "attractionList")', function() { // uncomment below and update the code to test the property attractionList - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); it('should have the property lowestPrice (base name: "lowestPrice")', function() { // uncomment below and update the code to test the property lowestPrice - //var instance = new LodgeaJs.AvailablePropertiesInner1(); + //var instance = new LodgeaJs.InlineResponse2001List(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/AvailablePropertiesInner1LowestPrice.spec.js b/test/com.lodgea/model/InlineResponse2001LowestPrice.spec.js similarity index 73% rename from test/com.lodgea/model/AvailablePropertiesInner1LowestPrice.spec.js rename to test/com.lodgea/model/InlineResponse2001LowestPrice.spec.js index 9911d71..953218d 100644 --- a/test/com.lodgea/model/AvailablePropertiesInner1LowestPrice.spec.js +++ b/test/com.lodgea/model/InlineResponse2001LowestPrice.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.AvailablePropertiesInner1LowestPrice(); + instance = new LodgeaJs.InlineResponse2001LowestPrice(); }); var getProperty = function(object, getter, property) { @@ -47,40 +47,40 @@ object[property] = value; } - describe('AvailablePropertiesInner1LowestPrice', function() { - it('should create an instance of AvailablePropertiesInner1LowestPrice', function() { - // uncomment below and update the code to test AvailablePropertiesInner1LowestPrice - //var instance = new LodgeaJs.AvailablePropertiesInner1LowestPrice(); - //expect(instance).to.be.a(LodgeaJs.AvailablePropertiesInner1LowestPrice); + describe('InlineResponse2001LowestPrice', function() { + it('should create an instance of InlineResponse2001LowestPrice', function() { + // uncomment below and update the code to test InlineResponse2001LowestPrice + //var instance = new LodgeaJs.InlineResponse2001LowestPrice(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2001LowestPrice); }); it('should have the property amount (base name: "amount")', function() { // uncomment below and update the code to test the property amount - //var instance = new LodgeaJs.AvailablePropertiesInner1LowestPrice(); + //var instance = new LodgeaJs.InlineResponse2001LowestPrice(); //expect(instance).to.be(); }); it('should have the property currencyCode (base name: "currencyCode")', function() { // uncomment below and update the code to test the property currencyCode - //var instance = new LodgeaJs.AvailablePropertiesInner1LowestPrice(); + //var instance = new LodgeaJs.InlineResponse2001LowestPrice(); //expect(instance).to.be(); }); it('should have the property arrivalDate (base name: "arrivalDate")', function() { // uncomment below and update the code to test the property arrivalDate - //var instance = new LodgeaJs.AvailablePropertiesInner1LowestPrice(); + //var instance = new LodgeaJs.InlineResponse2001LowestPrice(); //expect(instance).to.be(); }); it('should have the property returnDate (base name: "returnDate")', function() { // uncomment below and update the code to test the property returnDate - //var instance = new LodgeaJs.AvailablePropertiesInner1LowestPrice(); + //var instance = new LodgeaJs.InlineResponse2001LowestPrice(); //expect(instance).to.be(); }); it('should have the property lengthOfStay (base name: "lengthOfStay")', function() { // uncomment below and update the code to test the property lengthOfStay - //var instance = new LodgeaJs.AvailablePropertiesInner1LowestPrice(); + //var instance = new LodgeaJs.InlineResponse2001LowestPrice(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/AvailablePropertiesInner1MediaListInner.spec.js b/test/com.lodgea/model/InlineResponse2001MediaList.spec.js similarity index 72% rename from test/com.lodgea/model/AvailablePropertiesInner1MediaListInner.spec.js rename to test/com.lodgea/model/InlineResponse2001MediaList.spec.js index f81b646..f5d1fa6 100644 --- a/test/com.lodgea/model/AvailablePropertiesInner1MediaListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2001MediaList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.AvailablePropertiesInner1MediaListInner(); + instance = new LodgeaJs.InlineResponse2001MediaList(); }); var getProperty = function(object, getter, property) { @@ -47,34 +47,34 @@ object[property] = value; } - describe('AvailablePropertiesInner1MediaListInner', function() { - it('should create an instance of AvailablePropertiesInner1MediaListInner', function() { - // uncomment below and update the code to test AvailablePropertiesInner1MediaListInner - //var instance = new LodgeaJs.AvailablePropertiesInner1MediaListInner(); - //expect(instance).to.be.a(LodgeaJs.AvailablePropertiesInner1MediaListInner); + describe('InlineResponse2001MediaList', function() { + it('should create an instance of InlineResponse2001MediaList', function() { + // uncomment below and update the code to test InlineResponse2001MediaList + //var instance = new LodgeaJs.InlineResponse2001MediaList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2001MediaList); }); it('should have the property tagList (base name: "tagList")', function() { // uncomment below and update the code to test the property tagList - //var instance = new LodgeaJs.AvailablePropertiesInner1MediaListInner(); + //var instance = new LodgeaJs.InlineResponse2001MediaList(); //expect(instance).to.be(); }); it('should have the property isMainImage (base name: "isMainImage")', function() { // uncomment below and update the code to test the property isMainImage - //var instance = new LodgeaJs.AvailablePropertiesInner1MediaListInner(); + //var instance = new LodgeaJs.InlineResponse2001MediaList(); //expect(instance).to.be(); }); it('should have the property url (base name: "url")', function() { // uncomment below and update the code to test the property url - //var instance = new LodgeaJs.AvailablePropertiesInner1MediaListInner(); + //var instance = new LodgeaJs.InlineResponse2001MediaList(); //expect(instance).to.be(); }); it('should have the property sortOrder (base name: "sortOrder")', function() { // uncomment below and update the code to test the property sortOrder - //var instance = new LodgeaJs.AvailablePropertiesInner1MediaListInner(); + //var instance = new LodgeaJs.InlineResponse2001MediaList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesGet200Response.spec.js b/test/com.lodgea/model/InlineResponse2002.spec.js similarity index 76% rename from test/com.lodgea/model/PropertiesGet200Response.spec.js rename to test/com.lodgea/model/InlineResponse2002.spec.js index 1a71828..ebf4821 100644 --- a/test/com.lodgea/model/PropertiesGet200Response.spec.js +++ b/test/com.lodgea/model/InlineResponse2002.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesGet200Response(); + instance = new LodgeaJs.InlineResponse2002(); }); var getProperty = function(object, getter, property) { @@ -47,22 +47,22 @@ object[property] = value; } - describe('PropertiesGet200Response', function() { - it('should create an instance of PropertiesGet200Response', function() { - // uncomment below and update the code to test PropertiesGet200Response - //var instance = new LodgeaJs.PropertiesGet200Response(); - //expect(instance).to.be.a(LodgeaJs.PropertiesGet200Response); + describe('InlineResponse2002', function() { + it('should create an instance of InlineResponse2002', function() { + // uncomment below and update the code to test InlineResponse2002 + //var instance = new LodgeaJs.InlineResponse2002(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2002); }); it('should have the property list (base name: "list")', function() { // uncomment below and update the code to test the property list - //var instance = new LodgeaJs.PropertiesGet200Response(); + //var instance = new LodgeaJs.InlineResponse2002(); //expect(instance).to.be(); }); it('should have the property pageToken (base name: "pageToken")', function() { // uncomment below and update the code to test the property pageToken - //var instance = new LodgeaJs.PropertiesGet200Response(); + //var instance = new LodgeaJs.InlineResponse2002(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesGet200ResponseListInner.spec.js b/test/com.lodgea/model/InlineResponse2002List.spec.js similarity index 73% rename from test/com.lodgea/model/PropertiesGet200ResponseListInner.spec.js rename to test/com.lodgea/model/InlineResponse2002List.spec.js index 3b2ba48..5e595c0 100644 --- a/test/com.lodgea/model/PropertiesGet200ResponseListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2002List.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesGet200ResponseListInner(); + instance = new LodgeaJs.InlineResponse2002List(); }); var getProperty = function(object, getter, property) { @@ -47,46 +47,46 @@ object[property] = value; } - describe('PropertiesGet200ResponseListInner', function() { - it('should create an instance of PropertiesGet200ResponseListInner', function() { - // uncomment below and update the code to test PropertiesGet200ResponseListInner - //var instance = new LodgeaJs.PropertiesGet200ResponseListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesGet200ResponseListInner); + describe('InlineResponse2002List', function() { + it('should create an instance of InlineResponse2002List', function() { + // uncomment below and update the code to test InlineResponse2002List + //var instance = new LodgeaJs.InlineResponse2002List(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2002List); }); it('should have the property published (base name: "published")', function() { // uncomment below and update the code to test the property published - //var instance = new LodgeaJs.PropertiesGet200ResponseListInner(); + //var instance = new LodgeaJs.InlineResponse2002List(); //expect(instance).to.be(); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name - //var instance = new LodgeaJs.PropertiesGet200ResponseListInner(); + //var instance = new LodgeaJs.InlineResponse2002List(); //expect(instance).to.be(); }); it('should have the property propertyId (base name: "propertyId")', function() { // uncomment below and update the code to test the property propertyId - //var instance = new LodgeaJs.PropertiesGet200ResponseListInner(); + //var instance = new LodgeaJs.InlineResponse2002List(); //expect(instance).to.be(); }); it('should have the property image (base name: "image")', function() { // uncomment below and update the code to test the property image - //var instance = new LodgeaJs.PropertiesGet200ResponseListInner(); + //var instance = new LodgeaJs.InlineResponse2002List(); //expect(instance).to.be(); }); it('should have the property address (base name: "address")', function() { // uncomment below and update the code to test the property address - //var instance = new LodgeaJs.PropertiesGet200ResponseListInner(); + //var instance = new LodgeaJs.InlineResponse2002List(); //expect(instance).to.be(); }); it('should have the property lastUpdated (base name: "lastUpdated")', function() { // uncomment below and update the code to test the property lastUpdated - //var instance = new LodgeaJs.PropertiesGet200ResponseListInner(); + //var instance = new LodgeaJs.InlineResponse2002List(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200Response.spec.js b/test/com.lodgea/model/InlineResponse2003.spec.js similarity index 73% rename from test/com.lodgea/model/PropertiesPropertyIdGet200Response.spec.js rename to test/com.lodgea/model/InlineResponse2003.spec.js index cd89b20..ff160ed 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200Response.spec.js +++ b/test/com.lodgea/model/InlineResponse2003.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200Response(); + instance = new LodgeaJs.InlineResponse2003(); }); var getProperty = function(object, getter, property) { @@ -47,22 +47,22 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200Response', function() { - it('should create an instance of PropertiesPropertyIdGet200Response', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200Response - //var instance = new LodgeaJs.PropertiesPropertyIdGet200Response(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200Response); + describe('InlineResponse2003', function() { + it('should create an instance of InlineResponse2003', function() { + // uncomment below and update the code to test InlineResponse2003 + //var instance = new LodgeaJs.InlineResponse2003(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003); }); it('should have the property property (base name: "property")', function() { // uncomment below and update the code to test the property property - //var instance = new LodgeaJs.PropertiesPropertyIdGet200Response(); + //var instance = new LodgeaJs.InlineResponse2003(); //expect(instance).to.be(); }); it('should have the property productList (base name: "productList")', function() { // uncomment below and update the code to test the property productList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200Response(); + //var instance = new LodgeaJs.InlineResponse2003(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PolicyInfo.spec.js similarity index 69% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PolicyInfo.spec.js index 5f388ee..16ba410 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PolicyInfo.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + instance = new LodgeaJs.InlineResponse2003PolicyInfo(); }); var getProperty = function(object, getter, property) { @@ -47,82 +47,82 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyPolicyListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyPolicyListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner); + describe('InlineResponse2003PolicyInfo', function() { + it('should create an instance of InlineResponse2003PolicyInfo', function() { + // uncomment below and update the code to test InlineResponse2003PolicyInfo + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PolicyInfo); }); it('should have the property checkInTime (base name: "checkInTime")', function() { // uncomment below and update the code to test the property checkInTime - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); //expect(instance).to.be(); }); it('should have the property checkOutTime (base name: "checkOutTime")', function() { // uncomment below and update the code to test the property checkOutTime - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); //expect(instance).to.be(); }); it('should have the property totalGuestCount (base name: "totalGuestCount")', function() { // uncomment below and update the code to test the property totalGuestCount - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); //expect(instance).to.be(); }); it('should have the property cancellationPolicyList (base name: "cancellationPolicyList")', function() { // uncomment below and update the code to test the property cancellationPolicyList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); //expect(instance).to.be(); }); it('should have the property advanceBookingMin (base name: "advanceBookingMin")', function() { // uncomment below and update the code to test the property advanceBookingMin - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); //expect(instance).to.be(); }); it('should have the property advanceBookingMax (base name: "advanceBookingMax")', function() { // uncomment below and update the code to test the property advanceBookingMax - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); //expect(instance).to.be(); }); it('should have the property petsPolicy (base name: "petsPolicy")', function() { // uncomment below and update the code to test the property petsPolicy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); //expect(instance).to.be(); }); it('should have the property prepaymentPolicy (base name: "prepaymentPolicy")', function() { // uncomment below and update the code to test the property prepaymentPolicy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); //expect(instance).to.be(); }); it('should have the property guaranteePolicy (base name: "guaranteePolicy")', function() { // uncomment below and update the code to test the property guaranteePolicy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); //expect(instance).to.be(); }); it('should have the property taxPolicyList (base name: "taxPolicyList")', function() { // uncomment below and update the code to test the property taxPolicyList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); //expect(instance).to.be(); }); it('should have the property feePolicyList (base name: "feePolicyList")', function() { // uncomment below and update the code to test the property feePolicyList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); //expect(instance).to.be(); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfo(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PolicyInfoFeePolicyList.spec.js similarity index 65% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PolicyInfoFeePolicyList.spec.js index cfe5631..6d7a652 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PolicyInfoFeePolicyList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner(); + instance = new LodgeaJs.InlineResponse2003PolicyInfoFeePolicyList(); }); var getProperty = function(object, getter, property) { @@ -47,46 +47,46 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner); + describe('InlineResponse2003PolicyInfoFeePolicyList', function() { + it('should create an instance of InlineResponse2003PolicyInfoFeePolicyList', function() { + // uncomment below and update the code to test InlineResponse2003PolicyInfoFeePolicyList + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoFeePolicyList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PolicyInfoFeePolicyList); }); it('should have the property typeCode (base name: "typeCode")', function() { // uncomment below and update the code to test the property typeCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoFeePolicyList(); //expect(instance).to.be(); }); it('should have the property percent (base name: "percent")', function() { // uncomment below and update the code to test the property percent - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoFeePolicyList(); //expect(instance).to.be(); }); it('should have the property chargeType (base name: "chargeType")', function() { // uncomment below and update the code to test the property chargeType - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoFeePolicyList(); //expect(instance).to.be(); }); it('should have the property chargeFrequencyCode (base name: "chargeFrequencyCode")', function() { // uncomment below and update the code to test the property chargeFrequencyCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoFeePolicyList(); //expect(instance).to.be(); }); it('should have the property currencyCode (base name: "currencyCode")', function() { // uncomment below and update the code to test the property currencyCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoFeePolicyList(); //expect(instance).to.be(); }); it('should have the property conditionList (base name: "conditionList")', function() { // uncomment below and update the code to test the property conditionList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerTaxPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoFeePolicyList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PolicyInfoTaxPolicyList.spec.js similarity index 65% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PolicyInfoTaxPolicyList.spec.js index d2b1f04..ed8cd74 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PolicyInfoTaxPolicyList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner(); + instance = new LodgeaJs.InlineResponse2003PolicyInfoTaxPolicyList(); }); var getProperty = function(object, getter, property) { @@ -47,46 +47,46 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner); + describe('InlineResponse2003PolicyInfoTaxPolicyList', function() { + it('should create an instance of InlineResponse2003PolicyInfoTaxPolicyList', function() { + // uncomment below and update the code to test InlineResponse2003PolicyInfoTaxPolicyList + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoTaxPolicyList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PolicyInfoTaxPolicyList); }); it('should have the property typeCode (base name: "typeCode")', function() { // uncomment below and update the code to test the property typeCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoTaxPolicyList(); //expect(instance).to.be(); }); it('should have the property percent (base name: "percent")', function() { // uncomment below and update the code to test the property percent - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoTaxPolicyList(); //expect(instance).to.be(); }); it('should have the property chargeType (base name: "chargeType")', function() { // uncomment below and update the code to test the property chargeType - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoTaxPolicyList(); //expect(instance).to.be(); }); it('should have the property chargeFrequencyCode (base name: "chargeFrequencyCode")', function() { // uncomment below and update the code to test the property chargeFrequencyCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoTaxPolicyList(); //expect(instance).to.be(); }); it('should have the property currencyCode (base name: "currencyCode")', function() { // uncomment below and update the code to test the property currencyCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoTaxPolicyList(); //expect(instance).to.be(); }); it('should have the property conditionList (base name: "conditionList")', function() { // uncomment below and update the code to test the property conditionList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerFeePolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PolicyInfoTaxPolicyList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PricingList.spec.js similarity index 63% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PricingList.spec.js index 66b9761..bff4b75 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PricingList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner(); + instance = new LodgeaJs.InlineResponse2003PricingList(); }); var getProperty = function(object, getter, property) { @@ -47,34 +47,34 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner); + describe('InlineResponse2003PricingList', function() { + it('should create an instance of InlineResponse2003PricingList', function() { + // uncomment below and update the code to test InlineResponse2003PricingList + //var instance = new LodgeaJs.InlineResponse2003PricingList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PricingList); }); it('should have the property dateTime (base name: "dateTime")', function() { // uncomment below and update the code to test the property dateTime - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner(); + //var instance = new LodgeaJs.InlineResponse2003PricingList(); //expect(instance).to.be(); }); it('should have the property occupancy (base name: "occupancy")', function() { // uncomment below and update the code to test the property occupancy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner(); + //var instance = new LodgeaJs.InlineResponse2003PricingList(); //expect(instance).to.be(); }); it('should have the property priceList (base name: "priceList")', function() { // uncomment below and update the code to test the property priceList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner(); + //var instance = new LodgeaJs.InlineResponse2003PricingList(); //expect(instance).to.be(); }); it('should have the property currencyCode (base name: "currencyCode")', function() { // uncomment below and update the code to test the property currencyCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInnerPricingListInner(); + //var instance = new LodgeaJs.InlineResponse2003PricingList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInner.spec.js b/test/com.lodgea/model/InlineResponse2003ProductList.spec.js similarity index 70% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003ProductList.spec.js index 424bd53..dbd720c 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003ProductList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner(); + instance = new LodgeaJs.InlineResponse2003ProductList(); }); var getProperty = function(object, getter, property) { @@ -47,58 +47,58 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponseProductListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponseProductListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponseProductListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner); + describe('InlineResponse2003ProductList', function() { + it('should create an instance of InlineResponse2003ProductList', function() { + // uncomment below and update the code to test InlineResponse2003ProductList + //var instance = new LodgeaJs.InlineResponse2003ProductList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003ProductList); }); it('should have the property propertyId (base name: "propertyId")', function() { // uncomment below and update the code to test the property propertyId - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner(); + //var instance = new LodgeaJs.InlineResponse2003ProductList(); //expect(instance).to.be(); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner(); + //var instance = new LodgeaJs.InlineResponse2003ProductList(); //expect(instance).to.be(); }); it('should have the property mealPlanList (base name: "mealPlanList")', function() { // uncomment below and update the code to test the property mealPlanList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner(); + //var instance = new LodgeaJs.InlineResponse2003ProductList(); //expect(instance).to.be(); }); it('should have the property roomTypeList (base name: "roomTypeList")', function() { // uncomment below and update the code to test the property roomTypeList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner(); + //var instance = new LodgeaJs.InlineResponse2003ProductList(); //expect(instance).to.be(); }); it('should have the property isLOSPricing (base name: "isLOSPricing")', function() { // uncomment below and update the code to test the property isLOSPricing - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner(); + //var instance = new LodgeaJs.InlineResponse2003ProductList(); //expect(instance).to.be(); }); it('should have the property isOBPPricing (base name: "isOBPPricing")', function() { // uncomment below and update the code to test the property isOBPPricing - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner(); + //var instance = new LodgeaJs.InlineResponse2003ProductList(); //expect(instance).to.be(); }); it('should have the property ratePlanList (base name: "ratePlanList")', function() { // uncomment below and update the code to test the property ratePlanList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner(); + //var instance = new LodgeaJs.InlineResponse2003ProductList(); //expect(instance).to.be(); }); it('should have the property policyInfo (base name: "policyInfo")', function() { // uncomment below and update the code to test the property policyInfo - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInner(); + //var instance = new LodgeaJs.InlineResponse2003ProductList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProperty.spec.js b/test/com.lodgea/model/InlineResponse2003Property.spec.js similarity index 71% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProperty.spec.js rename to test/com.lodgea/model/InlineResponse2003Property.spec.js index 74b85c9..86b202c 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProperty.spec.js +++ b/test/com.lodgea/model/InlineResponse2003Property.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + instance = new LodgeaJs.InlineResponse2003Property(); }); var getProperty = function(object, getter, property) { @@ -47,106 +47,106 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponseProperty', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponseProperty', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponseProperty - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponseProperty); + describe('InlineResponse2003Property', function() { + it('should create an instance of InlineResponse2003Property', function() { + // uncomment below and update the code to test InlineResponse2003Property + //var instance = new LodgeaJs.InlineResponse2003Property(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003Property); }); it('should have the property code (base name: "code")', function() { // uncomment below and update the code to test the property code - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property recordCreated (base name: "recordCreated")', function() { // uncomment below and update the code to test the property recordCreated - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property recordModified (base name: "recordModified")', function() { // uncomment below and update the code to test the property recordModified - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property propertyInfo (base name: "propertyInfo")', function() { // uncomment below and update the code to test the property propertyInfo - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property guestInfo (base name: "guestInfo")', function() { // uncomment below and update the code to test the property guestInfo - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property awardList (base name: "awardList")', function() { // uncomment below and update the code to test the property awardList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property contactList (base name: "contactList")', function() { // uncomment below and update the code to test the property contactList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property facilityInfo (base name: "facilityInfo")', function() { // uncomment below and update the code to test the property facilityInfo - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property mediaList (base name: "mediaList")', function() { // uncomment below and update the code to test the property mediaList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property geo (base name: "geo")', function() { // uncomment below and update the code to test the property geo - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property published (base name: "published")', function() { // uncomment below and update the code to test the property published - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property policyList (base name: "policyList")', function() { // uncomment below and update the code to test the property policyList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property uri (base name: "uri")', function() { // uncomment below and update the code to test the property uri - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property cancellationGracePeriod (base name: "cancellationGracePeriod")', function() { // uncomment below and update the code to test the property cancellationGracePeriod - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); it('should have the property serviceList (base name: "serviceList")', function() { // uncomment below and update the code to test the property serviceList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProperty(); + //var instance = new LodgeaJs.InlineResponse2003Property(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyAddressList.spec.js similarity index 65% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyAddressList.spec.js index 1711d15..1bcfba3 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyAddressList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner(); + instance = new LodgeaJs.InlineResponse2003PropertyAddressList(); }); var getProperty = function(object, getter, property) { @@ -47,46 +47,46 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner); + describe('InlineResponse2003PropertyAddressList', function() { + it('should create an instance of InlineResponse2003PropertyAddressList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyAddressList + //var instance = new LodgeaJs.InlineResponse2003PropertyAddressList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyAddressList); }); it('should have the property addressLine (base name: "addressLine")', function() { // uncomment below and update the code to test the property addressLine - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyAddressList(); //expect(instance).to.be(); }); it('should have the property propertyName (base name: "propertyName")', function() { // uncomment below and update the code to test the property propertyName - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyAddressList(); //expect(instance).to.be(); }); it('should have the property cityName (base name: "cityName")', function() { // uncomment below and update the code to test the property cityName - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyAddressList(); //expect(instance).to.be(); }); it('should have the property postalCode (base name: "postalCode")', function() { // uncomment below and update the code to test the property postalCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyAddressList(); //expect(instance).to.be(); }); it('should have the property state (base name: "state")', function() { // uncomment below and update the code to test the property state - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyAddressList(); //expect(instance).to.be(); }); it('should have the property countryCode (base name: "countryCode")', function() { // uncomment below and update the code to test the property countryCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInnerAddressListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyAddressList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyAwardList.spec.js similarity index 68% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyAwardList.spec.js index 2b0dec0..edfb391 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyAwardListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyAwardList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyAwardListInner(); + instance = new LodgeaJs.InlineResponse2003PropertyAwardList(); }); var getProperty = function(object, getter, property) { @@ -47,22 +47,22 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyAwardListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyAwardListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyAwardListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyAwardListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyAwardListInner); + describe('InlineResponse2003PropertyAwardList', function() { + it('should create an instance of InlineResponse2003PropertyAwardList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyAwardList + //var instance = new LodgeaJs.InlineResponse2003PropertyAwardList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyAwardList); }); it('should have the property provider (base name: "provider")', function() { // uncomment below and update the code to test the property provider - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyAwardListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyAwardList(); //expect(instance).to.be(); }); it('should have the property rating (base name: "rating")', function() { // uncomment below and update the code to test the property rating - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyAwardListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyAwardList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyCancellationGracePeriod.spec.js similarity index 67% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyCancellationGracePeriod.spec.js index d1558a9..6b8c7e9 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyCancellationGracePeriod.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod(); + instance = new LodgeaJs.InlineResponse2003PropertyCancellationGracePeriod(); }); var getProperty = function(object, getter, property) { @@ -47,22 +47,22 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod); + describe('InlineResponse2003PropertyCancellationGracePeriod', function() { + it('should create an instance of InlineResponse2003PropertyCancellationGracePeriod', function() { + // uncomment below and update the code to test InlineResponse2003PropertyCancellationGracePeriod + //var instance = new LodgeaJs.InlineResponse2003PropertyCancellationGracePeriod(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyCancellationGracePeriod); }); it('should have the property hoursAfterBooking (base name: "hoursAfterBooking")', function() { // uncomment below and update the code to test the property hoursAfterBooking - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod(); + //var instance = new LodgeaJs.InlineResponse2003PropertyCancellationGracePeriod(); //expect(instance).to.be(); }); it('should have the property weeksBeforeCheckIn (base name: "weeksBeforeCheckIn")', function() { // uncomment below and update the code to test the property weeksBeforeCheckIn - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyCancellationGracePeriod(); + //var instance = new LodgeaJs.InlineResponse2003PropertyCancellationGracePeriod(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyCancellationPolicyList.spec.js similarity index 66% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyCancellationPolicyList.spec.js index 1ebc276..9cf7fd7 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyCancellationPolicyList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy(); + instance = new LodgeaJs.InlineResponse2003PropertyCancellationPolicyList(); }); var getProperty = function(object, getter, property) { @@ -47,52 +47,52 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy); + describe('InlineResponse2003PropertyCancellationPolicyList', function() { + it('should create an instance of InlineResponse2003PropertyCancellationPolicyList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyCancellationPolicyList + //var instance = new LodgeaJs.InlineResponse2003PropertyCancellationPolicyList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyCancellationPolicyList); }); it('should have the property percentAfterReservation (base name: "percentAfterReservation")', function() { // uncomment below and update the code to test the property percentAfterReservation - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy(); + //var instance = new LodgeaJs.InlineResponse2003PropertyCancellationPolicyList(); //expect(instance).to.be(); }); it('should have the property nightsAfterReservation (base name: "nightsAfterReservation")', function() { // uncomment below and update the code to test the property nightsAfterReservation - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy(); + //var instance = new LodgeaJs.InlineResponse2003PropertyCancellationPolicyList(); //expect(instance).to.be(); }); it('should have the property deadlineDays (base name: "deadlineDays")', function() { // uncomment below and update the code to test the property deadlineDays - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy(); + //var instance = new LodgeaJs.InlineResponse2003PropertyCancellationPolicyList(); //expect(instance).to.be(); }); it('should have the property deadlineHours (base name: "deadlineHours")', function() { // uncomment below and update the code to test the property deadlineHours - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy(); + //var instance = new LodgeaJs.InlineResponse2003PropertyCancellationPolicyList(); //expect(instance).to.be(); }); it('should have the property percentAfterDeadline (base name: "percentAfterDeadline")', function() { // uncomment below and update the code to test the property percentAfterDeadline - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy(); + //var instance = new LodgeaJs.InlineResponse2003PropertyCancellationPolicyList(); //expect(instance).to.be(); }); it('should have the property nightsAfterDeadline (base name: "nightsAfterDeadline")', function() { // uncomment below and update the code to test the property nightsAfterDeadline - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy(); + //var instance = new LodgeaJs.InlineResponse2003PropertyCancellationPolicyList(); //expect(instance).to.be(); }); it('should have the property noShowPolicy (base name: "noShowPolicy")', function() { // uncomment below and update the code to test the property noShowPolicy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerGuaranteePolicy(); + //var instance = new LodgeaJs.InlineResponse2003PropertyCancellationPolicyList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyContactList.spec.js similarity index 68% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyContactList.spec.js index ee53122..e175176 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyContactListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyContactList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInner(); + instance = new LodgeaJs.InlineResponse2003PropertyContactList(); }); var getProperty = function(object, getter, property) { @@ -47,22 +47,22 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyContactListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyContactListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyContactListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInner); + describe('InlineResponse2003PropertyContactList', function() { + it('should create an instance of InlineResponse2003PropertyContactList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyContactList + //var instance = new LodgeaJs.InlineResponse2003PropertyContactList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyContactList); }); it('should have the property profileType (base name: "profileType")', function() { // uncomment below and update the code to test the property profileType - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyContactList(); //expect(instance).to.be(); }); it('should have the property addressList (base name: "addressList")', function() { // uncomment below and update the code to test the property addressList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyContactListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyContactList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyFacilityInfo.spec.js similarity index 69% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyFacilityInfo.spec.js index 6bca2ab..703f1ae 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfo.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyFacilityInfo.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfo(); + instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfo(); }); var getProperty = function(object, getter, property) { @@ -47,16 +47,16 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyFacilityInfo', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfo', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyFacilityInfo - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfo(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfo); + describe('InlineResponse2003PropertyFacilityInfo', function() { + it('should create an instance of InlineResponse2003PropertyFacilityInfo', function() { + // uncomment below and update the code to test InlineResponse2003PropertyFacilityInfo + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfo(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyFacilityInfo); }); it('should have the property guestRoomList (base name: "guestRoomList")', function() { // uncomment below and update the code to test the property guestRoomList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfo(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoAmenityList.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoAmenityList.spec.js new file mode 100644 index 0000000..f50c33a --- /dev/null +++ b/test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoAmenityList.spec.js @@ -0,0 +1,71 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/com.lodgea/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/com.lodgea/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.LodgeaJs); + } +}(this, function(expect, LodgeaJs) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoAmenityList(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InlineResponse2003PropertyFacilityInfoAmenityList', function() { + it('should create an instance of InlineResponse2003PropertyFacilityInfoAmenityList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyFacilityInfoAmenityList + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoAmenityList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyFacilityInfoAmenityList); + }); + + it('should have the property code (base name: "code")', function() { + // uncomment below and update the code to test the property code + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoAmenityList(); + //expect(instance).to.be(); + }); + + it('should have the property quantity (base name: "quantity")', function() { + // uncomment below and update the code to test the property quantity + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoAmenityList(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoGuestRoomList.spec.js similarity index 65% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoGuestRoomList.spec.js index a408a16..7d14bc3 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoGuestRoomList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); }); var getProperty = function(object, getter, property) { @@ -47,76 +47,76 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner); + describe('InlineResponse2003PropertyFacilityInfoGuestRoomList', function() { + it('should create an instance of InlineResponse2003PropertyFacilityInfoGuestRoomList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyFacilityInfoGuestRoomList + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList); }); it('should have the property isActive (base name: "isActive")', function() { // uncomment below and update the code to test the property isActive - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); //expect(instance).to.be(); }); it('should have the property roomId (base name: "roomId")', function() { // uncomment below and update the code to test the property roomId - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); //expect(instance).to.be(); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); //expect(instance).to.be(); }); it('should have the property mediaList (base name: "mediaList")', function() { // uncomment below and update the code to test the property mediaList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); //expect(instance).to.be(); }); it('should have the property roomTypeCode (base name: "roomTypeCode")', function() { // uncomment below and update the code to test the property roomTypeCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); //expect(instance).to.be(); }); it('should have the property isNonSmoking (base name: "isNonSmoking")', function() { // uncomment below and update the code to test the property isNonSmoking - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); //expect(instance).to.be(); }); it('should have the property amenityList (base name: "amenityList")', function() { // uncomment below and update the code to test the property amenityList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); //expect(instance).to.be(); }); it('should have the property messageList (base name: "messageList")', function() { // uncomment below and update the code to test the property messageList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); //expect(instance).to.be(); }); it('should have the property maxOccupancy (base name: "maxOccupancy")', function() { // uncomment below and update the code to test the property maxOccupancy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); //expect(instance).to.be(); }); it('should have the property maxAdultOccupancy (base name: "maxAdultOccupancy")', function() { // uncomment below and update the code to test the property maxAdultOccupancy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); //expect(instance).to.be(); }); it('should have the property maxChildOccupancy (base name: "maxChildOccupancy")', function() { // uncomment below and update the code to test the property maxChildOccupancy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoGuestRoomList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoMediaList.spec.js similarity index 63% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoMediaList.spec.js index c6caee3..2b8f734 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoMediaList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner(); + instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList(); }); var getProperty = function(object, getter, property) { @@ -47,58 +47,58 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner); + describe('InlineResponse2003PropertyFacilityInfoMediaList', function() { + it('should create an instance of InlineResponse2003PropertyFacilityInfoMediaList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyFacilityInfoMediaList + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList); }); it('should have the property isMainImage (base name: "isMainImage")', function() { // uncomment below and update the code to test the property isMainImage - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList(); //expect(instance).to.be(); }); it('should have the property url (base name: "url")', function() { // uncomment below and update the code to test the property url - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList(); //expect(instance).to.be(); }); it('should have the property sortOrder (base name: "sortOrder")', function() { // uncomment below and update the code to test the property sortOrder - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList(); //expect(instance).to.be(); }); it('should have the property tagList (base name: "tagList")', function() { // uncomment below and update the code to test the property tagList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList(); //expect(instance).to.be(); }); it('should have the property moderationLabelList (base name: "moderationLabelList")', function() { // uncomment below and update the code to test the property moderationLabelList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList(); //expect(instance).to.be(); }); it('should have the property detectionLabelList (base name: "detectionLabelList")', function() { // uncomment below and update the code to test the property detectionLabelList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList(); //expect(instance).to.be(); }); it('should have the property propertyAmenityList (base name: "propertyAmenityList")', function() { // uncomment below and update the code to test the property propertyAmenityList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList(); //expect(instance).to.be(); }); it('should have the property roomAmenityList (base name: "roomAmenityList")', function() { // uncomment below and update the code to test the property roomAmenityList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMediaListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMediaList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoMessageList.spec.js similarity index 66% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoMessageList.spec.js index 164b8f9..f9ceb1b 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyFacilityInfoMessageList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner(); + instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMessageList(); }); var getProperty = function(object, getter, property) { @@ -47,22 +47,22 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner); + describe('InlineResponse2003PropertyFacilityInfoMessageList', function() { + it('should create an instance of InlineResponse2003PropertyFacilityInfoMessageList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyFacilityInfoMessageList + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMessageList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyFacilityInfoMessageList); }); it('should have the property languageCode (base name: "languageCode")', function() { // uncomment below and update the code to test the property languageCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMessageList(); //expect(instance).to.be(); }); it('should have the property text (base name: "text")', function() { // uncomment below and update the code to test the property text - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoMessageListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyFacilityInfoMessageList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/InlineResponse2003PropertyFeePolicyList.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyFeePolicyList.spec.js new file mode 100644 index 0000000..2b3297e --- /dev/null +++ b/test/com.lodgea/model/InlineResponse2003PropertyFeePolicyList.spec.js @@ -0,0 +1,95 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/com.lodgea/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/com.lodgea/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.LodgeaJs); + } +}(this, function(expect, LodgeaJs) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new LodgeaJs.InlineResponse2003PropertyFeePolicyList(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InlineResponse2003PropertyFeePolicyList', function() { + it('should create an instance of InlineResponse2003PropertyFeePolicyList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyFeePolicyList + //var instance = new LodgeaJs.InlineResponse2003PropertyFeePolicyList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyFeePolicyList); + }); + + it('should have the property typeCode (base name: "typeCode")', function() { + // uncomment below and update the code to test the property typeCode + //var instance = new LodgeaJs.InlineResponse2003PropertyFeePolicyList(); + //expect(instance).to.be(); + }); + + it('should have the property percent (base name: "percent")', function() { + // uncomment below and update the code to test the property percent + //var instance = new LodgeaJs.InlineResponse2003PropertyFeePolicyList(); + //expect(instance).to.be(); + }); + + it('should have the property chargeType (base name: "chargeType")', function() { + // uncomment below and update the code to test the property chargeType + //var instance = new LodgeaJs.InlineResponse2003PropertyFeePolicyList(); + //expect(instance).to.be(); + }); + + it('should have the property chargeFrequencyCode (base name: "chargeFrequencyCode")', function() { + // uncomment below and update the code to test the property chargeFrequencyCode + //var instance = new LodgeaJs.InlineResponse2003PropertyFeePolicyList(); + //expect(instance).to.be(); + }); + + it('should have the property currencyCode (base name: "currencyCode")', function() { + // uncomment below and update the code to test the property currencyCode + //var instance = new LodgeaJs.InlineResponse2003PropertyFeePolicyList(); + //expect(instance).to.be(); + }); + + it('should have the property conditionList (base name: "conditionList")', function() { + // uncomment below and update the code to test the property conditionList + //var instance = new LodgeaJs.InlineResponse2003PropertyFeePolicyList(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyGuaranteePolicy.spec.js similarity index 64% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyGuaranteePolicy.spec.js index a823697..c71e85f 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyGuaranteePolicy.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner(); + instance = new LodgeaJs.InlineResponse2003PropertyGuaranteePolicy(); }); var getProperty = function(object, getter, property) { @@ -47,52 +47,52 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner); + describe('InlineResponse2003PropertyGuaranteePolicy', function() { + it('should create an instance of InlineResponse2003PropertyGuaranteePolicy', function() { + // uncomment below and update the code to test InlineResponse2003PropertyGuaranteePolicy + //var instance = new LodgeaJs.InlineResponse2003PropertyGuaranteePolicy(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyGuaranteePolicy); }); it('should have the property percentAfterReservation (base name: "percentAfterReservation")', function() { // uncomment below and update the code to test the property percentAfterReservation - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyGuaranteePolicy(); //expect(instance).to.be(); }); it('should have the property nightsAfterReservation (base name: "nightsAfterReservation")', function() { // uncomment below and update the code to test the property nightsAfterReservation - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyGuaranteePolicy(); //expect(instance).to.be(); }); it('should have the property deadlineDays (base name: "deadlineDays")', function() { // uncomment below and update the code to test the property deadlineDays - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyGuaranteePolicy(); //expect(instance).to.be(); }); it('should have the property deadlineHours (base name: "deadlineHours")', function() { // uncomment below and update the code to test the property deadlineHours - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyGuaranteePolicy(); //expect(instance).to.be(); }); it('should have the property percentAfterDeadline (base name: "percentAfterDeadline")', function() { // uncomment below and update the code to test the property percentAfterDeadline - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyGuaranteePolicy(); //expect(instance).to.be(); }); it('should have the property nightsAfterDeadline (base name: "nightsAfterDeadline")', function() { // uncomment below and update the code to test the property nightsAfterDeadline - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyGuaranteePolicy(); //expect(instance).to.be(); }); it('should have the property noShowPolicy (base name: "noShowPolicy")', function() { // uncomment below and update the code to test the property noShowPolicy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerCancellationPolicyListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyGuaranteePolicy(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyGuestInfo.spec.js similarity index 71% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyGuestInfo.spec.js index 710c4f1..d45a2d5 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyGuestInfo.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyGuestInfo.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyGuestInfo(); + instance = new LodgeaJs.InlineResponse2003PropertyGuestInfo(); }); var getProperty = function(object, getter, property) { @@ -47,28 +47,28 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyGuestInfo', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyGuestInfo', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyGuestInfo - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyGuestInfo(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyGuestInfo); + describe('InlineResponse2003PropertyGuestInfo', function() { + it('should create an instance of InlineResponse2003PropertyGuestInfo', function() { + // uncomment below and update the code to test InlineResponse2003PropertyGuestInfo + //var instance = new LodgeaJs.InlineResponse2003PropertyGuestInfo(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyGuestInfo); }); it('should have the property guestAddressRequired (base name: "guestAddressRequired")', function() { // uncomment below and update the code to test the property guestAddressRequired - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyGuestInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyGuestInfo(); //expect(instance).to.be(); }); it('should have the property guestContactNumberRequired (base name: "guestContactNumberRequired")', function() { // uncomment below and update the code to test the property guestContactNumberRequired - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyGuestInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyGuestInfo(); //expect(instance).to.be(); }); it('should have the property guestNameListRequired (base name: "guestNameListRequired")', function() { // uncomment below and update the code to test the property guestNameListRequired - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyGuestInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyGuestInfo(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/InlineResponse2003PropertyMediaList.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyMediaList.spec.js new file mode 100644 index 0000000..ecde673 --- /dev/null +++ b/test/com.lodgea/model/InlineResponse2003PropertyMediaList.spec.js @@ -0,0 +1,107 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/com.lodgea/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/com.lodgea/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.LodgeaJs); + } +}(this, function(expect, LodgeaJs) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new LodgeaJs.InlineResponse2003PropertyMediaList(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InlineResponse2003PropertyMediaList', function() { + it('should create an instance of InlineResponse2003PropertyMediaList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyMediaList + //var instance = new LodgeaJs.InlineResponse2003PropertyMediaList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyMediaList); + }); + + it('should have the property isMainImage (base name: "isMainImage")', function() { + // uncomment below and update the code to test the property isMainImage + //var instance = new LodgeaJs.InlineResponse2003PropertyMediaList(); + //expect(instance).to.be(); + }); + + it('should have the property url (base name: "url")', function() { + // uncomment below and update the code to test the property url + //var instance = new LodgeaJs.InlineResponse2003PropertyMediaList(); + //expect(instance).to.be(); + }); + + it('should have the property sortOrder (base name: "sortOrder")', function() { + // uncomment below and update the code to test the property sortOrder + //var instance = new LodgeaJs.InlineResponse2003PropertyMediaList(); + //expect(instance).to.be(); + }); + + it('should have the property tagList (base name: "tagList")', function() { + // uncomment below and update the code to test the property tagList + //var instance = new LodgeaJs.InlineResponse2003PropertyMediaList(); + //expect(instance).to.be(); + }); + + it('should have the property moderationLabelList (base name: "moderationLabelList")', function() { + // uncomment below and update the code to test the property moderationLabelList + //var instance = new LodgeaJs.InlineResponse2003PropertyMediaList(); + //expect(instance).to.be(); + }); + + it('should have the property detectionLabelList (base name: "detectionLabelList")', function() { + // uncomment below and update the code to test the property detectionLabelList + //var instance = new LodgeaJs.InlineResponse2003PropertyMediaList(); + //expect(instance).to.be(); + }); + + it('should have the property propertyAmenityList (base name: "propertyAmenityList")', function() { + // uncomment below and update the code to test the property propertyAmenityList + //var instance = new LodgeaJs.InlineResponse2003PropertyMediaList(); + //expect(instance).to.be(); + }); + + it('should have the property roomAmenityList (base name: "roomAmenityList")', function() { + // uncomment below and update the code to test the property roomAmenityList + //var instance = new LodgeaJs.InlineResponse2003PropertyMediaList(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyOperationTimeList.spec.js similarity index 63% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyOperationTimeList.spec.js index 3d740b6..c2323b0 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyOperationTimeList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); + instance = new LodgeaJs.InlineResponse2003PropertyOperationTimeList(); }); var getProperty = function(object, getter, property) { @@ -47,64 +47,64 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner); + describe('InlineResponse2003PropertyOperationTimeList', function() { + it('should create an instance of InlineResponse2003PropertyOperationTimeList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyOperationTimeList + //var instance = new LodgeaJs.InlineResponse2003PropertyOperationTimeList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyOperationTimeList); }); it('should have the property start (base name: "start")', function() { // uncomment below and update the code to test the property start - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyOperationTimeList(); //expect(instance).to.be(); }); it('should have the property end (base name: "end")', function() { // uncomment below and update the code to test the property end - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyOperationTimeList(); //expect(instance).to.be(); }); it('should have the property monday (base name: "monday")', function() { // uncomment below and update the code to test the property monday - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyOperationTimeList(); //expect(instance).to.be(); }); it('should have the property tuesday (base name: "tuesday")', function() { // uncomment below and update the code to test the property tuesday - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyOperationTimeList(); //expect(instance).to.be(); }); it('should have the property wednesday (base name: "wednesday")', function() { // uncomment below and update the code to test the property wednesday - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyOperationTimeList(); //expect(instance).to.be(); }); it('should have the property thursday (base name: "thursday")', function() { // uncomment below and update the code to test the property thursday - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyOperationTimeList(); //expect(instance).to.be(); }); it('should have the property friday (base name: "friday")', function() { // uncomment below and update the code to test the property friday - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyOperationTimeList(); //expect(instance).to.be(); }); it('should have the property saturday (base name: "saturday")', function() { // uncomment below and update the code to test the property saturday - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyOperationTimeList(); //expect(instance).to.be(); }); it('should have the property sunday (base name: "sunday")', function() { // uncomment below and update the code to test the property sunday - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInnerOperationTimeListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyOperationTimeList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyPetsPolicy.spec.js similarity index 66% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyPetsPolicy.spec.js index 0f5653d..b077433 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyPetsPolicy.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy(); + instance = new LodgeaJs.InlineResponse2003PropertyPetsPolicy(); }); var getProperty = function(object, getter, property) { @@ -47,28 +47,28 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy); + describe('InlineResponse2003PropertyPetsPolicy', function() { + it('should create an instance of InlineResponse2003PropertyPetsPolicy', function() { + // uncomment below and update the code to test InlineResponse2003PropertyPetsPolicy + //var instance = new LodgeaJs.InlineResponse2003PropertyPetsPolicy(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyPetsPolicy); }); it('should have the property allowed (base name: "allowed")', function() { // uncomment below and update the code to test the property allowed - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPetsPolicy(); //expect(instance).to.be(); }); it('should have the property byArrangement (base name: "byArrangement")', function() { // uncomment below and update the code to test the property byArrangement - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPetsPolicy(); //expect(instance).to.be(); }); it('should have the property freeOfCharge (base name: "freeOfCharge")', function() { // uncomment below and update the code to test the property freeOfCharge - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPolicyListInnerPetsPolicy(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPetsPolicy(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyPolicyList.spec.js similarity index 68% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyPolicyList.spec.js index 92ffe6b..47fc38b 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyPolicyList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); }); var getProperty = function(object, getter, property) { @@ -47,82 +47,82 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo); + describe('InlineResponse2003PropertyPolicyList', function() { + it('should create an instance of InlineResponse2003PropertyPolicyList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyPolicyList + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyPolicyList); }); it('should have the property checkInTime (base name: "checkInTime")', function() { // uncomment below and update the code to test the property checkInTime - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); //expect(instance).to.be(); }); it('should have the property checkOutTime (base name: "checkOutTime")', function() { // uncomment below and update the code to test the property checkOutTime - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); //expect(instance).to.be(); }); it('should have the property totalGuestCount (base name: "totalGuestCount")', function() { // uncomment below and update the code to test the property totalGuestCount - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); //expect(instance).to.be(); }); it('should have the property cancellationPolicyList (base name: "cancellationPolicyList")', function() { // uncomment below and update the code to test the property cancellationPolicyList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); //expect(instance).to.be(); }); it('should have the property advanceBookingMin (base name: "advanceBookingMin")', function() { // uncomment below and update the code to test the property advanceBookingMin - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); //expect(instance).to.be(); }); it('should have the property advanceBookingMax (base name: "advanceBookingMax")', function() { // uncomment below and update the code to test the property advanceBookingMax - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); //expect(instance).to.be(); }); it('should have the property petsPolicy (base name: "petsPolicy")', function() { // uncomment below and update the code to test the property petsPolicy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); //expect(instance).to.be(); }); it('should have the property prepaymentPolicy (base name: "prepaymentPolicy")', function() { // uncomment below and update the code to test the property prepaymentPolicy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); //expect(instance).to.be(); }); it('should have the property guaranteePolicy (base name: "guaranteePolicy")', function() { // uncomment below and update the code to test the property guaranteePolicy - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); //expect(instance).to.be(); }); it('should have the property taxPolicyList (base name: "taxPolicyList")', function() { // uncomment below and update the code to test the property taxPolicyList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); //expect(instance).to.be(); }); it('should have the property feePolicyList (base name: "feePolicyList")', function() { // uncomment below and update the code to test the property feePolicyList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); //expect(instance).to.be(); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerPolicyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPolicyList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyPropertyInfo.spec.js similarity index 69% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyPropertyInfo.spec.js index 58ff8c2..233b169 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfo.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyPropertyInfo.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo(); + instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfo(); }); var getProperty = function(object, getter, property) { @@ -47,46 +47,46 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyPropertyInfo', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyPropertyInfo', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyPropertyInfo - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo); + describe('InlineResponse2003PropertyPropertyInfo', function() { + it('should create an instance of InlineResponse2003PropertyPropertyInfo', function() { + // uncomment below and update the code to test InlineResponse2003PropertyPropertyInfo + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfo(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyPropertyInfo); }); it('should have the property unitCount (base name: "unitCount")', function() { // uncomment below and update the code to test the property unitCount - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfo(); //expect(instance).to.be(); }); it('should have the property messageList (base name: "messageList")', function() { // uncomment below and update the code to test the property messageList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfo(); //expect(instance).to.be(); }); it('should have the property categoryList (base name: "categoryList")', function() { // uncomment below and update the code to test the property categoryList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfo(); //expect(instance).to.be(); }); it('should have the property languageList (base name: "languageList")', function() { // uncomment below and update the code to test the property languageList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfo(); //expect(instance).to.be(); }); it('should have the property location (base name: "location")', function() { // uncomment below and update the code to test the property location - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfo(); //expect(instance).to.be(); }); it('should have the property acceptedPaymentList (base name: "acceptedPaymentList")', function() { // uncomment below and update the code to test the property acceptedPaymentList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfo(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfo(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.spec.js similarity index 64% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.spec.js index ce2b828..d02f5e5 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyPropertyInfoAcceptedPaymentList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner(); + instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfoAcceptedPaymentList(); }); var getProperty = function(object, getter, property) { @@ -47,22 +47,22 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner); + describe('InlineResponse2003PropertyPropertyInfoAcceptedPaymentList', function() { + it('should create an instance of InlineResponse2003PropertyPropertyInfoAcceptedPaymentList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyPropertyInfoAcceptedPaymentList + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfoAcceptedPaymentList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyPropertyInfoAcceptedPaymentList); }); it('should have the property code (base name: "code")', function() { // uncomment below and update the code to test the property code - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfoAcceptedPaymentList(); //expect(instance).to.be(); }); it('should have the property type (base name: "type")', function() { // uncomment below and update the code to test the property type - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyPropertyInfoAcceptedPaymentListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfoAcceptedPaymentList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/InlineResponse2003PropertyPropertyInfoMessageList.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyPropertyInfoMessageList.spec.js new file mode 100644 index 0000000..344f3c9 --- /dev/null +++ b/test/com.lodgea/model/InlineResponse2003PropertyPropertyInfoMessageList.spec.js @@ -0,0 +1,71 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/com.lodgea/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/com.lodgea/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.LodgeaJs); + } +}(this, function(expect, LodgeaJs) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfoMessageList(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InlineResponse2003PropertyPropertyInfoMessageList', function() { + it('should create an instance of InlineResponse2003PropertyPropertyInfoMessageList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyPropertyInfoMessageList + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfoMessageList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyPropertyInfoMessageList); + }); + + it('should have the property languageCode (base name: "languageCode")', function() { + // uncomment below and update the code to test the property languageCode + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfoMessageList(); + //expect(instance).to.be(); + }); + + it('should have the property text (base name: "text")', function() { + // uncomment below and update the code to test the property text + //var instance = new LodgeaJs.InlineResponse2003PropertyPropertyInfoMessageList(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyRecordCreated.spec.js similarity index 68% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyRecordCreated.spec.js index f4b3a92..c418eb6 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordCreated.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyRecordCreated.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordCreated(); + instance = new LodgeaJs.InlineResponse2003PropertyRecordCreated(); }); var getProperty = function(object, getter, property) { @@ -47,34 +47,34 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyRecordCreated', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyRecordCreated', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyRecordCreated - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordCreated(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordCreated); + describe('InlineResponse2003PropertyRecordCreated', function() { + it('should create an instance of InlineResponse2003PropertyRecordCreated', function() { + // uncomment below and update the code to test InlineResponse2003PropertyRecordCreated + //var instance = new LodgeaJs.InlineResponse2003PropertyRecordCreated(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyRecordCreated); }); it('should have the property user (base name: "user")', function() { // uncomment below and update the code to test the property user - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordCreated(); + //var instance = new LodgeaJs.InlineResponse2003PropertyRecordCreated(); //expect(instance).to.be(); }); it('should have the property tenant (base name: "tenant")', function() { // uncomment below and update the code to test the property tenant - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordCreated(); + //var instance = new LodgeaJs.InlineResponse2003PropertyRecordCreated(); //expect(instance).to.be(); }); it('should have the property role (base name: "role")', function() { // uncomment below and update the code to test the property role - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordCreated(); + //var instance = new LodgeaJs.InlineResponse2003PropertyRecordCreated(); //expect(instance).to.be(); }); it('should have the property time (base name: "time")', function() { // uncomment below and update the code to test the property time - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordCreated(); + //var instance = new LodgeaJs.InlineResponse2003PropertyRecordCreated(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyRecordModified.spec.js similarity index 68% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyRecordModified.spec.js index fb0b635..817cb17 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyRecordModified.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyRecordModified.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordModified(); + instance = new LodgeaJs.InlineResponse2003PropertyRecordModified(); }); var getProperty = function(object, getter, property) { @@ -47,34 +47,34 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyRecordModified', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyRecordModified', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyRecordModified - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordModified(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordModified); + describe('InlineResponse2003PropertyRecordModified', function() { + it('should create an instance of InlineResponse2003PropertyRecordModified', function() { + // uncomment below and update the code to test InlineResponse2003PropertyRecordModified + //var instance = new LodgeaJs.InlineResponse2003PropertyRecordModified(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyRecordModified); }); it('should have the property user (base name: "user")', function() { // uncomment below and update the code to test the property user - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordModified(); + //var instance = new LodgeaJs.InlineResponse2003PropertyRecordModified(); //expect(instance).to.be(); }); it('should have the property tenant (base name: "tenant")', function() { // uncomment below and update the code to test the property tenant - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordModified(); + //var instance = new LodgeaJs.InlineResponse2003PropertyRecordModified(); //expect(instance).to.be(); }); it('should have the property role (base name: "role")', function() { // uncomment below and update the code to test the property role - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordModified(); + //var instance = new LodgeaJs.InlineResponse2003PropertyRecordModified(); //expect(instance).to.be(); }); it('should have the property time (base name: "time")', function() { // uncomment below and update the code to test the property time - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyRecordModified(); + //var instance = new LodgeaJs.InlineResponse2003PropertyRecordModified(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyServiceList.spec.js similarity index 67% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003PropertyServiceList.spec.js index 522130a..e9e2ee6 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyServiceListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003PropertyServiceList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + instance = new LodgeaJs.InlineResponse2003PropertyServiceList(); }); var getProperty = function(object, getter, property) { @@ -47,70 +47,70 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponsePropertyServiceListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyServiceListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyServiceListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner); + describe('InlineResponse2003PropertyServiceList', function() { + it('should create an instance of InlineResponse2003PropertyServiceList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyServiceList + //var instance = new LodgeaJs.InlineResponse2003PropertyServiceList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyServiceList); }); it('should have the property code (base name: "code")', function() { // uncomment below and update the code to test the property code - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyServiceList(); //expect(instance).to.be(); }); it('should have the property price (base name: "price")', function() { // uncomment below and update the code to test the property price - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyServiceList(); //expect(instance).to.be(); }); it('should have the property exists (base name: "exists")', function() { // uncomment below and update the code to test the property exists - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyServiceList(); //expect(instance).to.be(); }); it('should have the property included (base name: "included")', function() { // uncomment below and update the code to test the property included - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyServiceList(); //expect(instance).to.be(); }); it('should have the property currencyCode (base name: "currencyCode")', function() { // uncomment below and update the code to test the property currencyCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyServiceList(); //expect(instance).to.be(); }); it('should have the property featureList (base name: "featureList")', function() { // uncomment below and update the code to test the property featureList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyServiceList(); //expect(instance).to.be(); }); it('should have the property typeList (base name: "typeList")', function() { // uncomment below and update the code to test the property typeList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyServiceList(); //expect(instance).to.be(); }); it('should have the property itemList (base name: "itemList")', function() { // uncomment below and update the code to test the property itemList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyServiceList(); //expect(instance).to.be(); }); it('should have the property operationTimeList (base name: "operationTimeList")', function() { // uncomment below and update the code to test the property operationTimeList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyServiceList(); //expect(instance).to.be(); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyServiceListInner(); + //var instance = new LodgeaJs.InlineResponse2003PropertyServiceList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/InlineResponse2003PropertyTaxPolicyList.spec.js b/test/com.lodgea/model/InlineResponse2003PropertyTaxPolicyList.spec.js new file mode 100644 index 0000000..4250021 --- /dev/null +++ b/test/com.lodgea/model/InlineResponse2003PropertyTaxPolicyList.spec.js @@ -0,0 +1,95 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/com.lodgea/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/com.lodgea/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.LodgeaJs); + } +}(this, function(expect, LodgeaJs) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new LodgeaJs.InlineResponse2003PropertyTaxPolicyList(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InlineResponse2003PropertyTaxPolicyList', function() { + it('should create an instance of InlineResponse2003PropertyTaxPolicyList', function() { + // uncomment below and update the code to test InlineResponse2003PropertyTaxPolicyList + //var instance = new LodgeaJs.InlineResponse2003PropertyTaxPolicyList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003PropertyTaxPolicyList); + }); + + it('should have the property typeCode (base name: "typeCode")', function() { + // uncomment below and update the code to test the property typeCode + //var instance = new LodgeaJs.InlineResponse2003PropertyTaxPolicyList(); + //expect(instance).to.be(); + }); + + it('should have the property percent (base name: "percent")', function() { + // uncomment below and update the code to test the property percent + //var instance = new LodgeaJs.InlineResponse2003PropertyTaxPolicyList(); + //expect(instance).to.be(); + }); + + it('should have the property chargeType (base name: "chargeType")', function() { + // uncomment below and update the code to test the property chargeType + //var instance = new LodgeaJs.InlineResponse2003PropertyTaxPolicyList(); + //expect(instance).to.be(); + }); + + it('should have the property chargeFrequencyCode (base name: "chargeFrequencyCode")', function() { + // uncomment below and update the code to test the property chargeFrequencyCode + //var instance = new LodgeaJs.InlineResponse2003PropertyTaxPolicyList(); + //expect(instance).to.be(); + }); + + it('should have the property currencyCode (base name: "currencyCode")', function() { + // uncomment below and update the code to test the property currencyCode + //var instance = new LodgeaJs.InlineResponse2003PropertyTaxPolicyList(); + //expect(instance).to.be(); + }); + + it('should have the property conditionList (base name: "conditionList")', function() { + // uncomment below and update the code to test the property conditionList + //var instance = new LodgeaJs.InlineResponse2003PropertyTaxPolicyList(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.spec.js b/test/com.lodgea/model/InlineResponse2003RatePlanList.spec.js similarity index 66% rename from test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.spec.js rename to test/com.lodgea/model/InlineResponse2003RatePlanList.spec.js index 48421b4..6758aff 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2003RatePlanList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner(); + instance = new LodgeaJs.InlineResponse2003RatePlanList(); }); var getProperty = function(object, getter, property) { @@ -47,34 +47,34 @@ object[property] = value; } - describe('PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner); + describe('InlineResponse2003RatePlanList', function() { + it('should create an instance of InlineResponse2003RatePlanList', function() { + // uncomment below and update the code to test InlineResponse2003RatePlanList + //var instance = new LodgeaJs.InlineResponse2003RatePlanList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2003RatePlanList); }); it('should have the property active (base name: "active")', function() { // uncomment below and update the code to test the property active - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner(); + //var instance = new LodgeaJs.InlineResponse2003RatePlanList(); //expect(instance).to.be(); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner(); + //var instance = new LodgeaJs.InlineResponse2003RatePlanList(); //expect(instance).to.be(); }); it('should have the property code (base name: "code")', function() { // uncomment below and update the code to test the property code - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner(); + //var instance = new LodgeaJs.InlineResponse2003RatePlanList(); //expect(instance).to.be(); }); it('should have the property pricingList (base name: "pricingList")', function() { // uncomment below and update the code to test the property pricingList - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponseProductListInnerRatePlanListInner(); + //var instance = new LodgeaJs.InlineResponse2003RatePlanList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdAvailabilityGet200Response.spec.js b/test/com.lodgea/model/InlineResponse2004.spec.js similarity index 71% rename from test/com.lodgea/model/PropertiesPropertyIdAvailabilityGet200Response.spec.js rename to test/com.lodgea/model/InlineResponse2004.spec.js index de882b7..959a2d1 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdAvailabilityGet200Response.spec.js +++ b/test/com.lodgea/model/InlineResponse2004.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdAvailabilityGet200Response(); + instance = new LodgeaJs.InlineResponse2004(); }); var getProperty = function(object, getter, property) { @@ -47,16 +47,16 @@ object[property] = value; } - describe('PropertiesPropertyIdAvailabilityGet200Response', function() { - it('should create an instance of PropertiesPropertyIdAvailabilityGet200Response', function() { - // uncomment below and update the code to test PropertiesPropertyIdAvailabilityGet200Response - //var instance = new LodgeaJs.PropertiesPropertyIdAvailabilityGet200Response(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdAvailabilityGet200Response); + describe('InlineResponse2004', function() { + it('should create an instance of InlineResponse2004', function() { + // uncomment below and update the code to test InlineResponse2004 + //var instance = new LodgeaJs.InlineResponse2004(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2004); }); it('should have the property availabilityList (base name: "availabilityList")', function() { // uncomment below and update the code to test the property availabilityList - //var instance = new LodgeaJs.PropertiesPropertyIdAvailabilityGet200Response(); + //var instance = new LodgeaJs.InlineResponse2004(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.spec.js b/test/com.lodgea/model/InlineResponse2004AvailabilityList.spec.js similarity index 66% rename from test/com.lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.spec.js rename to test/com.lodgea/model/InlineResponse2004AvailabilityList.spec.js index 50a83ea..3cd4bcf 100644 --- a/test/com.lodgea/model/PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner.spec.js +++ b/test/com.lodgea/model/InlineResponse2004AvailabilityList.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner(); + instance = new LodgeaJs.InlineResponse2004AvailabilityList(); }); var getProperty = function(object, getter, property) { @@ -47,34 +47,34 @@ object[property] = value; } - describe('PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner', function() { - it('should create an instance of PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner - //var instance = new LodgeaJs.PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner); + describe('InlineResponse2004AvailabilityList', function() { + it('should create an instance of InlineResponse2004AvailabilityList', function() { + // uncomment below and update the code to test InlineResponse2004AvailabilityList + //var instance = new LodgeaJs.InlineResponse2004AvailabilityList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2004AvailabilityList); }); it('should have the property ratePlanList (base name: "ratePlanList")', function() { // uncomment below and update the code to test the property ratePlanList - //var instance = new LodgeaJs.PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner(); + //var instance = new LodgeaJs.InlineResponse2004AvailabilityList(); //expect(instance).to.be(); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name - //var instance = new LodgeaJs.PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner(); + //var instance = new LodgeaJs.InlineResponse2004AvailabilityList(); //expect(instance).to.be(); }); it('should have the property mealPlanList (base name: "mealPlanList")', function() { // uncomment below and update the code to test the property mealPlanList - //var instance = new LodgeaJs.PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner(); + //var instance = new LodgeaJs.InlineResponse2004AvailabilityList(); //expect(instance).to.be(); }); it('should have the property roomTypeList (base name: "roomTypeList")', function() { // uncomment below and update the code to test the property roomTypeList - //var instance = new LodgeaJs.PropertiesPropertyIdAvailabilityGet200ResponseAvailabilityListInner(); + //var instance = new LodgeaJs.InlineResponse2004AvailabilityList(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/InlineResponse2004PricingList.spec.js b/test/com.lodgea/model/InlineResponse2004PricingList.spec.js new file mode 100644 index 0000000..82d6306 --- /dev/null +++ b/test/com.lodgea/model/InlineResponse2004PricingList.spec.js @@ -0,0 +1,83 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/com.lodgea/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/com.lodgea/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.LodgeaJs); + } +}(this, function(expect, LodgeaJs) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new LodgeaJs.InlineResponse2004PricingList(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InlineResponse2004PricingList', function() { + it('should create an instance of InlineResponse2004PricingList', function() { + // uncomment below and update the code to test InlineResponse2004PricingList + //var instance = new LodgeaJs.InlineResponse2004PricingList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2004PricingList); + }); + + it('should have the property dateTime (base name: "dateTime")', function() { + // uncomment below and update the code to test the property dateTime + //var instance = new LodgeaJs.InlineResponse2004PricingList(); + //expect(instance).to.be(); + }); + + it('should have the property occupancy (base name: "occupancy")', function() { + // uncomment below and update the code to test the property occupancy + //var instance = new LodgeaJs.InlineResponse2004PricingList(); + //expect(instance).to.be(); + }); + + it('should have the property priceList (base name: "priceList")', function() { + // uncomment below and update the code to test the property priceList + //var instance = new LodgeaJs.InlineResponse2004PricingList(); + //expect(instance).to.be(); + }); + + it('should have the property currencyCode (base name: "currencyCode")', function() { + // uncomment below and update the code to test the property currencyCode + //var instance = new LodgeaJs.InlineResponse2004PricingList(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/com.lodgea/model/InlineResponse2004RatePlanList.spec.js b/test/com.lodgea/model/InlineResponse2004RatePlanList.spec.js new file mode 100644 index 0000000..c1483e5 --- /dev/null +++ b/test/com.lodgea/model/InlineResponse2004RatePlanList.spec.js @@ -0,0 +1,83 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/com.lodgea/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/com.lodgea/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.LodgeaJs); + } +}(this, function(expect, LodgeaJs) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new LodgeaJs.InlineResponse2004RatePlanList(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InlineResponse2004RatePlanList', function() { + it('should create an instance of InlineResponse2004RatePlanList', function() { + // uncomment below and update the code to test InlineResponse2004RatePlanList + //var instance = new LodgeaJs.InlineResponse2004RatePlanList(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse2004RatePlanList); + }); + + it('should have the property active (base name: "active")', function() { + // uncomment below and update the code to test the property active + //var instance = new LodgeaJs.InlineResponse2004RatePlanList(); + //expect(instance).to.be(); + }); + + it('should have the property name (base name: "name")', function() { + // uncomment below and update the code to test the property name + //var instance = new LodgeaJs.InlineResponse2004RatePlanList(); + //expect(instance).to.be(); + }); + + it('should have the property code (base name: "code")', function() { + // uncomment below and update the code to test the property code + //var instance = new LodgeaJs.InlineResponse2004RatePlanList(); + //expect(instance).to.be(); + }); + + it('should have the property pricingList (base name: "pricingList")', function() { + // uncomment below and update the code to test the property pricingList + //var instance = new LodgeaJs.InlineResponse2004RatePlanList(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/com.lodgea/model/AvailablePropertiesInner.spec.js b/test/com.lodgea/model/InlineResponse200List.spec.js similarity index 76% rename from test/com.lodgea/model/AvailablePropertiesInner.spec.js rename to test/com.lodgea/model/InlineResponse200List.spec.js index 2dbbda3..53d1cc9 100644 --- a/test/com.lodgea/model/AvailablePropertiesInner.spec.js +++ b/test/com.lodgea/model/InlineResponse200List.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.AvailablePropertiesInner(); + instance = new LodgeaJs.InlineResponse200List(); }); var getProperty = function(object, getter, property) { @@ -47,34 +47,34 @@ object[property] = value; } - describe('AvailablePropertiesInner', function() { - it('should create an instance of AvailablePropertiesInner', function() { - // uncomment below and update the code to test AvailablePropertiesInner - //var instance = new LodgeaJs.AvailablePropertiesInner(); - //expect(instance).to.be.a(LodgeaJs.AvailablePropertiesInner); + describe('InlineResponse200List', function() { + it('should create an instance of InlineResponse200List', function() { + // uncomment below and update the code to test InlineResponse200List + //var instance = new LodgeaJs.InlineResponse200List(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse200List); }); it('should have the property name (base name: "name")', function() { // uncomment below and update the code to test the property name - //var instance = new LodgeaJs.AvailablePropertiesInner(); + //var instance = new LodgeaJs.InlineResponse200List(); //expect(instance).to.be(); }); it('should have the property currencyCode (base name: "currencyCode")', function() { // uncomment below and update the code to test the property currencyCode - //var instance = new LodgeaJs.AvailablePropertiesInner(); + //var instance = new LodgeaJs.InlineResponse200List(); //expect(instance).to.be(); }); it('should have the property lowestPrice (base name: "lowestPrice")', function() { // uncomment below and update the code to test the property lowestPrice - //var instance = new LodgeaJs.AvailablePropertiesInner(); + //var instance = new LodgeaJs.InlineResponse200List(); //expect(instance).to.be(); }); it('should have the property type (base name: "type")', function() { // uncomment below and update the code to test the property type - //var instance = new LodgeaJs.AvailablePropertiesInner(); + //var instance = new LodgeaJs.InlineResponse200List(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/LocationSearchPost400Response.spec.js b/test/com.lodgea/model/InlineResponse400.spec.js similarity index 75% rename from test/com.lodgea/model/LocationSearchPost400Response.spec.js rename to test/com.lodgea/model/InlineResponse400.spec.js index 469ec78..93dfd3f 100644 --- a/test/com.lodgea/model/LocationSearchPost400Response.spec.js +++ b/test/com.lodgea/model/InlineResponse400.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.LocationSearchPost400Response(); + instance = new LodgeaJs.InlineResponse400(); }); var getProperty = function(object, getter, property) { @@ -47,16 +47,16 @@ object[property] = value; } - describe('LocationSearchPost400Response', function() { - it('should create an instance of LocationSearchPost400Response', function() { - // uncomment below and update the code to test LocationSearchPost400Response - //var instance = new LodgeaJs.LocationSearchPost400Response(); - //expect(instance).to.be.a(LodgeaJs.LocationSearchPost400Response); + describe('InlineResponse400', function() { + it('should create an instance of InlineResponse400', function() { + // uncomment below and update the code to test InlineResponse400 + //var instance = new LodgeaJs.InlineResponse400(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse400); }); it('should have the property validationErrors (base name: "validationErrors")', function() { // uncomment below and update the code to test the property validationErrors - //var instance = new LodgeaJs.LocationSearchPost400Response(); + //var instance = new LodgeaJs.InlineResponse400(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/InlineResponse4001.spec.js b/test/com.lodgea/model/InlineResponse4001.spec.js new file mode 100644 index 0000000..101f475 --- /dev/null +++ b/test/com.lodgea/model/InlineResponse4001.spec.js @@ -0,0 +1,65 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/com.lodgea/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/com.lodgea/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.LodgeaJs); + } +}(this, function(expect, LodgeaJs) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new LodgeaJs.InlineResponse4001(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InlineResponse4001', function() { + it('should create an instance of InlineResponse4001', function() { + // uncomment below and update the code to test InlineResponse4001 + //var instance = new LodgeaJs.InlineResponse4001(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse4001); + }); + + it('should have the property validationErrors (base name: "validationErrors")', function() { + // uncomment below and update the code to test the property validationErrors + //var instance = new LodgeaJs.InlineResponse4001(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/com.lodgea/model/LocationSearchPost400ResponseValidationErrorsInner.spec.js b/test/com.lodgea/model/InlineResponse4001ValidationErrors.spec.js similarity index 69% rename from test/com.lodgea/model/LocationSearchPost400ResponseValidationErrorsInner.spec.js rename to test/com.lodgea/model/InlineResponse4001ValidationErrors.spec.js index 4dea667..eccd402 100644 --- a/test/com.lodgea/model/LocationSearchPost400ResponseValidationErrorsInner.spec.js +++ b/test/com.lodgea/model/InlineResponse4001ValidationErrors.spec.js @@ -2,7 +2,7 @@ * lodgea-js * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. * - * The version of the OpenAPI document: 1.1.0 + * The version of the OpenAPI document: 1.2.0 * Contact: support@lodgea.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,7 @@ var instance; beforeEach(function() { - instance = new LodgeaJs.LocationSearchPost400ResponseValidationErrorsInner(); + instance = new LodgeaJs.InlineResponse4001ValidationErrors(); }); var getProperty = function(object, getter, property) { @@ -47,28 +47,28 @@ object[property] = value; } - describe('LocationSearchPost400ResponseValidationErrorsInner', function() { - it('should create an instance of LocationSearchPost400ResponseValidationErrorsInner', function() { - // uncomment below and update the code to test LocationSearchPost400ResponseValidationErrorsInner - //var instance = new LodgeaJs.LocationSearchPost400ResponseValidationErrorsInner(); - //expect(instance).to.be.a(LodgeaJs.LocationSearchPost400ResponseValidationErrorsInner); + describe('InlineResponse4001ValidationErrors', function() { + it('should create an instance of InlineResponse4001ValidationErrors', function() { + // uncomment below and update the code to test InlineResponse4001ValidationErrors + //var instance = new LodgeaJs.InlineResponse4001ValidationErrors(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse4001ValidationErrors); }); it('should have the property code (base name: "code")', function() { // uncomment below and update the code to test the property code - //var instance = new LodgeaJs.LocationSearchPost400ResponseValidationErrorsInner(); + //var instance = new LodgeaJs.InlineResponse4001ValidationErrors(); //expect(instance).to.be(); }); it('should have the property message (base name: "message")', function() { // uncomment below and update the code to test the property message - //var instance = new LodgeaJs.LocationSearchPost400ResponseValidationErrorsInner(); + //var instance = new LodgeaJs.InlineResponse4001ValidationErrors(); //expect(instance).to.be(); }); it('should have the property path (base name: "path")', function() { // uncomment below and update the code to test the property path - //var instance = new LodgeaJs.LocationSearchPost400ResponseValidationErrorsInner(); + //var instance = new LodgeaJs.InlineResponse4001ValidationErrors(); //expect(instance).to.be(); }); diff --git a/test/com.lodgea/model/InlineResponse400ValidationErrors.spec.js b/test/com.lodgea/model/InlineResponse400ValidationErrors.spec.js new file mode 100644 index 0000000..d815234 --- /dev/null +++ b/test/com.lodgea/model/InlineResponse400ValidationErrors.spec.js @@ -0,0 +1,77 @@ +/** + * lodgea-js + * LODGEA SDK for javascript. Check out https://docs.lodgea.io for more information. + * + * The version of the OpenAPI document: 1.2.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. + * + */ + +(function(root, factory) { + if (typeof define === 'function' && define.amd) { + // AMD. + define(['expect.js', process.cwd()+'/src/com.lodgea/index'], factory); + } else if (typeof module === 'object' && module.exports) { + // CommonJS-like environments that support module.exports, like Node. + factory(require('expect.js'), require(process.cwd()+'/src/com.lodgea/index')); + } else { + // Browser globals (root is window) + factory(root.expect, root.LodgeaJs); + } +}(this, function(expect, LodgeaJs) { + 'use strict'; + + var instance; + + beforeEach(function() { + instance = new LodgeaJs.InlineResponse400ValidationErrors(); + }); + + var getProperty = function(object, getter, property) { + // Use getter method if present; otherwise, get the property directly. + if (typeof object[getter] === 'function') + return object[getter](); + else + return object[property]; + } + + var setProperty = function(object, setter, property, value) { + // Use setter method if present; otherwise, set the property directly. + if (typeof object[setter] === 'function') + object[setter](value); + else + object[property] = value; + } + + describe('InlineResponse400ValidationErrors', function() { + it('should create an instance of InlineResponse400ValidationErrors', function() { + // uncomment below and update the code to test InlineResponse400ValidationErrors + //var instance = new LodgeaJs.InlineResponse400ValidationErrors(); + //expect(instance).to.be.a(LodgeaJs.InlineResponse400ValidationErrors); + }); + + it('should have the property code (base name: "code")', function() { + // uncomment below and update the code to test the property code + //var instance = new LodgeaJs.InlineResponse400ValidationErrors(); + //expect(instance).to.be(); + }); + + it('should have the property message (base name: "message")', function() { + // uncomment below and update the code to test the property message + //var instance = new LodgeaJs.InlineResponse400ValidationErrors(); + //expect(instance).to.be(); + }); + + it('should have the property path (base name: "path")', function() { + // uncomment below and update the code to test the property path + //var instance = new LodgeaJs.InlineResponse400ValidationErrors(); + //expect(instance).to.be(); + }); + + }); + +})); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.spec.js b/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.spec.js deleted file mode 100644 index c8735dd..0000000 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/com.lodgea/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/com.lodgea/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.LodgeaJs); - } -}(this, function(expect, LodgeaJs) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner); - }); - - it('should have the property code (base name: "code")', function() { - // uncomment below and update the code to test the property code - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner(); - //expect(instance).to.be(); - }); - - it('should have the property quantity (base name: "quantity")', function() { - // uncomment below and update the code to test the property quantity - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerAmenityListInner(); - //expect(instance).to.be(); - }); - - }); - -})); diff --git a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.spec.js b/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.spec.js deleted file mode 100644 index 233a003..0000000 --- a/test/com.lodgea/model/PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner.spec.js +++ /dev/null @@ -1,71 +0,0 @@ -/** - * lodgea-js - * LODGEA SDK for javascript. 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. - * - */ - -(function(root, factory) { - if (typeof define === 'function' && define.amd) { - // AMD. - define(['expect.js', process.cwd()+'/src/com.lodgea/index'], factory); - } else if (typeof module === 'object' && module.exports) { - // CommonJS-like environments that support module.exports, like Node. - factory(require('expect.js'), require(process.cwd()+'/src/com.lodgea/index')); - } else { - // Browser globals (root is window) - factory(root.expect, root.LodgeaJs); - } -}(this, function(expect, LodgeaJs) { - 'use strict'; - - var instance; - - beforeEach(function() { - instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner(); - }); - - var getProperty = function(object, getter, property) { - // Use getter method if present; otherwise, get the property directly. - if (typeof object[getter] === 'function') - return object[getter](); - else - return object[property]; - } - - var setProperty = function(object, setter, property, value) { - // Use setter method if present; otherwise, set the property directly. - if (typeof object[setter] === 'function') - object[setter](value); - else - object[property] = value; - } - - describe('PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner', function() { - it('should create an instance of PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner', function() { - // uncomment below and update the code to test PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner(); - //expect(instance).to.be.a(LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner); - }); - - it('should have the property languageCode (base name: "languageCode")', function() { - // uncomment below and update the code to test the property languageCode - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner(); - //expect(instance).to.be(); - }); - - it('should have the property text (base name: "text")', function() { - // uncomment below and update the code to test the property text - //var instance = new LodgeaJs.PropertiesPropertyIdGet200ResponsePropertyFacilityInfoGuestRoomListInnerMessageListInner(); - //expect(instance).to.be(); - }); - - }); - -}));